Trying out the new \c feature of smtpd_reject_footer and getting
unexpected behavior.  While everything looks normal in the logs, the
sending client gets a timeout/lost connection.


Oh, found a workaround.  Add \n at the end of smtpd_reject_footer.



mail_version = 2.10-20120404

# main.cf
smtpd_reject_footer = \cContact postmas...@example.org for
assistance.  Include this data: servertime=($localtime)
client=([$client_address]:$client_port) server=($server_name)


Logs look normal on the receiving end until the timeout:

Apr  7 15:01:30 mgate3 postfix/smtpd[25040]: connect from
mailgate.example.org[192.168.70.34] to smtpd

Apr  7 15:01:30 mgate3 postfix/smtpd[25040]: Anonymous TLS
connection established from mailgate.example.org[192.168.70.34]: TL
Sv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)

Apr  7 15:01:30 mgate3 postfix/smtpd[25040]: NOQUEUE: reject: RCPT
from mailgate.example.org[192.168.70.34]: 550 5.1.1 <goober
f...@mgate3.example.org>: Recipient address rejected: User unknown
in local recipient table; from=<r...@mgate2.example.org> to=<
gooberf...@mgate3.example.org> proto=ESMTP helo=<mailgate.example.org>

Apr  7 15:02:30 mgate3 postfix/smtpd[25040]: timeout after DATA from
mailgate.example.org[192.168.70.34]
Apr  7 15:02:30 mgate3 postfix/smtpd[25040]: disconnect from
mailgate.example.org[192.168.70.34]



Sending client:

Apr  7 15:01:30 mgate2 postfix/smtp[80066]: Trusted TLS connection
established to mgate3.example.org[192.168.70.43]:25: TLSv1
with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)

Apr  7 15:02:30 mgate2 postfix/smtp[80066]: 3VQ7vZ0Txvz190bw:
to=<gooberf...@mgate3.example.org>, relay=mgate3.example.org[192.1
68.70.43]:25, delay=61, delays=0.07/0.05/0.28/60, dsn=4.4.2,
status=deferred (lost connection with mgate3.example.org[192.168.
70.43] while sending RCPT TO)



  -- Noel Jones

Reply via email to