SYSTEM WARNING: 'date_default_timezone_get(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone.' in '/usr/share/mantis/www/core.php' line 264

0001476: Automatical adding domain spam.spam and ham.ham - MantisBT
MantisBT - Endian Firewall
View Issue Details
0001476Endian FirewallProxy SMTPpublic2008-11-20 18:172012-03-12 16:58
luca-endian 
peter-endian 
normalfeaturealways
confirmedreopened 
2.4.1 
future2.4.1 
0001476: Automatical adding domain spam.spam and ham.ham
To train spamassassin you can send mail to spam@spam.spam or ham@ham.ham
but it doesn't work if dns record of domain spam it's not the firewall itself.

Currently you have to do it manually.

Could be useful if efw configure this record automatically.
purple
related to 0001930closed peter-endian rewrite rebuildhosts integrating it in restartdnsmasq.py 
related to 0000095acknowledged  training is not working as described on endian.it 
Issue History
2008-11-20 18:17luca-endianNew Issue
2008-11-20 18:20peter-endianTarget Version => future
2009-06-09 19:34peter-endianRelationship addedrelated to 0001930
2009-06-25 20:16peter-endianAssigned To => peter-endian
2009-06-25 20:17peter-endianNote Added: 0002681
2010-03-12 12:10baldyNote Added: 0004027
2010-03-12 12:36baldyNote Edited: 0004027
2010-05-27 15:29luca-endianNote Added: 0004275
2010-05-27 15:54luca-endianNote Added: 0004276
2010-09-14 10:21luca-endianRelationship addedrelated to 0000095
2010-09-14 10:22luca-endianTag Attached: purple
2010-09-23 10:56peter-endianStatusnew => resolved
2010-09-23 10:56peter-endianResolutionopen => fixed
2010-09-23 10:56peter-endianFixed in Version => 2.4.1
2010-11-22 11:51peter-endianStatusresolved => closed
2010-12-01 14:05AnonymousNote Added: 0005260
2010-12-01 14:05AnonymousStatusclosed => feedback
2010-12-01 14:05AnonymousResolutionfixed => reopened
2010-12-01 14:17AnonymousNote Edited: 0005260
2011-05-03 08:21luca-endianNote Added: 0006179
2011-05-03 08:22luca-endianStatusfeedback => confirmed
2011-05-03 08:23luca-endianNote Edited: 0006179
2011-05-03 08:23luca-endianProduct Version2.2-rc3 => 2.4.1
2011-05-20 13:34ra-endianNote Added: 0006413
2012-03-06 09:46konusNote Added: 0007743
2012-03-12 16:58peter-endianNote Added: 0007750

Notes
(0002681)
peter-endian   
2009-06-25 20:17   
-> create a file in /etc/dnsmasq/hosts.d/
(0004027)
baldy   
2010-03-12 12:10   
(edited on: 2010-03-12 12:36)
Sending mail to spam@spam.spam or ham@ham.ham does not work in 2.3 either.

Regards,

Klaas-Jan

(0004275)
luca-endian   
2010-05-27 15:29   
maybe mail routing is also required
(0004276)
luca-endian   
2010-05-27 15:54   
on a system with dns an mail routing configured if I send a mail to spam@spam.spam I get this the mail queue:

E4F861CA3D5 637 Thu May 27 11:51:39 luca endian.com
                                             (mail system configuration error)
                                         spam@spam.
(0005260)
Anonymous   
2010-12-01 14:05   
(edited on: 2010-12-01 14:17)
upgraded from 2.4.0 to 2.4.1 and the issue is always true:

(mail system configuration error)
                                         spam@spam.spam

transport.db have:

spam.spam sa-spam:
ham.ham sa-ham:

more info from logs:
postfix/pipe[9083]: warning: file /etc/postfix/master.cf: service sa-spam: unknown macro name: "SENDER"
and:
postfix/pipe[9086]: D561B21A15: to=<spam@spam.spam>, relay=sa-spam, delay=2441, delays=2441/0.02/0/0, dsn=4.3.5, status=deferred (mail system configuration error)

(0006179)
luca-endian   
2011-05-03 08:21   
(edited on: 2011-05-03 08:23)
On 2.4.1

- aliases is correct
- transport file is correct
- master.cf file is correct

Onlye the sa-wrapper behaves something weird:
root@efw_master:~ # sa-wrapper
Use of uninitialized value in pattern match (m//) at /usr/bin/sa-wrapper line 81.
Use of uninitialized value in string eq at /usr/bin/sa-wrapper line 82.
Use of uninitialized value in string eq at /usr/bin/sa-wrapper line 82.
Use of uninitialized value in string eq at /usr/bin/sa-wrapper line 82.
Use of uninitialized value in string eq at /usr/bin/sa-wrapper line 82.
I don't recognize your domain ! at /usr/bin/sa-wrapper line 83.

(0006413)
ra-endian   
2011-05-20 13:34   
The problem is that the /etc/postfix/master.cf contains
sa-spam unix - n n - - pipe user=amavis:amavis argv=/usr/bin/sa-wrapper spam ${SENDER}
sa-ham unix - n n - - pipe user=amavis:amavis argv=/usr/bin/sa-wrapper ham ${SENDER}

instead of:
sa-spam unix - n n - - pipe user=amavis:amavis argv=/usr/bin/sa-wrapper spam ${sender}
sa-ham unix - n n - - pipe user=amavis:amavis argv=/usr/bin/sa-wrapper ham ${sender}

all the sender domains need also by configured under incoming domains, then only that sender domains are accepted for the spam training.
(0007743)
konus   
2012-03-06 09:46   
Is the problem solved in 2.5?
(0007750)
peter-endian   
2012-03-12 16:58   
$SENDER -> $sender
is fixed in 2.5

should work then. can you confirm?