On Thu, Nov 21, 2024 at 01:09:35PM -0800, Randy Bush wrote:

>     # cat /etc/postfix/milter_header_checks
>     /^X-Spam.*YES/  FILTER local:/var/mail/spam 

    - man 5 transport
    - man 8 local

> leaves nothing in /var/mail/spam.  as rspamd reports a lot of X-Spam
> headers added, i presume that i am misunderstanding how the FILTER
> works or the local delivery.

The latter.  The nexthop for the local(8) transport is not a file to
deliver to, it is just a unique key for concurrency control and should
generally be left unspecified, allowing concurrency to be per-user.

With an explicit nexthop for local(8), all deliveries are to the same
nexthop, so all deliveries are in the same bucket with:

    local_destination_concurrency_limit = 2

so there are most two concurrent local(8) deliveries via that FILTER,
the message recipient is still based on the envelope, and may bounce
if not a local user.

I don't think that using local(8) as a content filter is a good idea,
perhaps you meant to instead use "REDIRECT" or "HOLD".

-- 
    Viktor.
_______________________________________________
Postfix-users mailing list -- postfix-users@postfix.org
To unsubscribe send an email to postfix-users-le...@postfix.org

Reply via email to