On 2021-07-13 at 12:47:35 UTC-0400 (Tue, 13 Jul 2021 12:47:35 -0400)
 <post...@ptld.com>
is rumored to have said:

>> On 07-13-2021 12:29 pm, Bill Cole wrote:
>>
>> Logically impossible. You don't have the headers yet when
>> smtpd_recipient_restrictions directives are evaluated.
>
> If i move the "operation" to another stage like data or end_of_data is there 
> a way to invoke header checks based on recipient?

No. All of the restriction lists are named 'smtpd_*_restrictions'  which is a 
clue that they are used by the smtpd process. The header_checks are a function 
of the cleanup daemon, not smtpd.

If you need to handle message content differently on a per-recipient basis 
before queueing, you need to do the selection inside a milter which also 
handles exploding any multi-recipient messages into a unique message for each 
recipient. Another approach is described in the FILTER_README file.

-- 
Bill Cole
b...@scconsult.com or billc...@apache.org
(AKA @grumpybozo and many *@billmail.scconsult.com addresses)
Not Currently Available For Hire

Reply via email to