Postfix未知命令

我在我目前的postfix安装上运行了两个月。 我注意到,从一个特定的客户端,他们发送一个无效的命令,包括其域名的前3个字母。 当postfix看到这个,它会导致我的米尔特退出。

我如何继续过去?

我已经看到了这个postfix文档,但不知道如何应用它:

milter_unknown_command_macros (default: see "postconf -d" output) The macros that are sent to version 3 or higher Milter (mail filter) applications after an unknown SMTP command. See MILTER_README for a list of available macro names and their meanings. This feature is available in Postfix 2.3 and later. 

谢谢

您可以使用smtpd_command_filter来排除这些伪造的命令:

在/etc/postfix/main.cf中:

smtpd_command_filter = pcre:/etc/postfix/bogus_commands

并在/ etc / postfix / bogus_commands中:

/[^ ]{3}/ NOOP

您可能必须testing正则expression式以适应您的需求。

没有包含3个字母的SMTP命令:)