diff options
author | Gareth Rees <gareth@mysociety.org> | 2014-08-14 13:21:27 +0100 |
---|---|---|
committer | Louise Crow <louise.crow@gmail.com> | 2014-08-14 14:55:50 +0100 |
commit | 8383877987231eab144752edb82deb33c7f06144 (patch) | |
tree | cc359dcd8dd9972b938b1c30e5b8e662f47ee930 | |
parent | a860ad612eed6762d0de24075c95b538b8ed9f53 (diff) |
Use cat to append to /etc/postfix/main.cf
Also clarify that mydestination requires a manual edit of the file
-rw-r--r-- | docs/installing/email.md | 19 |
1 files changed, 11 insertions, 8 deletions
diff --git a/docs/installing/email.md b/docs/installing/email.md index a7f302de6..f1164b28e 100644 --- a/docs/installing/email.md +++ b/docs/installing/email.md @@ -116,18 +116,21 @@ run your site is `alaveteli`, and the directory where Alaveteli is installed is The Unix user should have write permissions on the directory where Alaveteli is installed. -In `/etc/postfix/main.cf`, add: +Configure postfix to accept messages for local delivery where +recipients are: + - defined by a regular expression in `/etc/postfix/transports` + - local UNIX accounts + - local aliases specified as regular expressions in `/etc/postfix/recipients` + +<!-- Comment to enable markdown to render code fence under list --> + + cat >> /etc/postfix/main.cf <<EOF transport_maps = regexp:/etc/postfix/transports local_recipient_maps = proxy:unix:passwd.byname regexp:/etc/postfix/recipients + EOF -This tells postfix to accept messages for local delivery where -recipients are either defined by a regular expression in -`/etc/postfix/transports`, are local UNIX accounts or are local aliases -specified as regular expressions in `/etc/postfix/recipients`. Also -update the `mydestination` line (which determines what domains this -machine will deliver locally) - add your domain, not `example.com`, to -the beginning of the list: +In `/etc/postfix/main.cf` update the `mydestination` line (which determines what domains this machine will deliver locally). Add your domain, not `example.com`, to the beginning of the list: mydestination = example.com, localhost.localdomain, localhost |