/etc/mailhelo based primary host name in smtp transaction

ceynet

Member
Dec 30, 2007
5
0
51
hi all,
in the following smtp transaction, i have managed to customize the banner based on the domain (using /etc/mailips and /etc/mailhelo and bit of advance editor code)

the primary host name is "prihst2.troublemaker.com". when i telnet or test using mxtoolbox, i see the primary host name appear in the smtp transaction after the EHLO.

what i want is to replace the primary host name with the proper hostname from the mailhelo file.

could some one pass me some resources or workarounds.

thanks

~viks

when i "telnet mx.klm.com 25"..

Connected to mx.klm.com.
Escape character is '^]'.
220 mx.klm.com ESMTP Thu, 12 Apr 2012 06:01:47 +0000
EHLO
250-prihst2.troublemaker.com Hello [xxx.xxx.xxx.xx]
250-SIZE 52428800
250-PIPELINING
250-STARTTLS
250 HELP
421 prihst2.troublemaker.com: SMTP command timeout - closing connection Connection closed by foreign host.