Mail Filter - block instead of reject

Gabor Szel

Active Member
Nov 8, 2018
8
0
41
44
Dear all!,

We've made mail filter rules to reject unknown recipient.
We solve this by giving a low priority rule in Mail Filter that will block it not accepted mails.
This also works, but block is not good!
If we block email, the sender is not notified.
If we make "Notification" action object, the sender will receive a new letter! This is not god!, if sender use false email address, we send a notification email "SPAM".

is it possible to use reject rule somehow ?
I just found only a block action in available objects.
 
That’s not available in PMG because of architecture, however, it’s often asked for. You may check via postfix checks and reject there or via spamassassin checks with high score and may follow my guide on Advancing PMG by adding spamass-milter. PMG ruled are performed post-queue, so they can’t reject. Maybe once someone will rewrite pmg-smtp-filter to be run miltered.