# ----------------------------------------------------------- # Filenmae: $HOME/.mailfilterrc # Purpose: config-file for mailfilter # Author: Michael Prokop / www.michael-prokop.at # Latest change: Sam Sep 27 23:09:14 CEST 2003 # # !!!Important!!! Please test your setup via "mailfilter -t" # (or set the "TEST"-variable to yes in this config-file) # before deleting mails in your mailboxes! # Also check out the rules and adjust them if necessary! # ----------------------------------------------------------- # Logfile path (be sure you have write permission in this # directory; you MUST specify a logfile) LOGFILE = /home/mika/Logs/mailfilter/log # ----------------------------------------------------------- # If you want a test setup uncomment the following lines: # TEST = yes # SHOW_HEADERS = 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 = 3 # ----------------------------------------------------------- # 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. # # It should look like this: # SERVER = pop.provider.tld # USER = username # PASS = yourpassword # PROTOCOL = pop3 # PORT = 110 # # Sorry but nothing for publishing online so INCLUDE it ;-) INCLUDE=/home/mika/.mailfilterrc_private # ----------------------------------------------------------- # define a server response time out in seconds (default = 30) TIMEOUT = 10 # ----------------------------------------------------------- # Do you want case sensitive e-mail filters? { yes | no } REG_CASE = no # ----------------------------------------------------------- # Sets the type of Regular Expression used { extended | basic } # (The default is 'basic', don't change unless you know what # you are doing. Extended REs are more complex to set up.) REG_TYPE = extended # ----------------------------------------------------------- # Maximum e-mail size in bytes that should not be exceeded. # MAXSIZE_DENY = 1000000 MAXSIZE_DENY = 135000 # ---------------------------------------------------------- # 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. NORMAL = yes # ----------------------------------------------------------- # The maximum e-mail size in bytes that messages from friends # should not exceed. Set this to 0 if all your friends (ALLOW) # can send messages as long as they want. MAXSIZE_ALLOW = 0 # ---------------------------------------------------------- # Set list of friends that always pass, if they do not # exceed the message length of MAXSIZE_ALLOW # Some examples: # ALLOW = ^From:.*a_friend_with_account@any_provider_that_spams.org # ALLOW = ^Subject:.*mailfilter # ALLOW = ^From:.*my_girlfriend@any_provider.com # DENY = ^From:.*my_exgirlfriend@any_provider.com # ---------------------------------------------------------- # Take care of duplicates and makes sure that only one copy # of a message has to be delivered. DEL_DUPLICATES = yes # ---------------------------------------------------------- # Assign scores HIGHSCORE = 100 # bad things # SCORE +55 = ^Content-Type:.*html # SCORE +55 = ^Subject:.*user unknown # SCORE +100 = ^Content-Type:.*multipart\/mixed # SCORE +100 = ^Content-Type:.*application\/x-msdownload # SCORE +103 = ^From:.*Microsoft # SCORE +110 = ^From:.*@netmail\.com # SCORE +110 = ^From:.*@rocketmail\.com # SCORE +120 = ^Subject:.*Latest Network Critical Patch # SCORE +120 = ^Subject:.*Last Microsoft Critical Patch # SCORE +120 = ^Subject:.*Last Network Security Upgrade # SCORE +120 = ^Subject:.*Network Critical Patch # SCORE +120 = ^Subject:.*Latest Security Update # SCORE +130 = ^To:.*@.*homeserver\.com # SCORE +130 = ^To:.*@.*domain\.com # SCORE +130 = ^To:.*@.*server\.com # SCORE +130 = ^To:.*@.*server\.net # SCORE +140 = ^(To|Cc|From):.*msdn\.net # SCORE +140 = ^(To|Cc|From):.*ms\.com # SCORE +140 = ^(To|Cc|From):.*microsoft\.com # SCORE +140 = ^(To|Cc|From):.*microsoft\.net # SCORE +140 = ^(To|Cc|From):.*ms\.net # good things - allow/positive scores SCORE -200 = ^(To|Cc|From):.*demo1@michael-prokop\.at ALLOW = ^(To|Cc|From):.*demo1@michael-prokop\.at ALLOW = ^(To|Cc|From):.*demo2@michael-prokop\.at # deny all not coming from/going to my domain (adjust!) # DENY <> ^(To|Cc|From):.*@michael-prokop\.at # DENY-rules # DENY = ^Content-Type:.*html ## DENY = ^Content-Type:.*multipart\/mixed DENY = ^Content-Type:.*application\/x-msdownload DENY = ^From:.*Microsoft # DENY = ^From:.*MS DENY = ^From:.*@microsoft\.com DENY = ^From:.*@netmail\.com DENY = ^From:.*@rocketmail\.com # DENY = ^From:.*Corp # DENY = ^From:.*Security DENY = ^From:.*rocketmail # DENY = ^From:.*Technical # DENY = ^From:.*Assistance # DENY = ^From:.*Message # DENY = ^From:.*Inet # DENY = ^From:.*Internet # DENY = ^From:.*Postmaster # DENY = ^From:.*mail # DENY = ^From:.*System # fucking hi-mails DENY=^From:.*Ingo.Wilken@informatik.uni-oldenburg.de DENY = ^To:.*homeserver\.com DENY = ^To:.*domain\.com # DENY = ^To:.*server\.com DENY = ^To:.*@emailserver\.com DENY = ^To:.*@@updates\.com DENY = ^To:.*@yourserver\.com DENY = ^To:.*server\.net # DENY = ^To:.*msn\.com DENY = ^To:.*@rock.com DENY = ^(To|Cc|From):.*msdn\.net # DENY = ^(To|Cc|From):.*ms\.com DENY = ^(To|Cc|From):.*microsoft\.com DENY = ^(To|Cc|From):.*microsoft\.net # DENY = ^(To|Cc|From):.*ms\.net # DENY = ^Subject:.*user.*unknown DENY = ^Subject:.*Latest.*Patch DENY = ^Subject:.*Latest.*Update DENY = ^Subject:.*Last.*Patch DENY = ^Subject:.*Last.*Upgrade DENY = ^Subject:.*Network.*Patch # DENY = ^Subject:.*Microsoft # DENY = ^Subject:.*Letter # DENY = ^Subject:.*Update # DENY = ^Subject:.*Upgrade # DENY = ^Subject:.*Service # DENY = ^Subject:.*Patch # DENY = ^Subject:.*Undeliverable # DENY = ^Subject:.*Returned # DENY = ^Subject:.*Message # DENY = ^Subject:.*Technical # DENY = ^Subject:.*Pack # DENY = ^Subject:.*Announcement # DENY = ^Subject:.*Bug # DENY = ^Subject:.*Critical # DENY = ^Subject:.*Latest # DENY = ^Subject:.*Newest # DENY = ^Subject:.*Abort # DENY = ^Subject:.*Current # DENY = ^Subject:.*Failure # DENY = ^Subject:.*Advice # ---------------------------------------------------------- # Hacks/Ideas/Stuff... # # A filter that only accepts ASCII characters and also # German umlauts as extension # DENY_NOCASE=^Subject:.*=\?ISO-8859-1\?Q\?.*= ([0189][[:xdigit:]]|[7F]F|A[0189A-F]| # B[1235-9A-F]|[CE][0-35-9A-F]|[DF][0-5789ABDE]) # ----- EOF ----------------------------------------------