Przeglądaj źródła

postfixadmin mysql settings

master
rodzic
commit
f1248df5ea
8 zmienionych plików z 32 dodań i 28 usunięć
  1. +4
    -0
      defaults/main.yml
  2. +4
    -4
      templates/sql/mysql_virtual_alias_domain_catchall_maps.cf.j2
  3. +4
    -4
      templates/sql/mysql_virtual_alias_domain_mailbox_maps.cf.j2
  4. +4
    -4
      templates/sql/mysql_virtual_alias_domain_maps.cf.j2
  5. +4
    -4
      templates/sql/mysql_virtual_alias_maps.cf.j2
  6. +4
    -4
      templates/sql/mysql_virtual_domains_maps.cf.j2
  7. +4
    -4
      templates/sql/mysql_virtual_mailbox_limit_maps.cf.j2
  8. +4
    -4
      templates/sql/mysql_virtual_mailbox_maps.cf.j2

+ 4
- 0
defaults/main.yml Wyświetl plik

@@ -0,0 +1,4 @@
postfix_postfixadmin_mysql_host: localhost
postfix_postfixadmin_mysql_database: postfixadmin
postfix_postfixadmin_mysql_username: postfix
postfix_postfixadmin_mysql_password: eiVa9aloex5fiayeepheequ7

+ 4
- 4
templates/sql/mysql_virtual_alias_domain_catchall_maps.cf.j2 Wyświetl plik

@@ -1,6 +1,6 @@
# 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'

+ 4
- 4
templates/sql/mysql_virtual_alias_domain_mailbox_maps.cf.j2 Wyświetl plik

@@ -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'

+ 4
- 4
templates/sql/mysql_virtual_alias_domain_maps.cf.j2 Wyświetl plik

@@ -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'

+ 4
- 4
templates/sql/mysql_virtual_alias_maps.cf.j2 Wyświetl plik

@@ -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'
#expansion_limit = 100

+ 4
- 4
templates/sql/mysql_virtual_domains_maps.cf.j2 Wyświetl plik

@@ -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'
#optional query to use when relaying for backup MX


+ 4
- 4
templates/sql/mysql_virtual_mailbox_limit_maps.cf.j2 Wyświetl plik

@@ -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'

+ 4
- 4
templates/sql/mysql_virtual_mailbox_maps.cf.j2 Wyświetl plik

@@ -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'
#expansion_limit = 100

Ładowanie…
Anuluj
Zapisz