I tried switching my MX record from the subdomain mail.mydomain.com to mydomain.com. Updating the Postfix and Dovecot configuration (SSL certs, hostname etc) worked mostly fine. Most e-mail addresses are used to forward mail, but there is a single (virtual) mailbox user managed by Dovecot. The username is [email protected], and his mail is stored at /var/mail/virtual/[email protected].
After changing the rest of the configuration, sending messages to [email protected] (or one of its alias addresses) results in a Postfix error message:
<[email protected]> (expanded from <[email protected]>): unknown user: "mailer"
In Postfix's main.cf, I have
virtual_mailbox_domains = mydomain.com virtual_mailbox_maps = hash:/etc/postfix/mailbox_users virtual_transport = lmtp:unix:private/dovecot-lmtp
mailbox_users contains a single line
Postfix seems to look for a system user now (without the domain), not the Dovecot user [email protected] – which Dovecot/Postfix settings should be changed to solve this problem?