summaryrefslogtreecommitdiff
path: root/templates/postfix/sql/mysql_virtual_alias_domain_maps.cf.erb
blob: ac120c005cf4f35f522109f2e5f0307b978c6a92 (plain)
1
2
3
4
5
user      = <%= postfixadmin_database_user %>
password  = <%= postfixadmin_database_password %>
hosts     = <%= postfixadmin_database_host %>
dbname    = <%= postfixadmin_database_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'