From adbecef56fc777ea62785a85e8ed461c8048fb8d Mon Sep 17 00:00:00 2001 From: zekeriya Date: Sat, 14 Sep 2019 21:07:18 +0300 Subject: [PATCH] [Dovecot] Fixed variable names for DB connection. --- data/Dockerfiles/dovecot/quarantine_notify.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/data/Dockerfiles/dovecot/quarantine_notify.py b/data/Dockerfiles/dovecot/quarantine_notify.py index 8866d9057..8a33c4e34 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='sdvZ39iWd86UnVI772spU48VO1T8', 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)