1
0
mirror of https://github.com/mailcow/mailcow-dockerized.git synced 2024-12-14 10:52:49 +02:00

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

fix #3590
might even prevent memory error in #2545
This commit is contained in:
Jan Malte Gerth 2020-06-04 11:37:43 +02:00 committed by GitHub
parent e01c24aa05
commit 15254fc48f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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()