CVS: tmda/contrib/dot-tmda/filters incoming, NONE, 1.1 outgoing, NONE, 1.1

"Jason R. Mastaler" <[email protected]> Sun, 28 Mar 2004 19:19:55 -0800
Newsgroups gmane.mail.spam.tmda.cvs
Message-ID <[email protected]>
Update of /cvsroot/tmda/tmda/contrib/dot-tmda/filters
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv11384/contrib/dot-tmda/filters

Added Files:
	incoming outgoing 
Log Message:
Add a dot-tmda directory with an example ~/.tmda/ structure to
get users started quicker.


--- NEW FILE ---
# -*- text -*-

# ~/.tmda/filters/incoming 
#
# TMDA incoming filter file; controls how incoming messages are
# disposed of.  The first match wins.  Deliveries are logged to
# ~/.tmda/incoming.log

#####################
# whitelisted senders
#####################

# Accept mail from whitelisted senders and domains first.
from-file ~/.tmda/lists/whitelist ok
from-file ~/.tmda/lists/confirmed ok

#####################
# blacklisted senders
#####################

# Uncomment if you have the hashcash tool installed and want to accept
# mail containing valid hashcash stamps.  For more information, see
# http://wiki.tmda.net/TmdaHashCashHowto
#pipe-headers "hashcash -c -y -X -b20 -r [email protected]" ok

# Discard mail from blacklisted senders and domains.
from-file ~/.tmda/lists/blacklist drop

###################
# content filtering
###################

# Accept mail containing the Habeas SWE headers (http://www.habeas.com/)
headers "^X-Habeas-SWE-3.*like Habeas SWE \(tm\)" ok

# Hold all messages marked by SpamAssassin that score above level 8.
# See http://wiki.tmda.net/SpamAssassin for more examples.
headers "X-Spam-Level: \*\*\*\*\*\*\*\*" hold

# Hold messages with Microsoft executable attachments, which may be
# virus/worm-infected.
body "filename\=.+\.(pif|scr|exe|bat|com|cmd|vbs|js|rar|zip)" hold

#####################
# default disposition
#####################

# Mail that didn't match one of the rules above will be disposed of
# according to your ACTION_INCOMING setting ('confirm' by default).
# See http://tmda.net/unstable/config-vars.html#ACTION_INCOMING


--- NEW FILE ---
# -*- text -*-

# ~/.tmda/filters/outgoing
#
# TMDA outgoing filter file; controls how how outgoing messages are
# tagged.  The first match wins.  You must setup your mail client to
# use tmda-sendmail or tmda-ofmipd according to
# http://tmda.net/unstable/config-client.html.  Deliveries are logged
# to ~/.tmda/outgoing.log.

########################
# whitelisted recipients
########################

# Recipients on your whitelists get mail with a 'bare' From, and a
# 'dated' Return-Path.

to-file ~/.tmda/lists/whitelist tag
	envelope dated=8d
	from bare

to-file ~/.tmda/lists/confirmed tag
	envelope dated=8d
	from bare

#################
# default tagging
#################

# Default tagging is a 'bare' From, a 'dated' Reply-To, and a 'dated'
# Return-Path.  The sender's address is also auto-appended to
# ~/.tmda/lists/whitelist.

to * tag
   envelope dated=8d
   reply-to dated
   from     bare=append