Friday, August 31, 2007

Postfix and Dovecot Configuration Files

Here's my Postfix and Dovecot Configuration. I'll be using this once I install Hardy.

man.cf
home_mailbox = Maildir/

dovecot.conf
protocols = imaps pop3s
pop3_uidl_format = %08Xu%08Xv
mail_location = maildir:~/Maildir
imap_client_workarounds = tb-extra-mailbox-sep

Creating skel for future users
maildirmake.dovecot /etc/skel/Maildir
maildirmake.dovecot /etc/skel/Maildir/.Drafts
maildirmake.dovecot /etc/skel/Maildir/.Sent
maildirmake.dovecot /etc/skel/Maildir/.Trash
maildirmake.dovecot /etc/skel/Maildir/.Templates

Creating Maildir for existing users
cp -r /etc/skel/Maildir /home/myuser/
chown -R myuser:usergroup /home/myuser/Maildir
chmod -R 700 /home/myuser/Maildir

Reference:
https://help.ubuntu.com/community/Dovecot

Blogged with Flock