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

6 lines
268 B
CFEngine3
Raw Normal View History

2016-12-10 03:39:02 +08:00
user = mailcow
password = mysafepasswd
hosts = mysql
dbname = mailcow
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'