On Fri, 28 Jan 2022, Narcis Garcia wrote:
Hello everyone,
I have following configurations (and more) at /etc/dovecot/local.conf in a "/VirtualUserFlatFilesPostfix/" setup :
[partial file content begins]
[snip]
When incoming mail goes to a mailbox that does not exist, an error is logged by Dovecot, letter remains at Postfix queue, and no rejection message to sender (here host is /mail.example.net/):
Wouldn't it make sense to prevent postfix from attempting to deliver (via LMTP) messages addressed to invalid users?
i.e. using virtual_mailbox_maps and/or virtual_alias_maps, as needed.
[partial]$ cat /var/log/dovecot.log
2022-01-28 08:52:00 lmtp(1883): Info: Connect from local 2022-01-28 08:52:00 auth: Error: passwd-file(wronguser@example.net): stat(/srv/vmail/domains.d/example.net/users.d/wronguser/etc/passwd) failed: Address family not supported by protocol
^^^ weird message, but maybe it's dovecot's way of saying "file not found" :)
Good luck.