>> DATA
>> .<CR><LF> <-- Testing after this point, if in smtpd_data_restrictions. But
>> does this behave differently then the above?
>
>
> Of course it works. And BTW, smtpd_data_restrictions are run after the DATA
> command, not after the dot -- that's smtpd_end_of_data_restrictions.
>
:-)
> With the default smtpd_delay_reject=yes, smtpd_{client, helo, sender,
> recipient}_restrictions are repeated for each recipient, but
> smtpd_data_restrictions are run only once.
>
That is really good to know and makes things much easier now. I give it a try.
> You could also fix this particular problem by setting smtpd_delay_reject=no
> and putting your check in smtpd_sender_restrictions, but that causes other
> problems best avoided.
Yes, I try to put everything under smtpd_recipient_restrictions.
Thanks for your help
Christian