diff --git a/roles/email/tasks/main.yml b/roles/email/tasks/main.yml index 64cf39e315bcff7d23274fd47af99c1231017578..4cd15f4dcf2daa0c78611e0837ffc736b97ffb63 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"