瀏覽代碼

[Postfix] Adjust mailbox query

andryyy 6 年之前
父節點
當前提交
9ee557e5a5
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      data/Dockerfiles/postfix/postfix.sh

+ 1 - 1
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 <<EOF > /opt/postfix/conf/sql/mysql_virtual_relay_domain_maps.cf