On Thu, Jun 18, 2015 at 09:08:43PM -0700, PGNd wrote:

> +             transport_maps = lmdb:/usr/local/etc/postfix/salearn_transport
> +                              
> static:relay-vpn:[internal.mail-backend.DDDD.com]:12345
> 
> +     /salearn_transport
> +             spam.spam  sa-spam:
> +             ham.ham    sa-ham:
> 
>       /master.cf
>               ...
> +             sa-spam        unix   -         n        n        -        -    
>    pipe
> +               user=amavisd:amavisd 
> argv=/usr/local/etc/spamassassin/scripts/sa-learn-wrapper.pl spam ${sender}
> +             sa-ham         unix   -         n        n        -        -    
>    pipe
> +               user=amavisd:amavisd 
> argv=/usr/local/etc/spamassassin/scripts/sa-learn-wrapper.pl ham  ${sender}

As soon as I saw this, I said to myself "it'll loop".  Not
surprisingly, it does.  

DO NOT attempt to use the transport table to route spam into filter
scripts by recipient address, after the mail is filtered, it will
again be sent to the filter, ad nauseam.

Instead you'll need FILTER overrides via smtpd access(5) or
cleanup header/body checks, that are added in front of the filter,
and NOT added by post-filter re-injection.

        http://www.postfix.org/FILTER_README.html

DO NOT rewrite the recipient address based on spam/ham, instead
add subject tags, custom headers, or quarantine, but without changing
the recipient address.

-- 
        Viktor.

Reply via email to