Browse Source

Use error level when greylisting happens

Son NK 5 năm trước cách đây
mục cha
commit
eab45beef2
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      email_handler.py

+ 1 - 1
email_handler.py

@@ -795,7 +795,7 @@ def handle(envelope: Envelope, smtp: SMTP) -> str:
 
     # Whether it's necessary to apply greylisting
     if greylisting_needed(envelope.mail_from, envelope.rcpt_tos):
-        LOG.warning(
+        LOG.error(
             "Grey listing applied for %s %s", envelope.mail_from, envelope.rcpt_tos
         )
         return "421 SL Retry later"