According to Dovecot Mail Location Settings:
There are three different places where the mail location is looked up
from:
mail_location
setting in dovecot.conf is used if nothing else overrides it
- mail User Databases (
userdb
) overrides mail_location
setting.
location
setting inside namespaces overrides everything. Usually this should be used only for public and shared namespaces.
If you have followed the tutorial you have:
mail_location = maildir:/var/mail/vhosts/%d/%n
Where the variables are:
%n
User part in user@domain
, same as %u
if there’s no domain.
%d
Domain part in user@domain
, empty if there’s no domain.
Therefore, the mail is stored in domain/user
directories under /var/mail/vhosts/
. It's strange you didn't know, as following the tutorial you should have created those folders manually:
We are going to create a folder for each domain that we register in
the MySQL table:
mkdir -p /var/mail/vhosts/example.com