feat: add mail
This commit is contained in:
5
mail/conf/postfix/mysql/relay_domains.cf
Normal file
5
mail/conf/postfix/mysql/relay_domains.cf
Normal file
@@ -0,0 +1,5 @@
|
||||
user = postfix
|
||||
password = password
|
||||
hosts = dbserver
|
||||
dbname = postfix
|
||||
query = SELECT domain FROM domain WHERE domain='%s' AND active = '1' AND (transport LIKE 'smtp%%' OR transport LIKE 'relay%%')
|
5
mail/conf/postfix/mysql/transport_maps.cf
Normal file
5
mail/conf/postfix/mysql/transport_maps.cf
Normal file
@@ -0,0 +1,5 @@
|
||||
user = postfix
|
||||
password = password
|
||||
hosts = dbserver
|
||||
dbname = postfix
|
||||
query = SELECT transport FROM domain WHERE domain='%s' AND active = '1' AND transport != 'virtual'
|
@@ -0,0 +1,5 @@
|
||||
user = postfix
|
||||
password = password
|
||||
hosts = dbserver
|
||||
dbname = postfix
|
||||
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'
|
@@ -0,0 +1,5 @@
|
||||
user = postfix
|
||||
password = password
|
||||
hosts = dbserver
|
||||
dbname = postfix
|
||||
query = SELECT maildir FROM mailbox,alias_domain WHERE alias_domain.alias_domain = '%d' and mailbox.username = CONCAT('%u', '@', alias_domain.target_domain) AND mailbox.active='1' AND alias_domain.active='1'
|
5
mail/conf/postfix/mysql/virtual_alias_domain_maps.cf
Normal file
5
mail/conf/postfix/mysql/virtual_alias_domain_maps.cf
Normal file
@@ -0,0 +1,5 @@
|
||||
user = postfix
|
||||
password = password
|
||||
hosts = dbserver
|
||||
dbname = postfix
|
||||
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'
|
5
mail/conf/postfix/mysql/virtual_alias_maps.cf
Normal file
5
mail/conf/postfix/mysql/virtual_alias_maps.cf
Normal file
@@ -0,0 +1,5 @@
|
||||
user = postfix
|
||||
password = password
|
||||
hosts = dbserver
|
||||
dbname = postfix
|
||||
query = SELECT goto FROM alias WHERE address='%s' AND active = '1'
|
10
mail/conf/postfix/mysql/virtual_domains_maps.cf
Normal file
10
mail/conf/postfix/mysql/virtual_domains_maps.cf
Normal file
@@ -0,0 +1,10 @@
|
||||
user = postfix
|
||||
password = password
|
||||
hosts = dbserver
|
||||
dbname = postfix
|
||||
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'
|
||||
#optional query to use for transport map support
|
||||
#query = SELECT domain FROM domain WHERE domain='%s' AND active = '1' AND NOT (transport LIKE 'smtp%%' OR transport LIKE 'relay%%')
|
5
mail/conf/postfix/mysql/virtual_mailbox_limit_maps.cf
Normal file
5
mail/conf/postfix/mysql/virtual_mailbox_limit_maps.cf
Normal file
@@ -0,0 +1,5 @@
|
||||
user = postfix
|
||||
password = password
|
||||
hosts = dbserver
|
||||
dbname = postfix
|
||||
query = SELECT quota FROM mailbox WHERE username='%s' AND active = '1'
|
5
mail/conf/postfix/mysql/virtual_mailbox_maps.cf
Normal file
5
mail/conf/postfix/mysql/virtual_mailbox_maps.cf
Normal file
@@ -0,0 +1,5 @@
|
||||
user = postfix
|
||||
password = password
|
||||
hosts = dbserver
|
||||
dbname = postfix
|
||||
query = SELECT maildir FROM mailbox WHERE username='%s' AND active = '1'
|
5
mail/conf/postfix/mysql/virtual_sender_maps.cf
Normal file
5
mail/conf/postfix/mysql/virtual_sender_maps.cf
Normal file
@@ -0,0 +1,5 @@
|
||||
user = postfix
|
||||
password = password
|
||||
hosts = dbserver
|
||||
dbname = postfix
|
||||
query = SELECT username FROM mailbox WHERE username='%s' AND active = '1'
|
Reference in New Issue
Block a user