# 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" }