SMTPD multiline banner Patch
Durante la vida de postfix he ofrecido varios parches
pequeños, algunos de los cuales han sido aceptados por
Wietse (con cambios).
Un parche que encuentro útil es el parche SMTPD
mensaje de bienvenida multilínea.
Postfix solamente soporta la devolución de una sola
línea smtp como bienvenida cuando un cliente conecta al
puerto SMTP.
Este parche permite que el administrador del sistema pueda dar
inforamción del sistema a un administrador remoto, dando
información en el mensaje de bienvenida SMTP de su servidor
de correo.
El URL para este parche es:
Para usar este parche se debe configurar
/etc/postfix/main.cf de la siguiente manera:
# The smtpd_banner parameter specifies the text that follows the 220
# status code in the SMTP greeting banner. Some people like to see
# the mail version advertised. By default, Postfix shows no version.
#
# You MUST specify the $myhostname at the start of the text. When
# the SMTP client sees its own hostname at the start of an SMTP
# greeting banner it will report a mailer loop. That's better than
# having a machine meltdown.
#
# Additionally when the smtpd_banner patch is applied multiple lines
# can be sent in the smtpd_banner, each new line separated by the
# sequence "\n" as shown below.
#
smtpd_banner = $myhostname ESMTP $mail_name\n
\n
System Info: This is a Postfix mail server\n
. running a multiline SMTP greeting patch\n
\n
Further Info: See http://www.postfix.org\n
\n
Site Contact: John Smith, Postmaster\n
Email: <postmaster@test.com>n
Telephone: +1-123-456-7890
\n
Please don't send me SPAM here - we don't like it
# This produces the following SMTP greeting:
#
# 220-mail.test.com ESMTP Postfix
# 220-
# 220-System Info: This is a Postfix mail server
# 220-. running a multiline SMTP greeting patch
# 220-
# 220-Further Info: See http://www.postfix.org
# 220-
# 220-Site Contact: John Smith, Postmaster
# 220-Email: <postmaster@test.com>
# 220-Telephone: +1-123-456-7890
# 220-
# 220 Please don't send me SPAM here - we don't like it
|