Initial commit
This commit is contained in:
5
etc/postfix/sql/mysql_tls_policy_in.cf
Normal file
5
etc/postfix/sql/mysql_tls_policy_in.cf
Normal file
@ -0,0 +1,5 @@
|
||||
user = postfix_readonly
|
||||
password = YOUR_PASSWORD
|
||||
hosts = localhost
|
||||
dbname = postfix
|
||||
query = SELECT 'reject_plaintext_session' FROM mailbox WHERE username=CONCAT('%u', '@', COALESCE((SELECT target_domain FROM alias_domain WHERE alias_domain = '%d' AND active='1'), '%d')) AND active = 1 AND enforce_tls_in = 1 UNION SELECT 'reject_plaintext_session' FROM alias WHERE address=CONCAT('%u', '@', COALESCE((SELECT target_domain FROM alias_domain WHERE alias_domain = '%d' AND active='1'), '%d')) AND active = 1 AND enforce_tls_in = 1
|
5
etc/postfix/sql/mysql_transport_maps.cf
Normal file
5
etc/postfix/sql/mysql_transport_maps.cf
Normal file
@ -0,0 +1,5 @@
|
||||
user = postfix_readonly
|
||||
password = YOUR_PASSWORD
|
||||
hosts = localhost
|
||||
dbname = postfix
|
||||
query = SELECT ':' FROM domain WHERE domain='%d' AND active = '1'
|
5
etc/postfix/sql/mysql_virtual_alias_maps.cf
Normal file
5
etc/postfix/sql/mysql_virtual_alias_maps.cf
Normal file
@ -0,0 +1,5 @@
|
||||
user = postfix_readonly
|
||||
password = YOUR_PASSWORD
|
||||
hosts = localhost
|
||||
dbname = postfix
|
||||
query = SELECT goto FROM alias WHERE address = CONCAT('%u', '@', COALESCE((SELECT target_domain FROM alias_domain WHERE alias_domain = '%d' AND active='1'), '%d')) AND active = 1;
|
5
etc/postfix/sql/mysql_virtual_auth_maps.cf
Normal file
5
etc/postfix/sql/mysql_virtual_auth_maps.cf
Normal file
@ -0,0 +1,5 @@
|
||||
user = postfix_readonly
|
||||
password = YOUR_PASSWORD
|
||||
hosts = localhost
|
||||
dbname = postfix
|
||||
query = SELECT username FROM mailbox WHERE username=CONCAT('%u', '@', COALESCE((SELECT target_domain FROM alias_domain WHERE alias_domain = '%d' AND active='1'), '%d')) AND active = '1'
|
6
etc/postfix/sql/mysql_virtual_domain_unauth_block.cf
Normal file
6
etc/postfix/sql/mysql_virtual_domain_unauth_block.cf
Normal file
@ -0,0 +1,6 @@
|
||||
user = postfix_readonly
|
||||
password = YOUR_PASSWORD
|
||||
hosts = localhost
|
||||
dbname = postfix
|
||||
query = SELECT 'REJECT' FROM domain WHERE domain='%d' AND active = '1'
|
||||
|
5
etc/postfix/sql/mysql_virtual_domains_maps.cf
Normal file
5
etc/postfix/sql/mysql_virtual_domains_maps.cf
Normal file
@ -0,0 +1,5 @@
|
||||
user = postfix_readonly
|
||||
password = YOUR_PASSWORD
|
||||
hosts = localhost
|
||||
dbname = postfix
|
||||
query = SELECT domain FROM domain WHERE domain='%s' AND active = '1'
|
5
etc/postfix/sql/mysql_virtual_mailbox_maps.cf
Normal file
5
etc/postfix/sql/mysql_virtual_mailbox_maps.cf
Normal file
@ -0,0 +1,5 @@
|
||||
user = postfix_readonly
|
||||
password = YOUR_PASSWORD
|
||||
hosts = localhost
|
||||
dbname = postfix
|
||||
query = SELECT 1 FROM mailbox WHERE username='%s' AND active = '1'
|
Reference in New Issue
Block a user