소스 검색

Use error level when greylisting happens

Son NK 5 년 전
부모
커밋
eab45beef2
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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
     # Whether it's necessary to apply greylisting
     if greylisting_needed(envelope.mail_from, envelope.rcpt_tos):
     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
             "Grey listing applied for %s %s", envelope.mail_from, envelope.rcpt_tos
         )
         )
         return "421 SL Retry later"
         return "421 SL Retry later"