Leopard server brings us a new interface for managing amavis in Server Admin. But, using some of the options of Server Admin's GUI doesn't modify correctly /etc/amavisd.conf and brings some weird issues
- Be careful with notification
- the defaults notification address is :
-
$mailfrom_notify_spamadmin = "spam.police@$mydomain"; # notifications sender
- defaults quarantine addresses are :
-
#$virus_admin = '[email protected]';<br />#$spam_admin = '[email protected]';<br />#$spam_quarantine_to = '[email protected]';<br />#$virus_quarantine_to = '[email protected]';
- only the following addresses will be modified with Server Admin's GUI :
-
#$virus_admin = '[email protected]';<br />#$spam_quarantine_to = '[email protected]';<br />#$virus_quarantine_to = '[email protected]';
- if you activate notification and quarantine, without editing /etc/amavid.conf, every incoming spam will be sent to:
'[email protected]'
- example.com is an existing domain but has no MX record, all mails will stay in the 'deferred' postfix queue!
- An
the result is : a lot of mails staying in the queue, a lot of attempts
for redistribution, a big slow down of your server and big logs with a
lot of the folowing lines ! -
Mar 31 04:07:35 mail postfix/smtp[13211]: connect to example.com[208.77.188.166]: Operation timed out (port 25)<br />Mar 31 04:07:35 mail postfix/smtp[13211]: C401511A59D: to=<[email protected]>,<br /> relay=none, delay=30, delays=0.01/0.01/30/0, dsn=4.4.1, status=deferred<br /> (connect to example.com[208.77.188.166]: Operation timed out)
- What's to do with this :
- I'd rather prefer trashing spam and virus, but if you don't :
- edit /etc/amavisd.conf to replace @example.com with @$mydomain
- create the needed mailing boxes (virus, junk-admin, etc…
-
#$virus_admin = 'virus@$mydomain';<br />#$spam_admin = 'junk-admin@$mydomain';<br />#$spam_quarantine_to = 'junk-quarantine@$mydomain';<br />#$virus_quarantine_to = 'virus-quarantine@$mydomain'; <br />$mailfrom_notify_admin = "virusalert@$mydomain"; # notifications sender<br />$mailfrom_notify_recip = "virusalert@$mydomain"; # notifications sender<br />$mailfrom_notify_spamadmin = "spam.police@$mydomain"; # notifications sender<br />$mailfrom_to_quarantine = ''; # null return path; uses original sender if undef<br />
- Empty the deferred queue if you're late reading this 😉
-
mail:etc root# mailq <-- to see what's in the queues<br /><br />mail:etc root# postsuper -d ALL deferred <-- to delete the queue content<br />postsuper: Deleted: 4946 messages<br /><br />Be careful, thhis command delete ALL the 'deferred' queue content<br />
-
if you want to verify what was sent to this queue before, you can grep the log :
-
mail:~ root# cat /var/log/mail.log |grep 'status=deferred'<br /><br />Mar 31 04:07:35 mail postfix/smtp[13211]: C401511A59D: to=<[email protected]>,<br /> relay=none, delay=30, delays=0.01/0.01/30/0, dsn=4.4.1, status=deferred<br /> (connect to example.com[208.77.188.166]: Operation timed out)
Recent Comments