Lynis – Warning: found mail_name in SMTP banner, and/or mail_name contains ‘Postfix’.

Posted by ZedTuX 0n R00t on January 12, 2014

If Lynis list the following warning:

Warning: found mail_name in SMTP banner, and/or mail_name contains ‘Postfix’.

You will fix it by editing the file /etc/postfix/main.cf and removing everything after the ESMTP on the following line:

1
smtpd_banner = $myhostname ESMTP $mail_name (Ubuntu)

And of course, restart postfix:

1
sudo /etc/init.d/postfix restart