[Postfix] Enable/create smtp_tls_policy_maps

master
André 2018-10-04 14:34:53 +02:00
parent f6b2a6aab2
commit c6aa3610f0
1 changed files with 8 additions and 0 deletions

View File

@ -29,6 +29,14 @@ query = SELECT DISTINCT
END AS result; END AS result;
EOF EOF
cat <<EOF > /opt/postfix/conf/sql/mysql_tls_policy_override_maps.cf
user = ${DBUSER}
password = ${DBPASS}
hosts = unix:/var/run/mysqld/mysqld.sock
dbname = ${DBNAME}
query = SELECT CONCAT(policy, ' ', parameters) AS tls_policy FROM tls_policy_override WHERE active = '1' AND dest = '%s'
EOF
cat <<EOF > /opt/postfix/conf/sql/mysql_tls_enforce_in_policy.cf cat <<EOF > /opt/postfix/conf/sql/mysql_tls_enforce_in_policy.cf
user = ${DBUSER} user = ${DBUSER}
password = ${DBPASS} password = ${DBPASS}