Howto masquerade Postfix on SMTP session?

Shirker asked:

for security reason (and for other reasons too) I want to hide “Postfix” from SMTP response

now:

[root@mail ~]# telnet 127.0.0.1 25
    Trying 127.0.0.1...
    Connected to 127.0.0.1.
    Escape character is '^]'.
    220 mail.example.biz ESMTP Postfix

I need the answer to be only:

220 mail.example.biz ESMTP

Is this possible?

My answer:


Change smtpd_banner. Note that per protocol, $myhostname must be the first argument.

smtpd_banner = $myhostname ESMTP random mail server bent over and ready.

View the full question and answer on Server Fault.

Creative Commons License
This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.