The hostname of the mail vserver is not in public DNS, so some smtp
servers reject a HELO command that uses it. This change makes sure that
the hostname of the vserver host is used in HELO command, which is the
external hostname to use for reaching the mail vserver.
# can come from any vserver, just use our main hostname.
qualify_domain = drsnuggles.stderr.nl
-# Let exim know how the rest of the world will try to reach us.
-hosts_treat_as_local = drsnuggles.stderr.nl
+# Let exim know how the rest of the world will try to reach us. The
+# stmp transport also uses this macro for its helo command.
+EXTERNAL_HOSTNAME = drsnuggles.stderr.nl
+hosts_treat_as_local = EXTERNAL_HOSTNAME
# The gecos field in /etc/passwd holds not only the name. see passwd(5).
gecos_pattern = ^([^,:]*)
remote_smtp:
debug_print = "T: remote_smtp for $local_part@$domain"
driver = smtp
+ # Use a different hostname in our helo command, since our
+ # primary_hostname is not in public DNS. EXTERNAL_HOSTNAME is a macro
+ # defined in the main config.
+ helo_data = EXTERNAL_HOSTNAME
# vim: set sts=2 expandtab sw=2 ai: