blob: 27031dff3df402ad8d914239df8a5365ed850f4b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
|
# Simple example KBS config file
#
# Set variables
#
set hostname mail.myisp.co.uk
set username foobar
set password raboof
set casesense off
set dejunk on
set testmode on
# Trusted people (from my address book)
#
trusted_users
{
family@aol.com
fred@foobar.org
mailinglist@wibblesticks.com
}
trusted_domains
{
my-place-of-work.com
freebsd.org
kernel.org
}
# Blacklist specific domains
#
blacklist
{
^wretched-hive-of-scum-and-villainy\.com$
^jumbo-whatsits\.com$
^microsoft\.com$
}
# Set up a few subject macros
#
subject_macro "i" "[il1!]"
subject_macro "e" "[e3]"
subject_macro "s" "[s5z]"
# Domain based rules
#
# Remember that the domain is defined in the form of a regular expression!
#
# Anyone who doesn't know me, has to include the string ansi-c to
# get through from a .com address.
#
domain "\.com$"
{
default block
allow_subject ".*ansi-c.*"
}
# Or alternatively apply general rules to all untrusted messages
#
domain "."
{
default allow
# Apologies in advance if you have the same user ID as me...
#
block_user emailname
# Only allow emails legitimately directed to us:
#
allow_to emailname@myisp.co.uk
# Obviously, things like "credit card" will not be blocked from the bank
# as that's in the trusted_domains.
#
# And some of these may be accidently found in normal words, so remember
# to check the delete logs once in a while.
#
# And to avoid insulting anyone, there are some obvious words missing
# from this example list... If you're old enough, add them yourself...
#
# And finally remember a few variants - spelling isn't what it once was
# amongst spammers...
#
block_subject ".* ?penis ?.*"
block_subject ".* ?teenz ?.*"
block_subject ".* ?viagra ?.*"
block_subject ".* ?free all you can download ?.*"
block_subject ".* ?mortgage ?.*"
block_subject ".* ?credit card ?.*"
block_subject ".* ?miracle pill ?.*"
block_subject ".* ?schoolgirl ?.*"
block_subject ".* ?video tape ?.*"
block_subject ".* ?sexy? ?.*"
block_subject ".* ?naked ?.*"
block_subject ".* ?nigeria ?.*"
# Why would anyone sane want to use my username in a subject?
# I know who I am! Note it's capitilised so nothing bizarre gets
# done by the subject macros.
#
block_subject "EMAILNAME@MYISP.CO.UK"
}
|