1
0
mirror of https://github.com/mailcow/mailcow-dockerized.git synced 2025-12-13 09:56:01 +00:00

[Dovecot] Use Redis ACL user quota_notify with restricted access

This commit is contained in:
FreddleSpl0it
2025-02-11 16:59:18 +01:00
parent 743e88fd67
commit ef2f5f7be0
3 changed files with 4 additions and 3 deletions

View File

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

View File

@@ -2,6 +2,7 @@
cat <<EOF > /redis.conf
requirepass $REDISPASS
user quota_notify on nopass ~QW_* -@all +get +hget +ping
EOF
exec redis-server /redis.conf