Mail sent to myselt is not showing

SYSTEM INFORMATION
OS type and version Ubuntu 24.04.4 LTS
Webmin version 2.630

Hi,

when I go to my User mail in webmin and send an email to myself it does not appear there. It does appear though under my username in /var/mail, although I have configured dovecot to use ~/Maildir.

What am I doing wrong? – Any help is much appreciated.

GFritz

Is Dovecot the delivery agent?

You haven’t told us your MTA, so I’ll guess Postfix. What’s the mailbox_command in /etc/postfix/main.cf? If nothing or anything other than dovecot-lda, Dovecot has nothing to do with where mail is delivered.

If you want to use Dovecot as your LDA, this covers how to do it with Postfix: Dovecot LDA with Postfix — Dovecot documentation

thanks, that was indeed missing. However, mails are now appearing in

/home/user/Maildir

instead of

/home/domain/homes/user/Maildir

which is what I see in the top of my mailbox. Apparently, the two users ‘user’ and ‘user@domain’ are confused in my setup, but where?

That’s a Virtualmin convention.

Are you using Virtualmin? If so, you’ve got a messed up Postfix configuration. It should be using procmail to deliver mail, if you want any of the Virtualmin forward/autoresponder/spam/AV features.