summaryrefslogtreecommitdiff
path: root/templates/virtual/database/mysql_virtual_domains_maps.cf.erb
blob: cb1322ff1f04aa9eafb0227beb686f143aeb5e23 (plain)
1
2
3
4
5
6
7
8
9
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 domain FROM domain WHERE domain='%s' AND active = '1'
#query    = SELECT domain FROM domain WHERE domain='%s'
#optional query to use when relaying for backup MX
#query    = SELECT domain FROM domain WHERE domain='%s' AND backupmx = '0' AND active = '1'
#expansion_limit = 100