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:
                [email protected]                whatever
        /etc/postfix/virtual:
                [email protected]  [email protected]
                [email protected]       [email protected]

When, in a smtp session, I inadvertently type:

        rcpt to:<[email protected]>

there's an immediate rejection:

        550 5.1.1 <[email protected]>: Recipient address rejected: User unknown 
in virtual mailbox table

On the other hand, typing:

        rcpt to:<[email protected]>

allows to go ahead and the message will be queued, then bounced because the 
LMTP service ultimately rejects the target address <[email protected]>.

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