summaryrefslogtreecommitdiff
path: root/src/kbsrc
blob: e59e512ad1644dac4067ec22669eb924d2a5404a (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
# 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
}


# 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 .net address.
#
domain "\.net$"
{
    default block
    allow_subject ".*ansi-c.*"
}

# 'Blacklist' a specific domain
#
domain "^wretched-hive-of-scum-and-villainy\.com$"
{
    default block
}


# 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

    # 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 ".* ?teenage girl ?.*"
    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!
    #
    block_subject "emailname@my-isp.co.uk"
}