diff options
Diffstat (limited to 'ansible/roles/mail-server/tasks/postfix.yml')
-rw-r--r-- | ansible/roles/mail-server/tasks/postfix.yml | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/ansible/roles/mail-server/tasks/postfix.yml b/ansible/roles/mail-server/tasks/postfix.yml index 79ed2bb..6558e1e 100644 --- a/ansible/roles/mail-server/tasks/postfix.yml +++ b/ansible/roles/mail-server/tasks/postfix.yml @@ -64,3 +64,11 @@ group: root mode: 0644 notify: restart postgrey + +- name: install smarthost creds + copy: + content: "{{ smarthost }} {{ smarthost_user }}:{{ lookup('pipe', 'pass show ' + smarthost_pass_name) }}\n" + dest: /etc/postfix/sasl_passwd + owner: root + group: root + mode: 0600 |