[EMAIL PROTECTED] wrote:

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.


TMDA doesn't currently offer a "test" mode, but this will let you come pretty close. If you're using qmail, go ahead and set DELIVERY so TMDA actually delivers the e-mail instead of returning it to qmail to finish processing there. If you're using anything other than qmail, you'll have to do this anyway.

In .tmda/config (or /etc/tmdarc, your choice), add the following line:

ACTION_HEADER_INCOMING = 1

Now, in your filter file, set /every/ action to either 'ok' or 'hold', as you prefer.

The effect of this is that all mail will be delivered normally (or held), but will have an extra header line added telling you which line of the filter it caught on. You can use this to get an idea of what rules catch what messages, build your whitelist, and then change the actions to what you actually want to happen with such messages.

I'm not sure whether X-TMDA-Action will include a comment that is on the line in the filter -- if so, you could use comments to indicate what would have happened to that e-mail as well.

Test mode seems to be a common question -- should this be either a FAQ or a post-1.0 feature request?

--
Micha�l A. Bishop

"From silly devotions and sour-faced saints, spare us, O Lord."
-St. Teresa of Avila

"A truly good book teaches me better than to just read it.  I must
soon lay it down and commence living on its hint.  What I began by
reading, I must finish by acting."
-Henry David Thoreau


_____________________________________________ tmda-users mailing list ([EMAIL PROTECTED]) http://tmda.net/lists/listinfo/tmda-users

Reply via email to