OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
 
Re: postfix open relay - Please help.

From: mouss (mlist.onlyfree.fr)
Date: Thu Feb 01 2007 - 15:22:23 CST


Kai Fürstenberg wrote:
> Please explain.
> As I understand the documentation, if you set "permit" somewhere in
> the restrictions, the mail is accepted. So if you set
> smtpd_client_restrictions just to "permit", postfix will accept all
> mails, also foreign mail.

http://www.postfix.org/SMTPD_ACCESS_README.html
says
    "Each restriction list is evaluated from left to right until some
restriction produces a result of PERMIT, REJECT or DEFER (try again later)."

1. Each restriction list is evaluated.
2. No restriction list is skipped because of a PERMIT.

That said, putting a permit at the end of a list is redundant, as it is
the default.