On Wed, Mar 13, 2013 at 06:35:41PM +0100, Ansgar Wiechers wrote:
> > No, it is generally safe to do recipient access lookups, even before
> > anti-relay policy, since the recipient cannot be spoofed. Just don't
> > allow mail to recipients in outside domains.
>
> The latter is what I meant by "prone to becoming an open relay". Is
> there any advantage in putting check_recipient_access before
> reject_unauth_destination? If not I'd recommend sticking with the safe
> variant.
Sometimes it is easier to have only a subset of valid recipients admitted
via "permit_auth_destination", so "reject_unauth_destination" would
reject the rest, and one adds the remaining recipients above. Such
configurations are safe, but uncommon.
--
Viktor.