On Fri, Nov 22, 2024 at 05:54:31AM -0800, Randy Bush via Postfix-users wrote:

> > 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".
> 
>     /^X-Spam.*YES/  REDIRECT s...@m0.rg.net
> 
> did the trick, along with a specific transport
> 
>     s...@m0.rg.net          local:/var/mail/spam

You've still not quite internalised my explanation of local(8) nexthops.
There's no good reason to set the nexthop explicitly here, and the value
chosen no significance.  When the mail is delivered depends only on
the recipient address, and your aliases(5) file, passwd(5) file,
.forward file for the user, ...  See local(8) for details.

> the transport is needed as this host is pretty much just an mx, and
> different domains get transported off to different end hosts.

What you've done is fine, just drop the explicit nexthop, it is
misleading at best.

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

Reply via email to