ansible-role-mailserver/templates/postfix/sql/virtual-alias-domains-maps.cf

7 lines
340 B
CFEngine3
Raw Normal View History

2020-07-24 12:42:59 +02:00
user = {{ mailserver_db_user }}
password = {{ mailserver_db_password }}
hosts = {{ mailserver_db_host }}
dbname = {{ mailserver_db_name }}
query = SELECT goto FROM alias,alias_domain WHERE alias_domain.alias_domain = '%d' and alias.address = CONCAT('%u', '@', alias_domain.target_domain) AND alias.active = '1' AND alias_domain.active='1'