I am going to take this opportunity and explain how I did it on a system that
is going into to process over 25000 emails/day, in the hope that someone can
comment on the overhead this implimentation will cause ..
First, create a startup script /etc/init.d/spamd to automatically launch
"spamd" on boot (before Postfix starts).
In it, I start spamd with this command:
daemon spamd -x -d -m 20 -u SpamAssassan -H /var/spool/SpamAssassin/ -r
/var/run/spamd.pid
Then, in /etc/postfix/master.cf:
Add a line just after "smtp" so the two lines look like this :
smtp inet n - n - - smtpd
-o content_filter=postfixfilter:
And at the end of master.cf, add this new service:
postfixfilter unix - n n - - pipe
flags=Rq user=SpamAssassan argv=/etc/postfix/postfixfilter -f ${sender} --
${recipient}
Then create the file /etc/postfix/postfixfilter with the following 2 lines
content:
#!/bin/bash
/usr/bin/spamc | /usr/sbin/sendmail "$@"
This is a rough overview of how our SA servers are set up, if I remember
correctly I found this method on the SA mailing list about a year ago, and
have been running it since for about 100 people with good results.
- R�khar�ur
-----Original Message-----
From: Nigel [mailto:[EMAIL PROTECTED]
Sent: 31 March, 2004 11:46 AM
To: [EMAIL PROTECTED]
Subject: Re: Timeouts caused by Spamasassin
Thanks, Just had a look at the spamd documentation but there doesnt seem
to be an example for setting up the spamc client. Is it easy to
implement for system wide use?. At present I have 5 users on the network
each with a procmailrc file calling SA.
Duncan Hill wrote:
> On Wednesday 31 March 2004 09:33, Nigel wrote:
>
>>i'm calling spamassassin from procmailrc:-
>>
>>:0fw: spamassassin.lock
>>
>>* < 256000
>
>
> Ah, so you load perl into memory for -each- email that you process.
>
> Switch to using spamd and spamc and see if the timeouts go away.
> Spamd loads
> perl once to set up SA, and spamc just gives it an e-mail and asks for a
> reply.
>
>
>
--
________________________________________________________________
Kilner Vacuumation Co. Ltd. http://www.kilner-vacuum-lifting.com
Tel. +44 1246 416441 Fax. +44 1246 290573
________________________________________________________________