Browse Source

make dovecot running on localhost the default method for this role

master
parent
commit
cc5820b3eb
2 changed files with 6 additions and 5 deletions
  1. +3
    -2
      defaults/main.yml
  2. +3
    -3
      tasks/postfixadmin.yml

+ 3
- 2
defaults/main.yml View File

@@ -1,10 +1,11 @@
mailname: "{{inventory_hostname}}"

postfix_method: false
postfix_method: postfixadmin

postfix_smtp_service: true
postfix_submission_service: false

postfix_postfixadmin_mysql_host: localhost
postfix_postfixadmin_mysql_database: postfixadmin
postfix_postfixadmin_mysql_username: postfix

@@ -14,7 +15,7 @@ postfix_check_spamhaus: false
postfix_with_opendkim: false
postfix_with_opendmarc: false

postfix_virtual_transport: virtual # lmtp:unix:private/dovecot-lmtp
postfix_virtual_transport: lmtp:unix:private/dovecot-lmtp

postfix_submission_service_smtpd_sasl_path: private/auth



+ 3
- 3
tasks/postfixadmin.yml View File

@@ -8,7 +8,7 @@

- name: postfix sql map directory
file:
path: /etc/postfix/sql/
path: /etc/postfix/postfixadmin-sql/
state: directory
mode: u=rwx,g=rx,o=
group: postfix
@@ -34,6 +34,6 @@
name: "{{postfix_postfixadmin_mysql_username}}"
password: "{{postfix_postfixadmin_mysql_password}}"
priv: "{{postfix_postfixadmin_mysql_database}}.*:SELECT"
host: "{{host_ip}}"
host: "{{postfix_postfixadmin_mysql_host}}"
state: present
delegate_to: "{{postfix_postfixadmin_mysql_host}}"
delegate_to: "{{(postfix_postfixadmin_mysql_host=='localhost')|ternary(inventory_hostname,postfix_postfixadmin_mysql_host)}}"

Loading…
Cancel
Save