From 15254fc48f2d08d316bbc846f3c916525b68b4bc Mon Sep 17 00:00:00 2001 From: Jan Malte Gerth Date: Thu, 4 Jun 2020 11:37:43 +0200 Subject: [PATCH] [Dovecot] Quarantine: add increment of count to prevent infinity loop (#3591) fix #3590 might even prevent memory error in #2545 --- data/Dockerfiles/dovecot/quarantine_notify.py | 1 + 1 file changed, 1 insertion(+) diff --git a/data/Dockerfiles/dovecot/quarantine_notify.py b/data/Dockerfiles/dovecot/quarantine_notify.py index 59e3e660..1c250bd3 100755 --- a/data/Dockerfiles/dovecot/quarantine_notify.py +++ b/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()