From b6b917eba847237b655d3579dc6f303021189c2b Mon Sep 17 00:00:00 2001 From: Son Date: Tue, 8 Mar 2022 18:35:18 +0100 Subject: [PATCH] add more log --- email_handler.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/email_handler.py b/email_handler.py index 9469eeb9..e76de0ec 100644 --- a/email_handler.py +++ b/email_handler.py @@ -1913,7 +1913,12 @@ def handle_unsubscribe(envelope: Envelope, msg: Message) -> str: # Only alias's owning mailbox can send the unsubscribe request mailbox = get_mailbox_from_mail_from(mail_from, alias) if not mailbox: - LOG.d("%s cannot disable alias %s", envelope.mail_from, alias) + LOG.d( + "%s cannot disable alias %s. Alias authorized addresses:%s", + envelope.mail_from, + alias, + alias.authorized_addresses, + ) return status.E509 user = alias.user