From 4e97da197e2a5f158bd63f440c4843df84d842ef Mon Sep 17 00:00:00 2001 From: andryyy Date: Fri, 8 Feb 2019 10:06:28 +0100 Subject: [PATCH] [Dovecot] Fix quarantine notificatin script [Compose] Update Dovecot image --- data/Dockerfiles/dovecot/quarantine_notify.py | 2 +- docker-compose.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/data/Dockerfiles/dovecot/quarantine_notify.py b/data/Dockerfiles/dovecot/quarantine_notify.py index b79bab2f..0902e4aa 100755 --- a/data/Dockerfiles/dovecot/quarantine_notify.py +++ b/data/Dockerfiles/dovecot/quarantine_notify.py @@ -30,7 +30,7 @@ time_now = int(time.time()) def query_mysql(query, headers = True, update = False): while True: try: - cnx = mysql.connector.connect(unix_socket = '/var/run/mysqld/mysqld.sock', user='mailcow', passwd='9S6jd31ijEytZE9lQ8sWOxK34tg5', database='mailcow', charset="utf8") + cnx = mysql.connector.connect(unix_socket = '/var/run/mysqld/mysqld.sock', user='__DBUSER__', passwd='__DBPASS__', database='__DBNAME__', charset="utf8") except Exception as ex: print '%s - trying again...' % (ex) time.sleep(3) diff --git a/docker-compose.yml b/docker-compose.yml index 20aaf4d4..a0a54ee8 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -164,7 +164,7 @@ services: - sogo dovecot-mailcow: - image: mailcow/dovecot:1.60 + image: mailcow/dovecot:1.61 build: ./data/Dockerfiles/dovecot cap_add: - NET_BIND_SERVICE