29 Jun
2026
29 Jun
'26
11:15 a.m.
On 27. Jun 2026, at 23.12, inaugurator--- via dovecot <dovecot@dovecot.org> wrote:
I need help. I’m trying to reproduce an issue, but I keep hitting so many errors that I’m completely stuck. I'm reproducing this on a single machine.
- Setting up the environment:
groupadd -g 500 vmail && useradd -M -u 500 -g vmail -s /bin/false vmail && mkdir -p /tmp/mail && chown vmail:vmail /tmp/mail
- Starting up Dovecot.
- User mailboxes don’t exist yet.
- Saving an email via CLI:
doveadm save -u user1 -m INBOX /tmp/1.eml
- Checking the email UID, but it’s missing:
curl -u "user1:hello" -k imap://localhost:143/INBOX -X "UID SEARCH ALL"
- SEARCH
..
mail_home = /tmp/mail/%{user}
Don't save mails to /tmp. With systemd Dovecot gets a unique /tmp directory when running as a service. So doveadm sees a different /tmp than the running dovecot.