Pārlūkot izejas kodu

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

fix #3590
might even prevent memory error in #2545
Jan Malte Gerth 5 gadi atpakaļ
vecāks
revīzija
15254fc48f
1 mainītis faili ar 1 papildinājumiem un 0 dzēšanām
  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()