Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email email@example.com
From: Noel Jones (njonesmegan.vbhcs.org)
Date: Tue Aug 19 2008 - 22:56:38 CDT
Rodre Ghorashi-Zadeh wrote:
> Hello List,
> This is my first post to this list so please excuse any indiscretions. I have a problem where my carrier's/ISP entire CIDR/Subnet is blacklisted by some email carriers. My ISP does provide a relay/smarthost for outbound SMTP but it doesn't use TLS, so I don't want to route all of our company's email through it by setting the 'relayhost' parameter. I have been able to put the destination domains in the /etc/postfix/transport file and use my ISPs smarthost as the next hop MTA, however, I noticed that most of the destination domains I am experiencing problems with are all being handled by a specific email carrier. What I want to do is put that email carriers entire CIDR into my postfix configuration and basically say "if the MX host for any destination domains IP address belongs to this CIDR, use my ISPs smarthost, instead of having to add the domains one at a time. Is this possible?
You can use a check_recipient_mx_access map with a FILTER
action to set the next-hop destination to your IPS' smarthost.
10.11.12.0/24 FILTER smtp:my.isp.smarthost
If you are using a content_filter, the setup is a little more
complicated... The check_recipient_mx_access table must be
defined in master.cf in the after-filter smtpd listener.