aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefan Kangas <skangas@skangas.se>2011-03-14 17:37:49 +0100
committerStefan Kangas <skangas@skangas.se>2011-03-14 17:37:49 +0100
commit52612c5ab8fa22620593b1078de603671b3025ad (patch)
tree304b1b2f101c72fe6311032c48436e4fa5a580e6
parentef22b098de2c10f45f3eecc35406e5a64d3fe9a4 (diff)
Add notes on using the deliver MDA
-rw-r--r--fripost-docs.org61
1 files changed, 61 insertions, 0 deletions
diff --git a/fripost-docs.org b/fripost-docs.org
index b491e56..5c20e7f 100644
--- a/fripost-docs.org
+++ b/fripost-docs.org
@@ -616,6 +616,67 @@ mysql -u root -p
TODO: add file contents
+**** Setting up the MDA
+
+# The choice of deliver from dovecot for MDA was based on the support for the
+# mailsieve filter language, which is a nice DSL and has plugin support in
+# roundcube. maildrop lacks this support.
+
+# squeeze has dovecot-1.2. upgrade notes:
+# - we might want to upgrade to their sieve (instead of cmusieve)
+# - we want to add the -s flag to deliver in master.cf
+
+:: /etc/dovecot/dovecot.conf
+
+ protocol lda {
+ # Address to use when sending rejection mails.
+ postmaster_address = postmaster@fripost.org
+
+ # Hostname to use in various parts of sent mails, eg. in Message-Id.
+ # Default is the system's real hostname.
+ hostname = imap.fripost.org
+
+ # Support for dynamically loadable plugins. mail_plugins is a space separated
+ # list of plugins to load.
+ #mail_plugins =
+ #mail_plugin_dir = /usr/lib/dovecot/modules/lda
+
+ # Binary to use for sending mails.
+ sendmail_path = /usr/lib/sendmail
+
+ # UNIX socket path to master authentication server to find users.
+ auth_socket_path = /var/run/dovecot/auth-master
+
+ # Enabling Sieve plugin for server-side mail filtering
+ mail_plugins = cmusieve
+ }
+
+ [...]
+
+ ## dovecot-lda specific settings
+ ##
+ socket listen {
+ master {
+ path = /var/run/dovecot/auth-master
+ mode = 0600
+ user = xxx # User running Dovecot LDA
+ #group = mail # Or alternatively mode 0660 + LDA user in this group
+ }
+ }
+
+:: /etc/postfix/master.cf
+
+ dovecot unix - n n - - pipe
+ flags=DRhu user=xxx:xxx argv=/usr/lib/dovecot/deliver -f ${sender} -d ${recipient} -n
+
+
+:: /etc/postfix/main.cf
+
+ virtual_transport = dovecot
+ dovecot_destination_recipient_limit = 1
+
+http://wiki.dovecot.org/LDA/Postfix
+http://www.tehinterweb.co.uk/roundcube/#pisieverules
**** Test delivery
sudo mkdir -p /home/mail/virtual/fripost.org/