ansible-mailserver-debian/mail_system/templates/postfix/relay_recipient_maps.cf

10 lines
372 B
CFEngine3

# THIS FILE IS CONTROLLED BY ANSIBLE - DO NOT CHANGE IN DEPLOYMENT!
# man pgsql_table
user = {{ mailserver.postgresql.username }}
password = {{ mailserver.postgresql.password }}
dbname = {{ mailserver.postgresql.dbname }}
hosts = {{ mailserver.postgresql.host }}
query = SELECT 1 FROM domains WHERE relay_transport is not null and split_part('%s', '@', 2)=name LIMIT 1