r/linuxadmin • • Oct 22 '25

Postfix mail gateway refresh

/r/sysadmin/comments/1ocit12/postfix_mail_gateway_refresh/
8 Upvotes

6 comments sorted by

View all comments

Show parent comment

1

u/ashramrak Oct 23 '25 edited Oct 23 '25

So, I got a few complaints about PMG...

It's kind of tricky to treat VBA macros & encrypted files as viruses... PMG sees those as SPAM no matter what; you can assign a custom score to them, and then apply some rules for blocking, but it's not a nice solution...

But the worse is that PMG rules are all performed post-queue, that means you can't just reject mail on conditions like viruses, macros, RBL during the SMTP transaction (code 550)

sure, you can optionally enable "Send NDR on Blocked E-Mails", but then the burden of sending the NDR belongs to PMG, and not the remote server (as it should)... it's kind of like saying "sure" to absolutely everything, and then "Oh, I changed my mind" a few seconds later ;-)

edit : I'll take a look at mimedefang as well

edit2 : more RTFM-ing, there seems to be a "before queue scanning" option in PMG

2

u/knobbysideup Oct 24 '25

Hence mimedefang on sendmail ;-)