Expose Postfix's recipient_canonical_maps through web UI

This commit is contained in:
Michael Kuron
2018-01-23 19:59:06 +01:00
parent 40c5566d0d
commit e86565e283
12 changed files with 581 additions and 6 deletions

View File

@@ -145,6 +145,16 @@ query = SELECT bcc_dest FROM bcc_maps
AND active='1';
EOF
cat <<EOF > /opt/postfix/conf/sql/mysql_recipient_canonical_maps.cf
user = ${DBUSER}
password = ${DBPASS}
hosts = mysql
dbname = ${DBNAME}
query = SELECT new_dest FROM recipient_maps
WHERE old_dest='%s'
AND active='1';
EOF
cat <<EOF > /opt/postfix/conf/sql/mysql_virtual_domains_maps.cf
user = ${DBUSER}
password = ${DBPASS}