From cd8cc94d8544ddb2889b0ebe936cea3e1122e5f8 Mon Sep 17 00:00:00 2001 From: Chris Croome <chris@webarchitects.co.uk> Date: Tue, 25 Apr 2017 23:04:44 +0100 Subject: [PATCH] Email isn't quite working --- README.md | 2 +- roles/email/tasks/main.yml | 7 ++++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index ee23ad8..1b93e77 100644 --- a/README.md +++ b/README.md @@ -51,6 +51,6 @@ the host for outgoing email. TODO: -* Double check the email setup, work though [this thread](https://meta.discourse.org/t/reducing-backscatter-in-email-interface/59974) and [all the changes](https://github.com/discourse/mail-receiver/pull/2/files) +* **Email:** Postfix isn't configured correctly, for outgoing email some of [these steps](https://meta.discourse.org/t/emails-with-local-smtp/23645/28) were followed and then the [mail-reciever Docker setup](https://github.com/discourse/mail-receiver) was copied and [this thread](https://meta.discourse.org/t/reducing-backscatter-in-email-interface/59974) and [some of the changes here](https://github.com/discourse/mail-receiver/pull/2/files) were implemented and it is not quite right... * Munin node plugin setup diff --git a/roles/email/tasks/main.yml b/roles/email/tasks/main.yml index 79df4a3..64cf39e 100644 --- a/roles/email/tasks/main.yml +++ b/roles/email/tasks/main.yml @@ -108,9 +108,10 @@ - name: Postmap run with Transport Maps file command: postmap /etc/postfix/transport - -- name: Postfix smtpd_recipient_restrictions set - command: postconf -e "smtpd_recipient_restrictions = check_policy_service unix:private/policy" +# +# This breaks outgoing email for the Discourse Docker app +#- name: Postfix smtpd_recipient_restrictions set +# command: postconf -e "smtpd_recipient_restrictions = check_policy_service unix:private/policy" - name: Postfix set to reject incorrect email addresses command: postconf -M -e "policy/unix=policy unix - n n - - spawn user=nobody argv=/usr/local/bin/discourse-smtp-fast-rejection" -- GitLab