Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

Is there a way to use Maildir instead of mbox on a Linux box?

On some websites, it is suggested to add to /etc/aliases:

myuser: /var/mail/myuser/maildir

I've issued the newaliases command, but it didn't work.

share|improve this question
    
This is contingent upon your source of mail and your choice of mail clients. –  goldilocks Mar 12 '13 at 18:05
    
I'm using Postfix as MTA. It should support Maildir format. –  Daniel Mar 12 '13 at 18:06
2  
My point was that it is either the MTA or the MUA that puts the mail in whatever form it is in, so this is a matter of configuring one of those (and probably you should adjust your question to ask about that). –  goldilocks Mar 12 '13 at 18:16

1 Answer 1

up vote 3 down vote accepted

If you're on Ubuntu...

Instruct Postfix to use Maildirs instead of Mboxes:

sudo postconf -e "home_mailbox = Maildir/"

Restart Postfix to make changes effect:

sudo  /etc/init.d/postfix restart

Check the mailbox of fmaster:

su - fmaster
MAIL=/home/fmaster/Maildir
mail

You can find complete guide here.

If you're on CentOS...

Add following line in /etc/postfix/main.cf

home_mailbox = Maildir/

A trailing slash indicates Maildir format. To specify mbox format, use home_mailbox = Mailbox

You can find complete guide here.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.