[Postfix] Finally here: MX based transport map routing; Sorry it took years, Patrik

[Web] Small fixes
This commit is contained in:
andryyy
2021-05-28 10:40:41 +02:00
parent f54ab6f867
commit 8a83587800
12 changed files with 112 additions and 49 deletions

View File

@@ -337,6 +337,19 @@ query = SELECT goto FROM alias
AND alias_domain.active='1'
EOF
# MX based routing
cat <<EOF > /opt/postfix/conf/sql/mysql_mbr_access_maps.cf
# Autogenerated by mailcow
user = ${DBUSER}
password = ${DBPASS}
hosts = unix:/var/run/mysqld/mysqld.sock
dbname = ${DBNAME}
query = SELECT CONCAT('FILTER smtp_via_transport_maps:', nexthop) as transport FROM transports
WHERE '%s' REGEXP destination
AND active='1'
AND is_mx_based='1';
EOF
# Reject sasl usernames with smtp disabled
cat <<EOF > /opt/postfix/conf/sql/mysql_sasl_access_maps.cf
# Autogenerated by mailcow