From 4228f51fbe977f98d21ad7ba9d8fd590f2618eaf Mon Sep 17 00:00:00 2001 From: Stefan Kangas Date: Thu, 23 Dec 2010 18:33:17 +0100 Subject: Begin documenting delivery of e-mails to Maildir. --- fripost-docs.org | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/fripost-docs.org b/fripost-docs.org index 8c7d302..92920a9 100644 --- a/fripost-docs.org +++ b/fripost-docs.org @@ -351,7 +351,26 @@ replicate-do-db = mail [[http://dev.mysql.com/doc/refman/5.0/en/change-master-to.html][12.5.2.1. CHANGE MASTER TO Syntax]] CHANGE MASTER TO MASTER_PORT=1949, MASTER_CONNECT_RETRY=60; +*** Configuring the main IMAP server to receive e-mail to Maildir + First setup the tables like above. + + - sudo apt-get install maildrop + - /etc/postfix/main.cf +:HIDDEN: +# Not really needed until we switch to using Courier maildrop +maildrop_destination_recipient_limit = 1 + +virtual_mailbox_base = /home/mail/virtual +:END: + - sudo mkdir -p /home/mail/virtual/fripost.org/example/ + - sudo maildirmake /home/mail/virtual/fripost.org/example/Maildir + - mysql -u root -p + INSERT INTO mailbox (username,password,name,maildir,domain) + VALUES ('exempel@fripost.org','test666','Exempelanvändare','fripost.org/exempel/Maildir/','fripost.org'); + - /etc/init.d/postfix restart + + Now it should work to send an e-mail to exempel@fripost.org *** Configuring a new smarthost to relay e-mail to the main IMAP server @@ -373,6 +392,8 @@ replicate-do-db = mail fripost.org smtp:localhost:1917 - sudo postmap hash:/etc/postfix/transport +*** Setting up dovecot + ** Necessary stuff to fix for security *** Firewall rules -- cgit v1.2.3