Victor Duchovni a écrit : > 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. >
true. It was a lazy answer. the only thing I can see for this is forcing the "by" name in Received headers. > 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. >