I'm using Postfix and Spamassassin, and Postfix is rejecting incoming mail that fall into spam rules. Mail are then forwarded to different relays based on many factors.

Is there a way to archive rejected mails somewhere for spam analysis/training, or (would be better) to make Postfix still deliver them in background with a specific header added?


You cannot do this with Postfix. You'll need to run a different process between the content checker (in this case SpamAssassin) and the MTA. For example amavisd.

  • amavisd is actually running and configured together with postfix and spamassassin. Any hint on how to do it? I couldn't find a good way for it. – ElementalStorm Dec 29 '15 at 18:09
  • @St0rM That would be a different question to ask. – Wesley Dec 29 '15 at 18:12

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.