Dear Bartalan, I don't have any troubles:
mtp: 0xf9fd879e000: STATE_HELO -> STATE_BODY <<< [MSG] From: pascal <[email protected]> <<< [MSG] Date: Sun, 31 Jan 2021 15:18:06 +0100 (CET) <<< [MSG] To: [email protected] <<< [MSG] Subject: lalal <<< [MSG] debug: 0xf9fd879b000: adding Message-ID <<< [MSG] lala <<< [MSG] ... <<< [MSG] . <<< [EOM] debug: 0xf9fd879e000: end of message, error=0 smtp: 0xf9fd879e000: >>> 250 2.0.0 b94f4e11 Message accepted for delivery 5c4a2ac08812e9f5 smtp message msgid=b94f4e11 size=377 nrcpt=1 proto=ESMTP 5c4a2ac08812e9f5 smtp envelope evpid=b94f4e11b762f5bc from=< [email protected]> to=<[email protected]> smtp: 0xf9fd879e000: STATE_BODY -> STATE_HELO debug: scheduler: evp:b94f4e11b762f5bc scheduled (mda) smtp: 0xf9fd879e000: <<< QUIT smtp: 0xf9fd879e000: >>> 221 2.0.0 Bye smtp: 0xf9fd879e000: STATE_HELO -> STATE_QUIT 5c4a2ac08812e9f5 smtp disconnected reason=quit mda: new user 5c4a2ac289677301 for "<getpwnam>:pascal" debug: lka: userinfo <getpwnam>:pascal debug: control -> client: pipe closed debug: clearing p=client, fd=12, pid=0 debug: mda: new session 5c4a2ac32f6531e9 for user "<getpwnam>:pascal" evpid b94f4e11b762f5bc debug: mda: no more envelope for "<getpwnam>:pascal" debug: mda: got message fd 12 for session 5c4a2ac32f6531e9 evpid b94f4e11b762f5bc debug: mda: querying mda fd for session 5c4a2ac32f6531e9 evpid b94f4e11b762f5bc debug: smtpd: forking mda for session 5c4a2ac32f6531e9: pascal as pascal debug: mda: got mda fd 13 for session 5c4a2ac32f6531e9 evpid b94f4e11b762f5bc debug: mda: end-of-file for session 5c4a2ac32f6531e9 evpid b94f4e11b762f5bc debug: mda: all data sent for session 5c4a2ac32f6531e9 evpid b94f4e11b762f5bc debug: smtpd: mda process done for session 5c4a2ac32f6531e9: exited okay 5c4a2ac289677301 mda delivery evpid=b94f4e11b762f5bc from=< [email protected]> to=<[email protected]> rcpt=< [email protected]> user=pascal delay=0s result=Ok stat=Delivered debug: mda: session 5c4a2ac32f6531e9 done debug: mda: user "pascal" becomes runnable debug: mda: all done for user "<getpwnam>:pascal" What I did have problems with. Having virtual users and maildir delivery in /home/%u was, permissions. Opensmtpd uses 700 with the vmail user. Where dovecot couldn't read the /home/%u/Maildir directory. Also sshd requires 700 permissions on /home. So having more lose permissions was not the option. I changed this part on your config: maildir "/var/vmail/%{dest.domain}/%{dest.user:lowercase|strip}" to ~/Maildir Which got me out of the mess. See man smtpd.conf It now switches to the user before delivering. So it's not vmail as directory owner, but the username who is directory owner. In the trace you can see the switch in user in the trace. My virtual user config: pascal:someencryptedpasswdhash:pascal:1000:1000:/home/pascal::userdb_ma il=maildir:/home/pascal/Maildir I didn't test this while setting up. Your mail to the list triggered me to test. Hope this helps. And good luck with rspamd. I'm switching from exim/spamassassin and have been watching videos and reading docs for 3 days now. Start simple, test, build out, test, etc. Pascal.
