Help → how do i use pipe.pl with sendmail

how do i use pipe.pl with sendmail

Hello I would like to use the pipe.pl with send mail or a spam milter to reject spam in sendmail. I have a setup that works using pipe.pl with amavis as a virus scanner but now I am trying to set it up with sendmail. Anyone has done this before?