diff options
author | Gareth Rees <gareth@mysociety.org> | 2014-08-14 13:29:15 +0100 |
---|---|---|
committer | Louise Crow <louise.crow@gmail.com> | 2014-08-14 14:56:21 +0100 |
commit | 7189f5f28b933e06d056138aec1c22f901f8998b (patch) | |
tree | 6d3aa1f5ce20528ba6575f21dae700eb7de55b9c /docs/installing | |
parent | 8383877987231eab144752edb82deb33c7f06144 (diff) |
Improve postfix backup email section
Diffstat (limited to 'docs/installing')
-rw-r--r-- | docs/installing/email.md | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/docs/installing/email.md b/docs/installing/email.md index f1164b28e..340ba90d9 100644 --- a/docs/installing/email.md +++ b/docs/installing/email.md @@ -145,12 +145,20 @@ command: This means that all incoming mail that starts `foi+` will be piped to `/var/www/alaveteli/script/mailin` as specified in `/etc/postfix/master.cf` at the start of this section. -You can copy all incoming mail to Alaveteli to a backup account to a separate mailbox, just in case. Create a UNIX user `backupfoi`, and add the following line to -`/etc/postfix/main.cf` +#### Backup request mail + +You can copy all incoming mail to Alaveteli to a backup account to a separate mailbox, just in case. + +Create a UNIX user `backupfoi` + + adduser --quiet --disabled-password \ + --gecos "Alaveteli Mail Backup" backupfoi + +Add the following line to `/etc/postfix/main.cf` recipient_bcc_maps = regexp:/etc/postfix/recipient_bcc -Create `/etc/postfix/recipient_bcc` with the following command: +Configure mail sent to an `foi+` prefixed address to be sent to the backup user: cat > /etc/postfix/recipient_bcc <<EOF /^foi.*/ backupfoi |