浏览代码

use warning level for SPF fail message

Son NK 5 年之前
父节点
当前提交
708816cb05
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      email_handler.py

+ 1 - 1
email_handler.py

@@ -631,7 +631,7 @@ def spf_pass(
             # TODO: Handle temperr case (e.g. dns timeout)
             # TODO: Handle temperr case (e.g. dns timeout)
             # only an absolute pass, or no SPF policy at all is 'valid'
             # only an absolute pass, or no SPF policy at all is 'valid'
             if r[0] not in ["pass", "none"]:
             if r[0] not in ["pass", "none"]:
-                LOG.error(
+                LOG.warning(
                     "SPF fail for mailbox %s, reason %s, failed IP %s",
                     "SPF fail for mailbox %s, reason %s, failed IP %s",
                     mailbox.email,
                     mailbox.email,
                     r[0],
                     r[0],