diff --git a/data/Dockerfiles/dovecot/quota_notify.py b/data/Dockerfiles/dovecot/quota_notify.py index c2c73e7a9..598134e22 100755 --- a/data/Dockerfiles/dovecot/quota_notify.py +++ b/data/Dockerfiles/dovecot/quota_notify.py @@ -23,7 +23,7 @@ else: while True: try: - r = redis.StrictRedis(host='redis', decode_responses=True, port=6379, db=0, password=os.environ['REDISPASS']) + r = redis.StrictRedis(host='redis', decode_responses=True, port=6379, db=0, username='quota_notify', password='') r.ping() except Exception as ex: print('%s - trying again...' % (ex)) diff --git a/data/conf/redis/redis-conf.sh b/data/conf/redis/redis-conf.sh index 95d50a39a..89b2a3bab 100755 --- a/data/conf/redis/redis-conf.sh +++ b/data/conf/redis/redis-conf.sh @@ -2,6 +2,7 @@ cat < /redis.conf requirepass $REDISPASS +user quota_notify on nopass ~QW_* -@all +get +hget +ping EOF exec redis-server /redis.conf diff --git a/docker-compose.yml b/docker-compose.yml index 421610bac..f43edc0cf 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -43,7 +43,7 @@ services: redis-mailcow: image: redis:7-alpine - entrypoint: /redis-conf.sh + entrypoint: ["/bin/sh","/redis-conf.sh"] volumes: - redis-vol-1:/data/ - ./data/conf/redis/redis-conf.sh:/redis-conf.sh:z @@ -230,7 +230,7 @@ services: - sogo dovecot-mailcow: - image: mailcow/dovecot:2.3 + image: mailcow/dovecot:2.31 depends_on: - mysql-mailcow - netfilter-mailcow