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