# $Id: .mailfilterrc,v 1.1 2003/09/05 05:30:27 dope Exp dope $ # # This file usually is named "$HOME/.mailfilterrc # # Purpose: setup file for 'mailfilter' # Author : Christian Schneider # Size : 2,7k # Structure of this file: # Lines starting with an '#' are comments. # # Note: Used and tested under OpenBSD 3.4 with mailfilter 0.6.0 # This file includes external files as for example # => $HOME/.mailfilter/allow-from # => $HOME/.mailfilter/deny-from # => $HOME/.mailfilter/deny-subjects # => $HOME/.mailfilter/deny-received # => $HOME/.mailfilter/deny-misc # => $HOME/.mailfilter/score # # You can use 'mailfilter' with 'fetchmail' (). # ,----[ Example for fetchmail ] # | poll pop.server.tdl proto POP3 user xxxxx with password xxxxxx is luser here preconnect "mailfilter" # `---- # or 'getmail' (). # ,----[ Exampe for 'getmail' ] # | postmaster = | /usr/local/bin/mailfilter # `---- # # Ressources: # * Mailfiter - Homepage : # * Spam Links - Blacklists: # * mailfilter(1) # * mailfilterrc(5) # * mailfilterex(5) # * procmail(1) # * regex(7) # # WARNING: Please do not use this file without adjusting it! # Logile path (be sure you have write permission in this # directory; you MUST specify a logfile) LOGFILE=/home/dope/.mailfilter/mailfilter.log # This keyword prevents Mailfilter from deleting any messages on any # e-mail accounts. It is useful to experiment with filters and Regular # Expressions and to see how Mailfilter reacts to the user's changes. The # option can be turned on by assigning `yes' to TEST. The default value is # 'no'. #-------------------------------------------------- # TEST=yes #-------------------------------------------------- # Level of verbosity # # 0 Silent, show nothing at all # 1 Only show errors # 2 Only show "Deleted..." messages and errors # 3 Default; Show "Deleted..." messages, errors and # "Examining..." messages # 4 Like (3), except this also shows the current # account's username # 5 Like (4), except this also shows which filter # matched which string of an e-mail header # 6 Debugging mode; prints out almost everything VERBOSE=5 # POP3 server list (do not change the order of the fields!) # Note: Port 110 is usually the port POP3 servers use. # Currently only POP3 is supported. SERVER=pop.foo.invalid USER=user@name.invalid PASS=password PROTOCOL=pop3 PORT=110 # Do you want case sensitive e-mail filters? { yes | no } REG_CASE=no # Delete duplicates of messages. DEL_DUPLICATES=yes # Sets the type of Regular Expression used { extended | basic } # regex are evil but simple ;) # # ^ matches the beginning of the line # # $ matches the end of the line # # . Matches any single character # # (character)* match arbitrarily many occurences of (character) # # (character)? Match 0 or 1 instance of (character) # # [abcdef] Match any character enclosed in [] (in this instance, a b c d e or f) # ranges of characters such as [a-z] are permitted. The behaviour of # this deserves more description. See the page on grep for more details # about the syntax of lists. # # [^abcdef] Match any character NOT enclosed in [ ] (in this instance, any # character other than a b c d e or f) # # (expression) Group operator. Contents of parentheses treated as one character # with respect to * , + , ? and | concatenation operators # # \n Backreference - matches the contents of the nth set of parentheses # [char-class] Matches any single character in char-class. # [:alnum:] [:cntrl:] [:lower:] [:space:] # [:alpha:] [:digit:] [:print:] [:upper:] # [:blank:] [:graph:] [:punct:] [:xdigit:] REG_TYPE=extended # Maximum e-mail size in bytes that should not be exceeded. # (See MAXSIZE_ALLOW for further information.) MAXSIZE_DENY=0 # Set maximum line length of any field in the message header # (default is 998 characters per line; 0 to disable option) # The Default is too small for some mails (i. e. Error-Messages in # =OpenBSD) MAXLENGTH=0 # Normalises the subject strings before parsing, e.g. # ',L.E-G,A.L; ,C.A-B`L`E, +.B-O`X` ;D`E`S,C;R,A.MB;L,E.R-]' # becomes 'LEGAL CABLE BOX DESCRAMBLER' which can be filtered. # If NORMAL is switched on, Mailfilter tries to apply filters # to both the normalised and the original subject. NORMAL=yes # split the $HOME/.mailfilterrc into several smaller files. # *** Warning: 'allow-from' *must* be loaded _before_ the DENY rules. *** # 'allow-from' contains the good people INCLUDE=/home/dope/.mailfilter/allow-from # put morons, kiddies, $LUSER into 'deny-from' and tu the deckel drauf, so # they will be come never back to the tageslicht ;) INCLUDE=/home/dope/.mailfilter/deny-from # this file deny 'From:' and 'Received:' INCLUDE=/home/dope/.mailfilter/deny-received # other shit like Content-Type with HTML, broken message-id's, wrong # Reply-To's or received from my host INCLUDE=/home/dope/.mailfilter/deny-misc # deny some subjects INCLUDE=/home/dope/.mailfilter/deny-subjects # Require mailfilter >= 0.5.0 #INCLUDE=/home/dope/.mailfilter/score