mirror of
https://github.com/simple-login/app.git
synced 2024-11-13 07:31:12 +01:00
add logging
This commit is contained in:
parent
295c2fd03f
commit
e84e4d50c7
1 changed files with 1 additions and 0 deletions
|
@ -475,6 +475,7 @@ def handle_reply(envelope, smtp: SMTP, msg: Message, rcpt_to: str) -> (bool, str
|
|||
mailb: Mailbox = Mailbox.get_by(email=mailbox_email)
|
||||
if ENFORCE_SPF and mailb.force_spf:
|
||||
if msg[_IP_HEADER]:
|
||||
LOG.d("Enforce SPF")
|
||||
try:
|
||||
r = spf.check2(i=msg[_IP_HEADER], s=envelope.mail_from.lower(), h=None)
|
||||
except Exception:
|
||||
|
|
Loading…
Reference in a new issue