I'm trying to create a special mail account to collect all incoming spam with the purpose to later on be able to train the SA more easily for the whole domain.

We're using Zimbra, but as far as I can see the problem is not zimbra related, because it's "almost" working.

The setting I have are:

$quarantine_method_by_ccat{+CC_SPAMMY}     = 'smtp:'; 
$quarantine_method_by_ccat{CC_SPAMMY.",1"} = 'smtp:'; 
$quarantine_method_by_ccat{+CC_SPAM}       = 'smtp:'; 
$quarantine_to_maps_by_ccat{+CC_SPAMMY}     = ['spam@domain']; 
$quarantine_to_maps_by_ccat{CC_SPAMMY.",1"} = ['spam@domain']; 
$quarantine_to_maps_by_ccat{+CC_SPAM}       = ['spam@domain']; 

@spam_lovers_maps = @bypass_spam_checks_maps = ( [ qw('spam@domain',) ], ); 
$final_virus_destiny      = D_BOUNCE; 
$final_banned_destiny     = D_BOUNCE; 
$final_bad_header_destiny = D_PASS; 
$final_spam_destiny       = D_DISCARD; 
$final_destiny_by_ccat{+CC_SPAMMY} = $final_spam_destiny; 

So far so good, most of the time as spam-admin I receive messages like:


But some mails will be discarded and not even send to spamasassin (I think) and it doesn't matter if it's spam or not.


And this was even just an autoresponder from the user himself. Issued by the server.

Or http://pastebin.com/bePUrEtf for more or less spam mails. Just no report and this is neither an autoresponder nor a mail-daemon message.

Any Ideas?


  • How do you pass the emails to amavisd-new, postfix? – NickW May 3 '13 at 10:06
  • sorry for the late response, yes postfix is passing the mails there – Meiko Watu May 8 '13 at 11:29
  • No problems, do you accept mail on multiple ports? 465/587 and 25? – NickW May 8 '13 at 11:32
  • yes, to the outside world 465 and 25 are open. in the master.cf to port 465 -o smtpd_tls_wrappermode=yes and -o smtpd_sasl_auth_enable=yes. submission (587) is not open to the outside world. – Meiko Watu May 9 '13 at 13:21
  • You are discarding spam mails as the default policy, it might be the fact that your spam lovers user is spam@domain and not the user who should be receiving the spam, and also your final spam destiny for CC_SPAMMY is DISCARD, CC_SPAM is kill, CC_SPAMMY is tag2 level (if you look at spamassassin it has multiple actions based upon spam level, you can trash at a certain level, change subject at a lower one, and just add the headers normally) .. – NickW May 9 '13 at 13:34

You may want to check that the users in the @spam_lovers_maps correspond to the user who needs to receive any and all spam, and that messages to him do not get caught in the $final_spam_destiny = D_DISCARD; trap. You may also want to ensure that the user does not have any .procmail files, or similar delivery time scripts that may discard the mail after amavisd decided to pass it.

  • thanks Nick, for the help and pointing me in the right direction! The users had for some reason an empty entry in their per user blacklist, which caused mails with REturn Part <> to be rejected. Thanks! – Meiko Watu May 13 '13 at 9:26
  • Thank you for spending the time troubleshooting with me! – NickW May 13 '13 at 9:34

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.