From 9ee557e5a544660c80c066f84c906742a3167d7d Mon Sep 17 00:00:00 2001 From: andryyy Date: Mon, 12 Nov 2018 09:49:52 +0100 Subject: [PATCH] [Postfix] Adjust mailbox query --- data/Dockerfiles/postfix/postfix.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/data/Dockerfiles/postfix/postfix.sh b/data/Dockerfiles/postfix/postfix.sh index 83ec94e0..2feba53d 100755 --- a/data/Dockerfiles/postfix/postfix.sh +++ b/data/Dockerfiles/postfix/postfix.sh @@ -184,7 +184,7 @@ user = ${DBUSER} password = ${DBPASS} hosts = unix:/var/run/mysqld/mysqld.sock dbname = ${DBNAME} -query = SELECT maildir FROM mailbox WHERE username='%s' AND active = '1' +query = SELECT CONCAT(mailbox_format, mailbox_path_prefix, '%d/%u/') FROM mailbox WHERE username='%s' AND active = '1' EOF cat < /opt/postfix/conf/sql/mysql_virtual_relay_domain_maps.cf