Source

iredmail / iRedMail / samples / postfix / mysql / virtual_mailbox_domains.cf

Full commit
1
2
3
4
5
6
user        = vmail
password    = NSep2RRC7vzN9k6dW5bnc07fTLDEW7
hosts       = 127.0.0.1
port        = 3306
dbname      = vmail
query       = SELECT domain FROM domain WHERE domain='%s' AND backupmx=0 AND active=1 UNION SELECT alias_domain.alias_domain FROM alias_domain,domain WHERE alias_domain.alias_domain='%s' AND alias_domain.active=1 AND alias_domain.target_domain=domain.domain AND domain.active=1 AND domain.backupmx=0