add more log to investigate "Cannot parse Postfix queue ID" error

This commit is contained in:
Son 2021-10-15 10:37:22 +02:00
parent 57bfa7e933
commit d18bb28ca9
1 changed files with 5 additions and 1 deletions

View File

@ -1744,7 +1744,11 @@ def handle(envelope: Envelope) -> str:
if postfix_queue_id:
set_message_id(postfix_queue_id)
else:
LOG.d("Cannot parse Postfix queue ID from %s", msg[headers.RECEIVED])
LOG.d(
"Cannot parse Postfix queue ID from %s %s",
msg.get_all(headers.RECEIVED),
msg[headers.RECEIVED],
)
if should_ignore(mail_from, rcpt_tos):
LOG.w("Ignore email mail_from=%s rcpt_to=%s", mail_from, rcpt_tos)