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:127.0.0.1:10025';
$quarantine_method_by_ccat{CC_SPAMMY.",1"} = 'smtp:127.0.0.1:10025';
$quarantine_method_by_ccat{+CC_SPAM} = 'smtp:127.0.0.1:10025';
$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?
Thanks!
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.