On Tue, 21 Oct 2003 at 08:26 GMT, Kai Schmidt penned:
> Hi tmda-users,
>
> being very new to TMDA, I'd first like to see TMDA work for incoming
> spam, before really using it. Is there a way to test my configuration
> [incoming only] first? How can i test, without annoying my real
> mail-partners before all is setup correctely? TMDA goes throug my
> incoming-filter and tells me that it "would have done" something, but
> does not actually touch this particular mail.
>
> Example:
>
> with ~/.tmda/filters/incoming # show me that you work for that:
> headers 'Subject:SPAMTEST' confirm from [EMAIL PROTECTED] drop
>
> Now I would like to write an E-Mail to myselve with subject
> "SPAMTEST", or recieve a mail form [EMAIL PROTECTED] and still
> recieve those mails, but TMDA should somehow mark those found mails,
> or show that in the logs.
>
> Actually what I really want is to get the confirm-incoming part
> working for some mails only. If all goes well (I can see who would get
> droped or confirmed) I could use the same config in production and
> really drop not only mark and not drop.
>
> I am aware of "tmda-filter -M <recipient> <sender>" but that helps for
> addresses only, criteria is E-Mail address only, not some other
> criteria like headers.
>
> How can I see who would be (asked to) confirm, before TMDA actually
> confirms?
>
> Thanks a lot
>
> Kai
>
I asked a similar question, and Jason M. was kind enough to write me a
little script that would allow me to retest messages that were in my
pending queue. I modified it only slightly, to move the messages into a
backup directory as I was going along. So for this to work you need to
have a directory ~/.tmda/pending/bak/
Anyway, this is it. As with any script, make sure you have some idea
what's going on; it's not my or Jason's fault if your computer implodes;
etc.
#!/bin/sh
#USAGE:
#When you find a message in your pending queue and
#want to create a rule that will apply to it, create
#the rule and then run this script to test it.
cd ~/.tmda/pending/
#use each .msg as input to sendmail.
#extract the Return-Path and use it as the sender
#mail it off to $USER (yourself)
#move the original pending message to bak
for i in *.msg; do
/usr/sbin/sendmail -f `cat $i | formail -x Return-Path | sed 's/[<>]//g;s/^[ ]*//'`
${USER} < $i;
/bin/mv $i bak/
done
--
monique
Unless you need to share ultra-sensitive super-spy stuff with me, please
don't email me directly. I will most likely see your post before I read
your mail, anyway.
_____________________________________________
tmda-users mailing list ([EMAIL PROTECTED])
http://tmda.net/lists/listinfo/tmda-users