[Mimedefang] Patch to Add Spamd Support

Richard Laager rlaager at wiktel.com
Tue Jun 17 15:23:53 EDT 2003


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

> I know this is off-topic and at a lower level.  But this is 
> what I want to 
> set up: system wide bayes db files.

Add this to your SpamAssassin local configuration file (mine is
/etc/mail/spamassassin/sa-mimedefang.cf):

bayes_path /var/spool/MIMEDefang/bayes

That's really all there is to it, aside from training the bayes filter.

>                                      Could you provide with 
> more details 
> (including how to run spamd can run on a separate machine, or 
> even a cluster) ?

I'm not so sure these are worthwhile endeavors. I mentioned them because
that's what I remember hearing on the SpamAssassin mailing list from about
a year back. The disadvatage is that you have to copy the whole message out
to the spamd server(s) via the network. SpamAssassin isn't CPU intensive
enough to really need to farm out the work. About the only advantage I
could see is if you had multiple machines running MIMEDefang and one box
running spamd or something like that. Still, if you find the need to do
this, the general steps would be:

1. Setup spamd on one or more servers. If you're going to use more than one
server, figure out a clustering solution (either hardware or software) so
that connections to one ip address are balanced across the cluster. The
trick here is to remember to setup spamd to listen on the external
interface and allow connections from the appropriate servers. For example:
spamd -i 0.0.0.0 -A X.X.X.X,Y.Y.Y.Y
(Where X.X.X.X and Y.Y.Y.Y are the IP addresses of the machines that will
be talking to the spamd server(s). 0.0.0.0 can be used literally to bind to
all interfaces, or can be the IP address of the interface to bind to.)

2. Setup your mimedefang-filter to call spamd_check($host,$port) or
spamd_is_spam. $host is the hostname (or IP address) of the spamd server
(or the virtual IP of the cluster) and $port is the port. Leave $port off
if you're using the default spamd port.

Richard Laager

-----BEGIN PGP SIGNATURE-----
Version: 6.5.8ckt http://www.ipgpp.com/

iQA/AwUBPu9ozm31OrleHxvOEQL4cwCgluoL72dyPwidUSSB0HZi8r0fvswAnjzS
AMO45uVBFJL5JZK6XLVy891D
=ItM1
-----END PGP SIGNATURE-----




More information about the MIMEDefang mailing list