[ale] Postfix Config Help

ale at jeffx.com ale at jeffx.com
Fri Sep 29 14:38:24 EDT 2006


I am  trying to do something with Postfix on SuSE that I am having some
success with but not nearly as much as I would hope.  What I need is when
postfix receives a message, if it is from a specific list of e-mail
addresses it bypasses all the remaining checking (greylisting, spam
filter) and sends it right the the virus checker.

Right now I am using an access_sender map in the
smtpd_recipient_restrictions that looks something like:
user at remote.com  FILTER smtp:[127.0.0.1]:10024

where smtp:[127.0.0.1]:10024 is the virus checker.

This works to the point where the FILTER is triggered.  The problem is
when I insert the grey_listing.  My smtpd_recipient_restrictions becomes:

smtpd_recipient_restrictions = permit_mynetworks, check_sender_access
hash:/opt/postfix/etc/access_sender, reject_unauth_destination,
check_policy_service inet:127.0.0.1:10026

Where inet:127.0.0.1:10026 is the grey_listing checker.  The problem is
postfix is doing exactly what it says it should do:
"Restrictions are applied in the order as specified; the first restriction
that matches wins."

What I would like is if the FILTER is triggered, that it gets considered a
rejection and wins.

Am I going about this the wrong way?  Is there a better way to do this
with Postfix?  Ultimately what I need is for e-mail from about 800 senders
bypasses all spam filtering and everything else goes through a fairly
strong spam filter processing system.

Any suggestions or pointers?

Jeff




More information about the Ale mailing list