On Mon, Feb 27, 2023 at 11:33:48AM -0300, Rafael Azevedo wrote:

> /usr/bin/altermime --input=in.$$ \
>                    --disclaimer=/home/filter/stopka.txt \
>                    --disclaimer-html=/home/filter/stopka.html \

What is that last "\" for?  To debug "altermime" test it outside the
filter, by running it directly over some files and make sure that it
works as you expect.

> > $SENDMAIL "$@" <in.$$

This is missing the "-f" option to make the first argument the envelope
sender and the "--" option-terminator to make the remaining recipients
non-options (though Postfix generally has "allow_min_user = no", to keep
most naive users out of trouble).

> > footer unix - n n - - pipe
> >   flags=Rq user=myuser argv=/home/postfix/tag.sh ${sender} ${recipient}

You should therefore change the above to:

    footer unix - n n - - pipe
      flags=Rq user=myuser argv=/home/postfix/tag.sh -f ${sender} -- 
${recipient}

-- 
    Viktor.

Reply via email to