Re: Disable after-queue content filter for certain recipients
- Alex Woick wrote:
> I am using an smtp-based after-queue content filter that is activatedUse a content_filter that allows you to bypass filtering for
> via the content_filter = ... keyword in main.cf.
> Now, I want to skip filtering for certain recipients, but only if they
> are the sole recipient. If the recipient doesn't match a predefined list
> or there are multiple recipients for the same message, the filter should
> still be called.
> After reviewing the mailing list and the documentation, I see the only
> solution is using a policy server that looks into the recipient_count
> value in the END-OF-MESSAGE stage. It should send a "action=DUNNO" only
> if the recipient=... matches and recipient_count==1. And "action=FILTER
> myfilter:" otherwise. Am I right?
> Are there policy servers around that I can use for this purpose? Or
> perl-based ones that I can hack with minimal effort?
individual users, such as amavisd-new.