Rene Bartsch a écrit : > Hi, > > Postfix is running on the public IPs A and B and the private IPs C, D and E. > > IP A and B have correct DNS A and PTR records (A: www.mydomain.tld and B: > vpn.mydomain.tld). The > hostname of the machine is www.mydomain.tld. Currently Postfix-SMTPD answers > all connections from > clients with it's hostname in the ESMTP header (www.mydomain.tld). > > How can I configure Postfix to use vpn.mydomain.tld on IP B? Is there an > option for transports in > master.cf? >
create two smtpd listeners in master.cf, one for each IP, and use -o myhostname to set the hostname. 192.0.2.1:25 .... smtpd -o myhostname=vpn.example.com ...