OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
Re: restrict external host

From: Noel Jones (njonesmegan.vbhcs.org)
Date: Sun Jun 21 2009 - 17:52:24 CDT


K bharathan wrote:
> it did n't work with changes in mynetworks
>
> if i elaborate the setup, it's like the following:
>
> main external relay -> internal relay(internal-192.168.100.0/24) ->
> finally mails reach exchange (192.168.100.122)
>
> i want internal relay should not receive any mails other than from
> external relay

You didn't make the changes suggested.

Add the IP of the external relay to your mynetworks setting.
In your smtpd_recipient_restrictions, replace
"reject_unauth_destination" with "reject"

   -- Noel Jones