On Fri, May 08, 2009 at 12:20:26PM -0400, Comtois, Andre wrote:
>
> I'm having mixed results getting this to work. My postfix server
> accepts emails and relays them to the exchange server just fine, however
> it also seems to have no issues relaying emails to gmail.com as well, so
> I'm not sure how to restrict it to only accepting messages destined for
> my domain.
http://www.postfix.org/BASIC_CONFIGURATION_README.html#relay_from
http://www.postfix.org/BASIC_CONFIGURATION_README.html#relay_to
If your receiving system in the DMZ is behind a NAT device that translates
source addresses from the Internet to a fixed DMZ source IP address,
be SURE TO EXCLUDE that address from "mynetworks". Be sure to not NAT
internal clients (your Exchange servers), or NAT them to a different IP.
Of course, you really should NOT NAT source addresses at all, with source
IPs masked you can't use RBL lists, and your logs are much less useful.
--
Viktor.
Disclaimer: off-list followups get on-list replies or get ignored.
Please do not ignore the "Reply-To" header.
To unsubscribe from the postfix-users list, visit
http://www.postfix.org/lists.html or click the link below:
<mailto:[email protected]?body=unsubscribe%20postfix-users>
If my response solves your problem, the best way to thank me is to not
send an "it worked, thanks" follow-up. If you must respond, please put
"It worked, thanks" in the "Subject" so I can delete these quickly.