OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
Re: Verify recipient addresses for relay domains

From: Wietse Venema (wietseporcupine.org)
Date: Mon Jan 07 2008 - 21:06:15 CST


Jeff Williams:
> Hi,
>
> Is there a way to verify recipient domains for relay domain only? We
> have several domains we accept mail for local storage (virtual
> transport) and several others for which we are an MX backup (relay). For
> the relay domains, I would like to perform recipient address
> verification before accepting the mail, to avoid queuing mail for users
> who do not exist on the end server.
>
> The only command I can see to do this is reject_unverified_recipient,
> which as far as I can tell affects address classes. And I don't really
> want to do verification on all my virtual users. Is there a way around this?

Almost.

smtpd_recipient_restrictions =
    permit_mynetworks
    permit_sasl_authenticated
    ...
    reject_unauth_destination
    ...
    reject_unverified_recipient
    ...

Will apply recipient address verification for local and relay
destinations.

And in practice that will be close enough.

        Wietse