I'm installing a new mail server (Postfix/Dovecot+Maildir) in a fresh OS.
Using Thunderbird (or Squirrelmail) I can send mails but my inbox is empty even when I can see them in /home/<mailuser>/Maildir/new
.
What could be the problem? I'll attach any conf file if necessary.
Edit:
The dovecot config is mail_location = maildir:/%Lh/Maildir/:INDEX=/%Lh/Maildir/
Like Damiano said, Postfix and Dovecot mail folder didn't match.
Best Answer
You're probably not sharing the same mailbox location/folder and/or mailbox delivery style (MBOX vs. MDIR) in both Postfix and Dovecot. As a result, Postfix is (correctly) writing under "/home/mailuser/Maildir" (where you see your mail arriving, under the "new" subfolder), but as dovecot is searching somewhere else... it doesn't find such mails (so you get a "no-mail" from it).
As a first check, you should:
The two directives above tell Postfix and Dovecot to store incoming mail for "userN", whose home-directory is /home/userN, under the Maildir structure at /home/userN/Maildir
Things are slightly more complex in case of "virtual" users (users not having a proper unix account defined on the machine), in which case both Postfix and Dovecot need to share also the way to get/calculate the home-dir of userN