Even easier to use a SysV script -- put this attachment in your
/etc/init.d directory and run
chkconfig spamassassin on
service spamassassin start
On Thu, 2003-05-29 at 09:34, engage wrote:
> I'm using spam assassin with kmail. Basically, start the daemon with spamd -d
> (you could add such a command to rc.local so that it will start after a
> reboot). Then add 2 kmail filters (not POP filters). The first filter
> criteria is used to prevent exceeding spam assassin's file size limit of
> 250K, then for filter actions select "pipe through", then enter spamc in the
> associated text box. Once you create that filter, be sure to uncheck the box
> that stops file processing because you need to run the results of that filter
> action through the second filter. The second filter can check for a flag in
> the header that is set by spam assassin. I use X-Spam-Status. You won't find
> this in the filter criteria drop down box but you can manually enter it. I
> have 2 entries for this in the filter criteria because the word BAYES is
> included in the line for X-Spam-Status which will give a match for "yes". So,
> I have one criteria looking for a match to "yes" with a second criteria
> looking for "no,". If both are a match, you can either send the message to
> the trash folder or to another folder designated for spam. Or, if you set up
> spam assassin's config file to insert the word SPAM into the subject line,
> you could filter on that. BTW, the first and second filters for this process
> must be the first and second filters that the incoming mail should encounter.
>
> I hope that I did a good job of explaining this. :-)
>
> On Thursday 29 May 2003 09:49 am, Praedor Atrebates wrote:
> >I've gotten spamassassin working in client mode with kmail OK but it slows
> >down my email since spamassassin has to be started every time an email comes
> >in. Is there a way to use spamd with kmail if one is not using
> >postfix/sendmail/fetchmail locally? I am acquiring my email directly from
> >yahoo via pop. The instructions on from one of the sites below calls for
> > the use of procmail and $HOME/mail. This doesn't work with kmail which
> > uses $HOME/Mail with a bunch of subfolders, etc. How does one get
> > spamassassin in daemon mode to work with kmail client as I describe? Is it
> > doable?
> >
> >praedor
> >
> >On Thursday 29 May 2003 10:28 am, eric huff wrote:
> >> > Could you send it to me as well - I have been looking to do this for
> >> > ages - thanks
> >>
> >> Ok, here's my text file, but i is messy and unorganized. You'll just have
> >> to plow through it.
> >>
> >> Realistically, the below links and excerpts are where you should start, as
> >> i believe Derek and Sridhar have it down. I haven't actually set any of
> >> this up myself, yet.
> >>
> >> eric
> >>
> >> > The highlights are probably ( sorry if i misplace credit! ):
> >> >
> >> > From Derek:
> >> > http://www.jennings.homelinux.net/modules.php?name=Sections&op=viewartic
> >> >le&a rtid=15
> >> >
> >> > From [EMAIL PROTECTED] Tue May 13 05:33:44 2003
> >> > http://www.pclinuxonline.com/modules.php?name=News&file=article&sid=6669
> >> >
> >> >
> >> > On Kmail specifically:
> >> >
> >> > From Dennis:
> >> >
> >> > Open >settings> configure filters in kmail. Click on "new" in
> >> > the lower left corner don't rename>select "match all of the
> >> > following" select "any header" on the first box and "matches
> >> > regular exp" in the next box and then put a "." in the text box,
> >> > without the quotes just the . by itself. Then in filter actions
> >> > choose "pipe through" and in the text box put "spamassassin -a"
> >> > without quotes uncheck the box for "if this filter matches stop
> >> > processing here".
> >> >
> >> > From Derek:
> >> > The most recent versions no longer alter the subject line (by
> >> > default) instead they insert a new header line. So you will
> >> > have to set the second kmail filter to be, filter on 'Any
> >> > Header' to be "X-Spam-Status: Yes" (without the quotes)
>
>
>
> ______________________________________________________________________
>
> Want to buy your Pack or Services from MandrakeSoft?
> Go to http://www.mandrakestore.com
--
Jack Coates
Monkeynoodle: A Scientific Venture...
http://www.monkeynoodle.org/resume.html
#!/bin/sh
#
# spamassassin This script starts and stops the spamd daemon
#
# chkconfig: 2345 80 30
#
# description: spamd is a daemon process which uses SpamAssassin to check
# email messages for SPAM. It is normally called by spamc
# from a MDA.
# Source function library.
. /etc/rc.d/init.d/functions
# Source networking configuration.
. /etc/sysconfig/network
# Check that networking is up.
[ ${NETWORKING} = "no" ] && exit 0
# Source spamd configuration.
if [ -f /etc/sysconfig/spamd ] ; then
. /etc/sysconfig/spamd
else
OPTIONS="-d -c -a"
fi
[ -f /usr/bin/spamd -o -f /usr/local/bin/spamd ] || exit 0
PATH=$PATH:/usr/bin:/usr/local/bin
# See how we were called.
case "$1" in
start)
# Start daemon.
echo -n "Starting spamd: "
daemon spamd $OPTIONS
RETVAL=$?
echo
[ $RETVAL = 0 ] && touch /var/lock/subsys/spamd
;;
stop)
# Stop daemons.
echo -n "Shutting down spamd: "
killproc spamd
RETVAL=$?
echo
[ $RETVAL = 0 ] && rm -f /var/lock/subsys/spamd
;;
restart)
$0 stop
$0 start
;;
status)
status spamd
;;
*)
echo "Usage: $0 {start|stop|restart|status}"
exit 1
esac
exit 0
Want to buy your Pack or Services from MandrakeSoft?
Go to http://www.mandrakestore.com