summaryrefslogtreecommitdiff
path: root/templates/virtual/database/mysql_virtual_alias_domain_catchall_maps.cf.erb
blob: daa4b06658e1a1352316d6a0df4388be39b91edc (plain)
1
2
3
4
5
user      = <%= scope.lookupvar('mail::virtual::database_user') %>
password  = <%= scope.lookupvar('mail::virtual::database_password') %>
hosts     = <%= scope.lookupvar('mail::virtual::database_host') %>
dbname    = <%= scope.lookupvar('mail::virtual::database_name') %>
query     = SELECT goto FROM alias,alias_domain WHERE alias_domain.alias_domain = '%d' and alias.address = CONCAT('@', alias_domain.target_domain) AND alias.active = 1 AND alias_domain.active='1'