编辑 Exim 的横幅

编辑 Exim 的横幅

有没有办法将 EXIM smtp 横幅放在 1 行而不是 3 行上?横幅以 220 开头。我一直在寻找,但找不到方法。

在 /etc/exim.conf 下我有

#todd host's
smtp_banner = "${primary_hostname} ESMTP Exim ${version_number} \
\#${compile_number} ${tod_full} \n\
  We do not authorize the use of this system to transport unsolicited, \n\
  and/or bulk e-mail."

我要写那一行吗?

答案1

上面的评论者是正确的,是“\n”在你的横幅中加入了换行符。引用exim_docssmtp_banner 的定义:

This string, which is expanded every time it is used, is output as the
initial positive response to an SMTP connection. The default setting is:

smtp_banner = $smtp_active_hostname ESMTP Exim \
  $version_number $tod_full

Failure to expand the string causes a panic error. If you want to create
a multiline response to the initial SMTP connection, use “\n” in the
string at appropriate points, but not at the end.

相关内容