On Fri, Jan 24, 2020 at 10:04:26AM -0800, Fred Morris wrote:

> I want to call a milter as a "bump in the wire" before this check to
> potentially alter local recipients prior to them ricocheting off of all
> of that shininess.
>
> net -> Postfix -> Postfix
>           ^          ^
>           |          |
>           v          v
>        milter     local_recip_maps

Milters get to process each SMTP command as it comes in, however
smtpd_recipient_restrictions are processed before handing off "RCPT TO"
to the milter.  So the milter cannot modify the recipient address before
local_recipient_maps checks happen.

You can use socketmap tables in local_recipient_maps if for some reason
you want to apply some non-trivial computation to the address in order
to determine whether it is valid.

-- 
    Viktor.

Reply via email to