瀏覽代碼

[Dovecot] Once again... finally fixed?

andryyy 6 年之前
父節點
當前提交
3bfd2c8885
共有 2 個文件被更改,包括 4 次插入4 次删除
  1. 3 3
      data/Dockerfiles/dovecot/quarantine_notify.py
  2. 1 1
      docker-compose.yml

+ 3 - 3
data/Dockerfiles/dovecot/quarantine_notify.py

@@ -59,8 +59,8 @@ def notify_rcpt(rcpt, msg_count):
       template = Template(r.get('Q_HTML'))
     except:
       print "Error: Cannot parse quarantine template, falling back to default template."
-    with open('/templates/quarantine.tpl') as file_:
-      template = Template(file_.read())
+      with open('/templates/quarantine.tpl') as file_:
+        template = Template(file_.read())
   else:
     with open('/templates/quarantine.tpl') as file_:
       template = Template(file_.read())
@@ -68,7 +68,7 @@ def notify_rcpt(rcpt, msg_count):
   count = 0
   while count < 15:
     try:
-      server = smtplib.SMTP('postfix', 590, 'quarntine')
+      server = smtplib.SMTP('postfix', 590, 'quarantine')
       server.ehlo()
       msg = MIMEMultipart('alternative')
       msg['From'] = r.get('Q_SENDER') or "quarantine@localhost"

+ 1 - 1
docker-compose.yml

@@ -164,7 +164,7 @@ services:
             - sogo
 
     dovecot-mailcow:
-      image: mailcow/dovecot:1.58
+      image: mailcow/dovecot:1.59
       build: ./data/Dockerfiles/dovecot
       cap_add:
         - NET_BIND_SERVICE