From f869535e91e19a7f5161fdd3986bc6e8a0bb6784 Mon Sep 17 00:00:00 2001 From: Chris Croome <chris@webarchitects.co.uk> Date: Wed, 26 Apr 2017 01:53:01 +0100 Subject: [PATCH] Email tweaks --- roles/email/tasks/main.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/roles/email/tasks/main.yml b/roles/email/tasks/main.yml index 64cf39e..4cd15f4 100644 --- a/roles/email/tasks/main.yml +++ b/roles/email/tasks/main.yml @@ -68,10 +68,14 @@ command: postconf -e "mynetworks = 127.0.0.0/8, {{ app_ip_address.stdout }}" - name: Postfix mydestination set to contain {{ hostname }} - command: postconf -e "mydestination = {{ hostname }}, localhost.localnetwork, localhost" + # command: postconf -e "mydestination = {{ hostname }}, localhost.localnetwork, localhost" + command: postconf -e "mydestination = localhost" - name: Postfix relay domains set to {{ hostname }} - command: "postconf -e relay_domains={{ hostname }}" + command: postconf -e "relay_domains = {{ hostname }}" + +- name: Postfix set not to use /etc/aliases + command: postconf -e "alias_maps = " - name: Postfix set for ipv4 only command: postconf -e "inet_protocols = ipv4" -- GitLab