Dima Veselov:
> Greetings,
>
> I use dovecot LMTP as a virtual transport and of course I do not
> want to relay and bounce e-mails for non-existent users. As I found
> reject_unverified_recipient is the only way to check recipient
> before relaying mail, because reject_unlisted_recipient will not
> work with LMTP.
relay_domains is for 'remote' domains. It should not be used
for for local deliveries.
You should configure Postfix with a list of valid recipients are.
Examples:
relay_transport = lmtp:...
relay_domains = ...list of domains...
relay_recipient_maps = table with (recipient, anything)
virtual_transport = lmtp:....
virtual_mailbox_domains ...list of domains...
virtual_mailbox_maps = table with (recipient, anything)
local_transport = lmtp:...
mydestination = ...list of domains...
local_recipient_maps = table with (recipient, anything)
It should be possible to get the table with recipients
from the Dovecot user database.
Wietse