mailcow/data/conf/postfix/sql/mysql_virtual_alias_domain_...

6 lines
279 B
CFEngine3

user = mailcow
password = mysafepasswd
hosts = mysql
dbname = mailcow
query = SELECT username FROM mailbox,alias_domain WHERE alias_domain.alias_domain = '%d' and mailbox.username = CONCAT('%u', '@', alias_domain.target_domain) AND mailbox.active = 1 AND alias_domain.active='1'