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