Dan Lists:
> We host email for several domains.? Occasionally an account will get
> phished and our outbound server will get blacklisted by hotmail and
> others.? We'd like to separate the outbound email so that one domain
> with a phished account doesn't get all outbound email blacklisted.
> 
> I'm trying to set up an outbound server with multiple IPs.? I'd like
> email that arrives on an IP to leave on the same IP.? In my master.cf
> I put:
> 
> <IP 1>:smtp? inet? n?????? -?????? n?????? -?????? -?????? smtpd
> ???? -o myhostname=smtp1.host.dom
> <IP 2>:smtp? inet? n?????? -?????? n?????? -?????? -?????? smtpd
> ???? -o myhostname=smtp2.host.dom
> 
> Email comes in on the different IPs, and the hostname is set to smtp1
> or smtp2 in the Received headers.? The email is all going out from the
> server's main IP not the separate IPs.
> 
> I've tried adding "-o smtp_bind_address=<IP 1>" etc.?? I've tried
> setting up multiple smtp services and adding "-o
> default_transport=smtp1".? Email is still going out on the server's
> main IP.
> 
> I thought it would be easy to get email to go in and out on the same
> IP, but I cannot get it to work. What am I missing?

The least confusing is using one Postfix instance per IP address.

Setting SMTP client options (smtp_bind_address) on the Postfix SMTP
server does not work: the Postfix SMTP server is not an SMTP client,
and thefore it ignores all SMTP client parameters.

If you must implement this with one Postfix instance, then it
requires the Postfix 2.7 sender_dependent_default_transport_maps
feature, which allows you to specify a different Postfix SMTP client
(with its own smtp_bind_address) for outbound mail with different
sender domains.

        Wietse

Reply via email to