Postfix hype seems backwards

Everybody raved about Postfix for years and years so I am trying it out and it seems backwards to me. To do simple task of adding x-spam header you need to use an additional program like Amavisd, right? Seems somewhat dumb when original Sendmail does everything in one program. Correct me if I am wrong. Is there a way to add x-spam header without Amavisd and with Postfix alone? And if yes, how? Also the learning curve of Amavisd is difficult. In the Amavisd config they use words like bypass, to me that means skip but I think in this case it means include in configuration. Thanks!
 
I use sieve in hand with amavis to assign a spam level, works for me.

Code:
require ["fileinto", "mailbox"];

if header :contains "X-Spam-Level" "*****"
{
    fileinto "Trash";
}


The mailbox requirement is for filing other mails automatically, like...


Code:
if address :matches "From" "postmaster@amazonses.com"
{
    fileinto :create "INBOX.DMARC\ Reports";
}

if address :matches "From" "noreply-dmarc-support@google.com"
{
    fileinto :create "INBOX.DMARC\ Reports";
}

if header :contains "Subject" "Postfix Report"
{
    fileinto :create "INBOX.Postfix\ Reports";
}


All as detailed here... https://blog.andreev.it/2014/11/fre...v-pigeonhole/#Amavisd_Spamassassin_and_clamav
 
Everybody raved about Postfix for years and years so I am trying it out and it seems backwards to me. To do simple task of adding x-spam header you need to use an additional program like Amavisd, right? Seems somewhat dumb when original Sendmail does everything in one program. Correct me if I am wrong. Is there a way to add x-spam header without Amavisd and with Postfix alone? And if yes, how? Also the learning curve of Amavisd is difficult. In the Amavisd config they use words like bypass, to me that means skip but I think in this case it means include in configuration. Thanks!
Not sure what you mean. Postfix is a MTA. It doesn't do spam analysis by itself. You could probably add a blanket header (same value for all messages) somehow but what would be the point?

If amavisd is too complex, and I've read the same about spamassassin, you could try rspamd, which I heard is a lighter / easier. No first hand experience though so take this with a pinch of salt.
 
Back
Top