You should add
Code:
home_mailbox = Maildir/
to your /etc/postfix/main.cf file. And then do "sudo postfix reload" so that postfix reloads the new configuration.
Now mail will be delivered to ~/Maildir for each user.
Note that you should have an alias for root in /etc/aliases, so that root mail goes to that user instead of root (because root's home directory is not /home/root but /root, so there is no /home/root/Maildir...).
Other changes I did in order for the rest of the system to recognize my Maildirs:
- Added
and
to /etc/profile
- Changed /etc/pam.d/login and /etc/pam.d/ssh as follows:
Code:
session optional pam_mail.so standard dir = ~/Maildir
- Changed /etc/login.defs:
Code:
QMAIL_DIR Maildir/
MAIL_FILE Maildir/
And finally, added this to my .muttrc so that mutt knows how to deal with my Maildir (just in case I need to read mail with mutt):
Code:
set mbox_type=maildir
set folder=~/Maildir/
set spoolfile=~/Maildir/
Hope that helps.