Geoffrey Gallaway <[EMAIL PROTECTED]> writes:

> I currently use Email::Filter for my mail filtering (I don't use
> procmail). I'd like to add tmda to my filters after spamassassin but I
> need to know what tmda needs to work this way..
>
>   # Run through spamassassin. No point in using tmda if the message is obviously
>   # spam. (spamassassin conf: required_hits  = 35)
>   my $spamtest = Mail::SpamAssassin->new();
>   my $spamstat = $spamtest->check($mail->simple);
>   if ($spamstat->is_spam()) {
>         $spamstat->rewrite_mail();
>         $mail->accept("$base/spam.mail");
>   }
>   # Ok, the message didn't get flagged as spam, send it to tmda.
>   # $mail->simple > io('| /usr/bin/tmda-filter');
>
> Does tmda-filter need some env variables or will it just accept the
> message and handle it the rest of the way?

TMDA needs 3 environment variables as discussed at
http://tmda.net/config-pre.html

The MTA usually sets these for you, though I'm not sure how
Email::Filter is being invoked in your case.
_____________________________________________
tmda-users mailing list ([EMAIL PROTECTED])
http://tmda.net/lists/listinfo/tmda-users

Reply via email to