White Listing using Active Spam Killer (Ask)
We strongly recommend you to use the automatic setup of ASK using setup_procmail.If you are an experienced procmail user and/or you have very special requirements, you may decide to setup ask manually.
This text describes the manual setup of active spam killer at
cs.kuleuven.be and should only be used as a guideline.
Recommendation
We recommend to use Ask in combination with procmail because- Procmail is allready installed on our machines and is e.g. used for "Vacation/Out with Office" messages.
- Procmail can be used to handle part of your email (e.g. by throwing away Spam recognized by our anti-virus and anti-spam host dr-zook).
- By calling Ask from your .procmailrc one can implement different
strategies.
Quick Setup
The setup involves different steps, some of them are optional and can
be skipped by most users.- Login on the machine where your mail is delivered. The name
of this machine can be found with following command:
ypmatch jean aliases | sed 's/jean@//'
where jean is replaced by your login.
- Execute asksetup.py or asksetup
This will setup Ask for you (files in $HOME/.ask) and recommend to edit .askrc
- Edit .askrc
You have to change:
- replace every occurence of firstname by your first name
- replace every occurence of lastname by your last name
on the line starting with rc_mymails you have to ommit all blanks and accents from your last name.
- replace every occeurence of login by your login
- [optional] on the line rc_mymails you should add all other mail addresses that arrive in your mailbox.
- On the line "rc_mailkey = This is from my email signature", replace "This is from my email signature" by a string from your signature file. This construct is used to check for and recognize mails sent by you.
- Replace the string "Big Spammer is watching you" by another
string on the line rc_md5_key = .
If you do not do this your md5 checksums may be guessable by spammers.
- [Optional] Prepare your whitelist>
Initially your whitelist ( $HOME/.ask/whitelist.txt ) contains wildcards for cs.kuleuven.be and for kuleuven.be email adresses. You may add email adresses for people you often exchange email with
- by running "asksenders.py some_mbox >>
$HOME/.ask/whitelist.txt
For all mailboxes containing mail from people you want to whitlest
- by editing $HOME/.ask/whitelist.txt
(this is a good occasion to clean out email adresses covered by wildcards e.g. all kuleuven adresses)
- by running "asksenders.py some_mbox >>
$HOME/.ask/whitelist.txt
- Enter the call for ask.py in your .procmailrc :
LInux
# Active Spam Killer
Solaris
:0 fW
| /usr/bin/askfilter --procmail --loglevel=0 --logfile=/home/login/ask.log
:0 e
/dev/null
# Active Spam Killer
:0 fW
| /usr/local/bin/ask.py --procmail --loglevel=0 --logfile=/home/login/ask.log
:0 e
/dev/null
You have to replace login by your loginname. If you need logging increase the loglevel.
You should enter these lines after all special actions which filter spam, handle mailling list, ... and before mail is delivered to your default mailbox.
- [Optional] If needed you can e.g. restrict the mail processed by
Ask to some of your emails. My procmailrc contains:
# Active Spam Killer
:0 fW
* ^TO(alias1@domain1|\
alias2@domain2|\
login@domain|\
naam.voornaam@domain3|\
login@domain)
| /usr/bin/ask.py --procmail --loglevel=4 --logfile=/home/login/ask.log
:0 e
/dev/null - The system is operational now, mails for which will
accumulate in $HOME/.ask/queue.
- [optional] To clean out mails left for a number of days one
can add following line to your crontab (use "crontab -e")
# send mail to clean up the Ask queue
You must replace "login" with your login name.
45 14 * * 1 mailx -s "ask process queue" login 1>/dev/null 2>&1
This line will send every monday a mail to yourself with subject "ask process queue". This mail will be intercepted and processed by Ask resulting in a queue report sent to you.
See the next topic how to respond to this queue report.

