OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
Re: Block outsiders from sending mail to inside user.

From: mouss (moussnetoyen.net)
Date: Fri Jul 04 2008 - 01:46:28 CDT


Diego Ledesma wrote:
> Thank you for the tip!.
>
> I'm trying to implement the restriction for some users not to be able to
> send mail to internet, the same way as
> http://www.postfix.com/RESTRICTION_CLASS_README.html#internal
>
> The problem i'm having is that the user's that are not in the restriction
> list get "Relay access denied" when they try to send mail to Internet.
>
> Also, i couldn't only set check_sender_access in
> smtpd_recipient_restrictions. Doing so i get an error message at postfix's
> error log saying
> " postfix/smtpd[8141]: fatal: parameter "smtpd_recipient_restrictions":
> specify at least one working instance of: check_relay_domains,
> reject_unauth_destination, reject, defer or defer_if_permit
>

this protects you from becoming an open relay.
> Tryed using check_relay_domains or reject_unauth_destination and with both i
> get the Relay ... error mentioned above.
>
> Any help is greatly appreciated.
>

you forgot to show your configuration ('postconf -n' output)