[Exim] primary_hostname in smtp_in.c and helo_data

Αρχική Σελίδα
Delete this message
Reply to this message
Συντάκτης: Andreas Steinmetz
Ημερομηνία:  
Προς: exim-users
Αντικείμενο: [Exim] primary_hostname in smtp_in.c and helo_data
from smtp_in.c of exim 4.32, line 2363:

     s = string_sprintf("250 %s Hello %s%s%s",
       primary_hostname,
       ^^^^^^^^^^^^^^^^


Not nice, if previously helo_data was set. This results in e.g.:

# telnet hermes.domdv.de 25
Trying 193.102.202.1...
Connected to hermes.domdv.de.
Escape character is '^]'.
220 hermes.domdv.de ESMTP Exim 4.32 Tue, 20 Apr 2004 15:32:33 +0200
HELO p508ca928.dip.t-dialin.net
250 zeus.domdv.de Hello p508ca928.dip.t-dialin.net [80.140.169.40]
QUIT
221 zeus.domdv.de closing connection

As you can see in the above example there are more locations in
smtp_in.c where primary_hostname is used. And as primary_hostname is not
expanded, there's no way to set it depending on interface ip, etc. So
there's some hostname mismatch in the SMTP session, even if only in the
status messages.

Could primary_hostname be converted to an expanded string? The reasoning
is that you may want to give away only a certain hostname for some
interface or ip.
--
Andreas Steinmetz                       SPAMmers use robotrap@???