|
Dovecot/Postfix for Maildir in Ubuntu 9.10
Verify that all of the necessary packages are installed.
sudo apt-get install postfix
sudo apt-get install dovecot-common dovecot-pop3d dovecot-imapd
Stop the Dovecot and Postfix services during the changes.
sudo /etc/init.d/dovecot stop
sudo /etc/init.d/postfix stop
Edit the Dovecot configuration to set it up for Maildir.
sudo vi /etc/dovecot/dovecot.conf
#---
mail_location = maildir:~/Maildir
#---
Edit the Postfix configuration to set it up for Maildir.
sudo vi /etc/postfix/main.cf
#---
home_mailbox = Maildir/
mailbox_command =
#---
Configure the system to setup all new users for Maildir.
sudo maildirmake.dovecot /etc/skel/Maildir
sudo maildirmake.dovecot /etc/skel/Maildir/.Drafts
sudo maildirmake.dovecot /etc/skel/Maildir/.Sent
sudo maildirmake.dovecot /etc/skel/Maildir/.Trash
sudo maildirmake.dovecot /etc/skel/Maildir/.Templates
Manually (or by script) setup current users for Maildir.
sudo cp -r /etc/skel/Maildir /home/user/
sudo chown -R user:group /home/user/Maildir
sudo chmod -R 700 /home/user/Maildir
Start the Dovecot and Postfix services, now using Maildir.
sudo /etc/init.d/dovecot start
sudo /etc/init.d/postfix start
See manufacturer documentation if you need additional instructions.
- Scotech
|