浏览代码

[Dovecot] Quarantine: add increment of count to prevent infinity loop (#3591)

fix #3590
might even prevent memory error in #2545
Jan Malte Gerth 5 年之前
父节点
当前提交
15254fc48f
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      data/Dockerfiles/dovecot/quarantine_notify.py

+ 1 - 0
data/Dockerfiles/dovecot/quarantine_notify.py

@@ -70,6 +70,7 @@ def notify_rcpt(rcpt, msg_count, quarantine_acl):
   text = html2text.html2text(html)
   count = 0
   while count < 15:
+    count += 1
     try:
       server = smtplib.SMTP('postfix', 590, 'quarantine')
       server.ehlo()