mirror of
https://github.com/simple-login/app.git
synced 2024-11-10 17:35:27 +08:00
add logging for case reverse alias receiving email from <>
This commit is contained in:
parent
ade07f9449
commit
ce22e16285
1 changed files with 8 additions and 0 deletions
|
@ -1604,6 +1604,14 @@ def handle(envelope: Envelope) -> str:
|
|||
# recipient starts with "reply+" or "ra+" (ra=reverse-alias) prefix
|
||||
if is_reply_email(rcpt_to):
|
||||
LOG.d("Reply phase %s(%s) -> %s", mail_from, copy_msg["From"], rcpt_to)
|
||||
|
||||
# for debugging. A reverse alias should never receive a bounce report from MTA
|
||||
# as emails are sent with VERP
|
||||
# but it's possible that some MTA don't send the bounce report correctly
|
||||
# todo: to remove once this issue is understood
|
||||
if mail_from == "<>":
|
||||
LOG.exception("email from <> to reverse alias %s. \n%s", rcpt_to, msg)
|
||||
|
||||
is_delivered, smtp_status = handle_reply(envelope, copy_msg, rcpt_to)
|
||||
res.append((is_delivered, smtp_status))
|
||||
else: # Forward case
|
||||
|
|
Loading…
Reference in a new issue