On Sun, Oct 11, 2009 at 01:34:58AM +0200, mouss wrote: > > How can I configure Postfix to use vpn.mydomain.tld on IP B? > > 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
This answers the OP's question, but perhaps one should ask why the OP believes this to be a good idea? There is generally no requirement for the SMTP server to appear to have a different name for each IP address it is listening on. Unless one is sufficiently motivated to use a separate Postfix instance for each interface, there is little to gain from different host names on different IPs. -- 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:majord...@postfix.org?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.