Hello,

Let's consider following config (presentation based on VIRTUAL_README):

        /etc/postfix/main.cf :
                virtual_transport = lmtp:unix:/path/name
                virtual_mailbox_domains = example.com
                virtual_mailbox_maps = hash:/etc/postfix/vmailbox
                virtual_alias_maps = hash:/etc/postfix/virtual
        /etc/postfix/vmailbox:
                j...@example.com                whatever
        /etc/postfix/virtual:
                postmas...@example.com  j...@example.com
                ab...@example.com       j...@example.com

When, in a smtp session, I inadvertently type:

        rcpt to:<j...@example.com>

there's an immediate rejection:

        550 5.1.1 <j...@example.com>: Recipient address rejected: User unknown 
in virtual mailbox table

On the other hand, typing:

        rcpt to:<ab...@example.com>

allows to go ahead and the message will be queued, then bounced because the 
LMTP service ultimately rejects the target address <j...@example.com>.

So, a typo in both cases, but with two very different outcomes.

Does this reflect what is meant by:

        An address is always considered "known" when it matches a virtual(5)
        alias or a canonical(5) mapping.

under the entry for smtpd_reject_unlisted_recipient in POSTCONF(5)?

Is there any way (beside taking care not to mistype) to avoid the message 
enqueuing in the second case?

TIA,
Axel


Reply via email to