aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--doc/INSTALL-exim4.md99
-rw-r--r--doc/INSTALL-postfix.md68
-rw-r--r--doc/README.md1
3 files changed, 1 insertions, 167 deletions
diff --git a/doc/INSTALL-exim4.md b/doc/INSTALL-exim4.md
deleted file mode 100644
index 796fb295c..000000000
--- a/doc/INSTALL-exim4.md
+++ /dev/null
@@ -1,99 +0,0 @@
-As an example of how to set up your MTA, in exim on Ubuntu, you might
-add the following to its configuration.
-
-In `/etc/exim4/conf.d/main/04_alaveteli_options`:
-
- ALAVETELI_HOME=/path/to/alaveteli/software
- ALAVETELI_USER=www-data
- log_file_path=/var/log/exim4/exim-%slog-%D
- MAIN_LOG_SELECTOR==+all -retry_defer
- extract_addresses_remove_arguments=false
-
-(The user ALAVETELI_USER should have write permissions on ALAVETELI_HOME).
-
-Note that the name and location of the log files created by Exim must match
-what the `load-mail-server-logs` script expects, hence the need for the extra
-`log_file_path` setting. And the `check-recent-requests-sent` scripts expects
-the logs to contain the `from=<...>` envelope information, so we make the
-logs more verbose with `log_selector`. The ALAVETELI_USER may need to also
-need to be added to the `trusted_users` list in your Exim config in order to
-set the return path on outgoing mail, depending on your setup.
-
-In `/etc/exim4/conf.d/router/04_alaveteli`:
-
- alaveteli_request:
- debug_print = "R: alaveteli for $local_part@$domain"
- driver = redirect
- data = ${lookup{$local_part}wildlsearch{ALAVETELI_HOME/config/aliases}}
- pipe_transport = alaveteli_mailin_transport
-
-In `/etc/exim4/conf.d/transport/04_alaveteli`:
-
- alaveteli_mailin_transport:
- driver = pipe
- command = $address_pipe ${lc:$local_part}
- current_directory = ALAVETELI_HOME
- home_directory = ALAVETELI_HOME
- user = ALAVETELI_USER
- group = ALAVETELI_USER
-
-And, assuming you set `INCOMING_EMAIL_PREFIX` in your config at
-`config/general` to "foi+", create `config/aliases` with the following
-content:
-
- ^foi\\+.*: |/path/to/alaveteli/software/script/mailin
-
-You should also configure exim to discard any messages sent to the
-`BLACKHOLE_PREFIX` address, whose default value is
-'do-not-reply-to-this-address'. For example, add the following to
-config/aliases:
-
- # We use this for envelope from for some messages where we don't care about delivery
- do-not-reply-to-this-address: :blackhole:
-
-If you want to make use of the automatic bounce-message handling, then
-set the `TRACK_SENDER_EMAIL` address to be filtered through
-`script/handle-mail-replies`. Messages that are not bounces or
-out-of-office autoreplies will be forwarded to
-`FORWARD_NONBOUNCE_RESPONSES_TO`. For example, in WhatDoTheyKnow the
-configuration looks like this:
-
- raw_team: [a list of people on the team]
- team: |/path/to/alaveteli/software/script/handle-mail-replies
-
-with `FORWARD_NONBOUNCE_RESPONSES_TO: 'raw_team@whatdotheyknow.com'`
-
-Finally, make sure you have `dc_use_split_config='true'` in
-`/etc/exim4/update-exim4.conf.conf`, and execute the command
-`update-exim4.conf`.
-
-NB: if the file `/etc/exim4/exim4.conf` exists then `update-exim4.conf`
-will silently do nothing. Some distributions include this file. If
-yours does, you will need to rename it before running `update-exim4.conf`.
-
-(You may also want to set `dc_eximconfig_configtype='internet'`,
-`dc_local_interfaces='0.0.0.0 ; ::1'`, and
-`dc_other_hostnames='<your-host-name>'`)
-
-# Troubleshooting
-
-To test mail delivery, run:
-
- exim -bt foi+request-1234@localhost
-
-This should tell you which routers are being processed. You should
-see something like:
-
- $ exim -bt foi+request-1234@localhost
- R: alaveteli pipe for snafflerequest-234@localhost
- snafflerequest-234@localhost -> |/home/alaveteli/alaveteli/script/mailin
- transport = alaveteli_mailin_transport
-
-This tells you that the routing part (making emails to
-`foi\+.*@localhost` be forwarded to Alaveteli's `mailin` script) is
-working.
-
-There is a great
-[Exim Cheatsheet](http://bradthemad.org/tech/notes/exim_cheatsheet.php)
-online that you may find useful.
-
diff --git a/doc/INSTALL-postfix.md b/doc/INSTALL-postfix.md
deleted file mode 100644
index a73d67ce1..000000000
--- a/doc/INSTALL-postfix.md
+++ /dev/null
@@ -1,68 +0,0 @@
-As an example of how to set up your MTA, in postfix on Ubuntu, you might
-add the following to its configuration.
-
-In /etc/postfix/master.cf:
-
- alaveteli unix - n n - 50 pipe
- flags=R user=ALAVETELI_USER argv=ALAVETELI_HOME/script/mailin
-
-In /etc/postfix/main.cf
-
- virtual_alias_maps = regexp:/etc/postfix/regexp
-
-For example
-
-ALAVETELI_HOME=/path/to/alaveteli/software
-ALAVETELI_USER=www-data
-
-The user ALAVETELI_USER should have write permissions on ALAVETELI_HOME.
-
-And, assuming you set `OPTION_INCOMING_EMAIL_PREFIX` in your config at
-`config/general` to "foi+", create `/etc/postfix/regexp` with the following
-content:
-
- /^foi.*/ alaveteli
-
-
-You should also configure postfix to discard any messages sent to the `BLACKHOLE_PREFIX`
-address, whose default value is 'do-not-reply-to-this-address'. For example, add the
-following to /etc/aliases:
-
- # We use this for envelope from for some messages where we don't care about delivery
- do-not-reply-to-this-address: :blackhole:
-
-# Logging
-
-For the postfix logs to be read by the script 'load-mail-server-logs' succesfully they need to be log rotated with a date in the filename. Since that will create a lot of rotated log files (one for each day), it's good to have them in their own directory. For example (on Ubuntu) /etc/rsyslog.d/50-default.conf
-
- mail.* -/var/log/mail/mail.log
-
-And also edit /etc/logrotate.d/rsyslog:
-
- /var/log/mail/mail.log
- {
- rotate 30
- daily
- dateext
- missingok
- notifempty
- compress
- delaycompress
- sharedscripts
- postrotate
- reload rsyslog >/dev/null 2>&1 || true
- endscript
- }
-
-You'll also need to tell Alaveteli where the log files are stored and that they're in postfix format. Update config/general.yml with:
-
- MTA_LOG_PATH: '/var/log/mail/mail.log-*'
- MTA_LOG_TYPE: "postfix"
-
-# Troubleshooting
-
-To test mail delivery, run:
-
- $ /usr/sbin/sendmail -bv foi+requrest-1234@localhost
-
-This tells you if sending the emails to 'foi\+.*localhost' is working.
diff --git a/doc/README.md b/doc/README.md
index 566430dd8..56714e924 100644
--- a/doc/README.md
+++ b/doc/README.md
@@ -5,3 +5,4 @@ Specifically:
[Installation](http://code.alaveteli.org/installing/)
[Themes](http://code.alaveteli.org/customising/themes/)
[Translation](http://code.alaveteli.org/customising/translation/)
+[Email](http://code.alaveteli.org/installing/email/)