I have done a few Postfix / Dovecot / MySQL installations all working without issue. I'm trying to build a minimal Postfix Dovecot server without a DB. Currently I have Auth working with Dovecot passwd-file. I can connect with IMAP and all folders are created on the server, so I know my IMAP setup id correct.
Postfix
smtpd_sasl_type = dovecot
virtual_transport = dovecot
Dovecot
doveadm user user@example.com
field value
uid 4900
gid 4900
home /home/vmail/example.com/user/
mail maildir:/home/vmail/example.com/user/
When is try to send mail from user@example.com to user@example.com, the mail client tells me it is delivered, but Postfix logs show
Mar 12 10:35:52 mail-01 postfix/local[6016]: 4C1247E94DC: to=<user@example.com>, relay=local, delay=0, delays=0/0/0/0, dsn=5.1.1, status=bounced (unknown user: "user")
So. My questions.
- Shouldn't Dovecot deliver the mail?
- Unknown user only shows the username and not the domain as well.
Any idea how to fix this issue?