瀏覽代碼

make dovecot running on localhost the default method for this role

master
父節點
當前提交
cc5820b3eb
共有 2 個文件被更改,包括 6 次插入5 次删除
  1. +3
    -2
      defaults/main.yml
  2. +3
    -3
      tasks/postfixadmin.yml

+ 3
- 2
defaults/main.yml 查看文件

@@ -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 查看文件

@@ -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…
取消
儲存