For some reason, emails that I receive on my Amazon Linux EC2 instance, running postfix and dovecot, are put in the directory /var/mail/<user>/.Sent\ Messages
, instead of the expected /var/mail/<user>
.
Postfix's master.cf
contains the following pertaining to dovecot
dovecot unix - n n - - pipe
flags=DRhu user=vmail:vmail argv=/usr/libexec/dovecot/deliver -f ${sender} -d ${recipient}
and the mail_location
in Dovecot's dovecot.conf
is set to
maildir:/var/mail/%u
And here's the log for postfix and dovecot (/var/log/maillog
)
Sep 4 02:43:02 mail dovecot: imap-login: Login: user=, method=PLAIN, rip=108.23.86.62, lip=172.31.50.106, mpid=9156, TLS
Sep 4 02:43:02 mail dovecot: imap(support): Disconnected: Logged out bytes=32/392 Sep 4 02:43:23 mail dovecot: imap-login: Login: user=, method=PLAIN, rip=108.23.86.62, lip=172.31.50.106, mpid=9158, TLS
Sep 4 02:43:24 mail dovecot: imap-login: Login: user=, method=PLAIN, rip=108.23.86.62, lip=172.31.50.106, mpid=9160, TLS
Sep 4 02:43:25 mail dovecot: imap-login: Login: user=, method=PLAIN, rip=108.23.86.62, lip=172.31.50.106, mpid=9162, TLS
Sep 4 02:43:25 mail dovecot: imap-login: Login: user=, method=PLAIN, rip=108.23.86.62, lip=172.31.50.106, mpid=9164, TLS
All of the messages are received correctly, but they are just put in the incorrect directory, making dovecot not work properly.
Could this have something to do with the way I configured postfix?