Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I run a mail server with Exim4 and Dovecot. Currently mail goes to ~/Maildir. However, I am wondering what the relative advantages and disadvantages of storing mail in /var/mail/$user/ is.

Is one location more secure (from a process privileges standpoint) or standard than the other? In both instances I am referring to using the Maildir as oppposed to mbox storage format,

share|improve this question

1 Answer 1

up vote 1 down vote accepted

This is really a matter of personal choice, but generally speaking I prefer to use ~/.mbox for mbox format stuff, and ~/.mail/ or ~/.maildir/ for maildirs - the reason being that it keeps the user's mail with the rest of the user's files, and makes backing things up much easier (if I grab the spot where the home directories live I get everything at once).

Courier IMAP seems to use locations under ~/ by default last I checked.

Bear in mind that the location affects procmail configuration, so if you change it make sure that your users' .procmailrc files & system procmail configuration are updated accordingly.

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.