Using this setup you will not need to make any modifications to the qmail package, you will not need to update your current version of qmail to the patched one, and you will not need to install qmail-scanner either.

The only parts of spamassassin i use are spamd and spamc. spamassassin daemon and spamassassin client, which communicates with spamassassin daemon.

i installed local.cf into /etc/mail/spamassassin (global conf file)
To understand the options in local.cf refer to Mail::SpamAssassin::Conf

Here's the output of local.cf:
skip_rbl_checks 0
required_hits 5
auto_report_threshold 30
rewrite_subject 0
report_header 1
user_terse_report 1
defang_mime 0
use_terse_report 0
required_hits 7.5
allow_user_rules 0
auto_whitelist_path /etc/mail/spamassassin/auto-whitelist

At this point you should be ready to run spamd with these options
spamd -a -d -C /etc/mail/spamassassin (I also created an init script for this)

'-a' = autowhitelisting
'-d' = daemonize
'-C' = specify our config file directory

Now that spamd is setup, it's time for our qmail setup to implement spamc

in /var/service/qmail/run:
the last line should look like this
qmail-start "$DEFAULT_DELIVERY"

cd into defaultdelivery and edit the rc file:
# Using spamassassin to check emails before
# Using qmail-local to deliver messages to ~/Maildir/ by default.
|spamc -c -f (the first character is a `pipe`)
./Maildir/

If you don't want to use spamassassin system wide. then create a .qmail file in the individual users directories with the same format as above.

I use the '-c' option because when the message is considered spam it never actually gets delivered (spamc exits with a status of 1) and stays in the mail queue allowing me to view/delete the message at will.
The problem with this is that qmail is going go to try to deliver these messages to the intended receiver of the mail message (including parsing the message through spamc again) until either 1. you delete the messages from the mail queue or 2. the queue lifetime on the mail message has expired (1 week in my case) and this could use alot of resources.

When a message has a score above the threshold (which is 7.5 in my config file) the message stays in the mailq.

I use qmHandle to view/read/delete message from the queue.




Mike Griffin
Director of Network Services
DMR Networks
412.798.2525 x117
[EMAIL PROTECTED]
http://www.dmrnetworks.com



-------------------------------------------------------
This sf.net email is sponsored by: See the NEW Palm Tungsten T handheld. Power & Color in a compact size!
http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0001en
_______________________________________________
Spamassassin-talk mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/spamassassin-talk

Reply via email to