@@ -0,0 +1,4 @@ | |||||
postfix_postfixadmin_mysql_host: localhost | |||||
postfix_postfixadmin_mysql_database: postfixadmin | |||||
postfix_postfixadmin_mysql_username: postfix | |||||
postfix_postfixadmin_mysql_password: eiVa9aloex5fiayeepheequ7 |
@@ -1,6 +1,6 @@ | |||||
# handles catch-all settings of target-domain | # handles catch-all settings of target-domain | ||||
user = postfix | |||||
password = password | |||||
hosts = localhost | |||||
dbname = postfix | |||||
user = {{postfix_postfixadmin_mysql_username}} | |||||
password = {{postfix_postfixadmin_mysql_password}} | |||||
hosts = {{postfix_postfixadmin_mysql_host}} | |||||
dbname = {{postfix_postfixadmin_mysql_database}} | |||||
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' | 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' |
@@ -1,5 +1,5 @@ | |||||
user = postfix | |||||
password = password | |||||
hosts = localhost | |||||
dbname = postfix | |||||
user = {{postfix_postfixadmin_mysql_username}} | |||||
password = {{postfix_postfixadmin_mysql_password}} | |||||
hosts = {{postfix_postfixadmin_mysql_host}} | |||||
dbname = {{postfix_postfixadmin_mysql_database}} | |||||
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' | 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' |
@@ -1,5 +1,5 @@ | |||||
user = postfix | |||||
password = password | |||||
hosts = localhost | |||||
dbname = postfix | |||||
user = {{postfix_postfixadmin_mysql_username}} | |||||
password = {{postfix_postfixadmin_mysql_password}} | |||||
hosts = {{postfix_postfixadmin_mysql_host}} | |||||
dbname = {{postfix_postfixadmin_mysql_database}} | |||||
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' | 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' |
@@ -1,6 +1,6 @@ | |||||
user = postfix | |||||
password = password | |||||
hosts = localhost | |||||
dbname = postfix | |||||
user = {{postfix_postfixadmin_mysql_username}} | |||||
password = {{postfix_postfixadmin_mysql_password}} | |||||
hosts = {{postfix_postfixadmin_mysql_host}} | |||||
dbname = {{postfix_postfixadmin_mysql_database}} | |||||
query = SELECT goto FROM alias WHERE address='%s' AND active = '1' | query = SELECT goto FROM alias WHERE address='%s' AND active = '1' | ||||
#expansion_limit = 100 | #expansion_limit = 100 |
@@ -1,7 +1,7 @@ | |||||
user = postfix | |||||
password = password | |||||
hosts = localhost | |||||
dbname = postfix | |||||
user = {{postfix_postfixadmin_mysql_username}} | |||||
password = {{postfix_postfixadmin_mysql_password}} | |||||
hosts = {{postfix_postfixadmin_mysql_host}} | |||||
dbname = {{postfix_postfixadmin_mysql_database}} | |||||
query = SELECT domain FROM domain WHERE domain='%s' AND active = '1' | query = SELECT domain FROM domain WHERE domain='%s' AND active = '1' | ||||
#query = SELECT domain FROM domain WHERE domain='%s' | #query = SELECT domain FROM domain WHERE domain='%s' | ||||
#optional query to use when relaying for backup MX | #optional query to use when relaying for backup MX | ||||
@@ -1,5 +1,5 @@ | |||||
user = postfix | |||||
password = password | |||||
hosts = localhost | |||||
dbname = postfix | |||||
user = {{postfix_postfixadmin_mysql_username}} | |||||
password = {{postfix_postfixadmin_mysql_password}} | |||||
hosts = {{postfix_postfixadmin_mysql_host}} | |||||
dbname = {{postfix_postfixadmin_mysql_database}} | |||||
query = SELECT quota FROM mailbox WHERE username='%s' AND active = '1' | query = SELECT quota FROM mailbox WHERE username='%s' AND active = '1' |
@@ -1,6 +1,6 @@ | |||||
user = postfix | |||||
password = password | |||||
hosts = localhost | |||||
dbname = postfix | |||||
user = {{postfix_postfixadmin_mysql_username}} | |||||
password = {{postfix_postfixadmin_mysql_password}} | |||||
hosts = {{postfix_postfixadmin_mysql_host}} | |||||
dbname = {{postfix_postfixadmin_mysql_database}} | |||||
query = SELECT maildir FROM mailbox WHERE username='%s' AND active = '1' | query = SELECT maildir FROM mailbox WHERE username='%s' AND active = '1' | ||||
#expansion_limit = 100 | #expansion_limit = 100 |