出于安全原因(以及其他原因)我想隐藏来自SMTP响应的“Postfix”
现在:
[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
我只需要答案是:
220 mail.example.biz ESMTP
这可能吗?
更改smtpd_banner 。 请注意,根据协议, $myhostname必须是第一个参数。
smtpd_banner = $myhostname ESMTP random mail server bent over and ready.