Назад | Перейти на главную страницу

Редактирование баннера Exim

Есть ли способ разместить smtp-баннер EXIM на одной строке вместо трех? Баннер начинается с 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."

сделать одну строчку?

Комментатор выше верен, это символ "\ n", который помещает новые строки в ваш баннер. Цитируя exim_docs определение smtp_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.