I want to set up a mail server using postfix and dovecot, that stores mail using the maildir format, and I don't want any of these files to go in user's home directories. Wherever I search for how to make postfix use maildir, they just say to set
home_mailbox = Maildir/
but this places mail in the home home directory.
dovecot nicely lets you specify any path, and also gives you %u to customize it, so I set it to
mail_location = maildir:/var/mail/users/%u/:INBOX=/var/mail/users/%u/INBOX
I don't really mind moving the INBOX around, as long as it's not in /home, but I can't find any way to do this. I don't want to bother with virtual users, or procmail, or anything.