Reindl Harald: > > Assuming that the Postfix machine is behind a NAT of some kind: > > > > myhostname: use the name of the internal IP address > > smtpd_banner: use the name of external IP address > > smtp_helo_name: use the name of external IP address > > > > Don't listen to people who say use myhostname in smtpd_banner > > :-) > > i would use the same hostname in fornt of and behind the NAT > because normally in the LAN behind the nat a name-server is > running, so there is no difference NAT/Public
My configuration supports multiple inside Postfix servers. Each uses its own unique internal name in myhostname, while they all share the same external name in smtpd_banner and smtp_helo_name. There is a patch lying around somewhere that allows an SMTP server behind nat/balancer to log its own myhostname in the end-of-data reply. This would simplify logfile searches, but has lost some urgency with the introduction of non-repeating queue IDs. Wietse