In my hypothetical environment, I have an external and an internal relay on 
either sides of a firewall. I want to configure the external system to relay 
both 1) email received from the internal relay to the Internet and 2) email 
received from the Internet to the internal relay (as long as the recipient is 
on my domain). This seems fairly straightforward to accomplish with a 
combination of mynetworks, relay_domains and relayhost or transport_maps 
configurations.


Something I would like to drop, though, is email received from the Internet 
that has an address in the MAIL FROM on my domain but ONLY if received from the 
Internet (since it’s a core function of this relay to take identical messages 
relayed from the internal relay bound for Internet mail servers).


I’ve been going through smtpd_sender_restrictions options look for something 
that fits the bill here, but I can’t seem to find anything that allows me to 
distinguish actions based upon whether or not the sender is not in my_networks 
(making them subject to “stranger rules” which include not sending FROM my 
domain).


Is this something that’s relatively straightforward to configure in Postfix or 
do I need a more advanced anti-spam tool to get the configuration flexibility I 
need?


Thanks,


Scott

Reply via email to