I am installing a new Linux mail and file server and am trying to configure dovecot. I have the latest dovecot release from the dovecot website
I have the following in my dovecot.conf:
default_mail_env = mbox:~/mail/:INBOX=/var/mail/%u
straight out of the comments. My postfix is putting mail into /var/mail/<username>
It isn't working, and when I look at the log files, I have something like this:
Aug 24 21:59:47 server dovecot: POP3(username): open(/var/mail/.temp.server.domain.com.10572.a0b492e71795c2eb) failed: Permission denied
It should be trying to open /var/mail/username. It appears to be substituting some mail piece id instead of the username for the %u variable.