aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGabriela Rodriguez <gabelula@gmail.com>2012-04-26 13:22:15 -0400
committerRobin Houston <robin.houston@gmail.com>2012-04-27 10:19:18 +0100
commitcbe6736db771dc51b28b16bd7780e2fea4c4d0f4 (patch)
tree7b372e21d6abbfc66fd3d6ca041d4036df79cfd4
parenta7d0d25b323d9ca7f31405482f9462570e0cbeaf (diff)
Adds doc for when using postfix.
-rw-r--r--doc/INSTALL-postfix.md40
1 files changed, 40 insertions, 0 deletions
diff --git a/doc/INSTALL-postfix.md b/doc/INSTALL-postfix.md
new file mode 100644
index 000000000..70a2954bd
--- /dev/null
+++ b/doc/INSTALL-postfix.md
@@ -0,0 +1,40 @@
+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:
+
+# 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.