OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
 
Re: Restricting users to internal only email

From: mouss (usebsdfree.fr)
Date: Wed Nov 01 2006 - 17:03:18 CST


Robert Adkins wrote:
>
> /etc/postfix/main.cf:
> smtpd_recipient_restrictions =
> check_sender_access hash:/etc/postfix/restricted_senders
> ...other stuff...
>

Now compare this to your configuration as reported by postconf -n. It
must now be clear why sending output of postconf -n is (almost) always
needed.

> [snip]
> smtpd_recipient_restrictions =
> permit_mynetworks,reject_unauth_destination, check_sender_access
> hash:/etc/postfix/restricted_senders
permit_mynetworks permits mail from mynetworks. no further checks are
performed.

add the check_sender_access above to smtpd_sender_restrictions and it
will work.