Files
mail-hosting/etc/postfix/sql/mysql_virtual_alias_maps.cf
2022-05-15 21:41:43 +02:00

6 lines
264 B
CFEngine3

user = postfix_readonly
password = YOUR_PASSWORD
hosts = localhost
dbname = postfix
query = SELECT goto FROM alias WHERE address = CONCAT('%u', '@', COALESCE((SELECT target_domain FROM alias_domain WHERE alias_domain = '%d' AND active='1'), '%d')) AND active = 1;