On 05/30/2010 09:29 PM, Noel Jones wrote:
On 5/30/2010 6:58 AM, Jeroen Geilman wrote:
On 05/30/2010 01:29 PM, Jarrod Neven wrote:
I am trying to setup restriction to prevent selected users from
sending email externally. I have followed the "Restricting what users
can send mail to off-site destinations" guide at
http://www.postfix.net/RESTRICTION_CLASS_README.html but it is not
having any effect.

Then you have not put the restrictions in the correct order, or you are
lacking restrictions that are required to make it work.

It appears that no matter what I do smtpd_recipient_restrictions has
no effect. Have set the hash file to an invalid file and created
syntax errors and there are no error messages in the log, even set
smtpd_recipient_restrictions = reject and it did nothing.

smtpd_recipient_restrictions is the LAST restriction class to be
applied. if mail was accepted before then, REJECTing it here does nothing.

Incorrect. *Each* smtpd_*_restrictions section must evaluate to OK or permit. Just because you OK a client in smtpd_client_restrictions doesn't give them a free ride in smtpd_recipient_restrictions.

Bah. This trips me up every time.

So if you're going to speculate, pick something better.

It wasn't speculation. It was knee-jerk.

For a better guess, we need to see log entries of the transaction.

That's what I should have asked.

J.

Reply via email to