spamc connecting to remote hosts

icepick

Verified User
Joined
Aug 19, 2005
Messages
112
Location
Auckland, New Zealand
Hi,

I've just finnished migrating users to our new DA server and we're using Spamblocker rather than the MailScanner which we used previously. I'm wondering if anyone has a cluser of spamd & clamd box's that they have their DA connect to.

i.e. Rather than having spamd & clamd running on the same system as DA, host these on other systems and have round robin DNS for load sharing,
av_scanner = clamd:loadshare.domain.co.nz 3310
&
transport_filter = /usr/bin/spamc -h loadshare.domain.co.nz -u ${lookup{$domain}lsearch*{/etc/virtual/domainowners}{$value}}

In doing the above, are user preferences sent to the spamd; if so which, if not how?
 
Any luck yet? :) I'm going to try to set up a small test lab today to see what happens.
 
works but...

Yeh it works but because the user_prefs are stored on the spamc server you cant send the user_prefs across. So bayes files are shared, and the spam_required is a global setting... I need to work out how to send preferences to spamd
 
How did you set up SA on the remote server? I installed the packages from Yum/apt and have spamd running & listening on its default port of 783.. but it doesn't show up in nmap.

I have a sample spam with the GTUBE string in it, and when I try to test it against the remote server, it doesn't seem to respond.

[root@dev1 ~]# spamc -d dev2 < spam.txt
Subject: Test spam mail (GTUBE)
Message-ID: <[email protected]>
Date: Wed, 23 Jul 2003 23:30:00 +0200
From: Sender <[email protected]>
To: Recipient <[email protected]>
Precedence: junk
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

This is the GTUBE, the
Generic
Test for
Unsolicited
Bulk
Email

If your spam filter supports it, the GTUBE provides a test by which you
can verify that the filter is installed correctly and is detecting incoming
spam. You can send yourself a test mail containing the following string of
characters (in upper case and with no white spaces and line breaks):

XJS*C4JDBQADN1.NSBN3*2IDNEN*GTUBE-STANDARD-ANTI-UBE-TEST-EMAIL*C.34X

You should send this test mail from an account outside of your network.

[root@dev1 ~]#


This is the first time that I've really dealt with spamc/spamd, usually I've used amavisd-new instead.
 
Well, I'm a moron. The -A flag was missing!

-A host,..., --allowed-ips=..,.. Limit ip addresses which can connect

without that, you get a message in debug about "unauthorized connection."

About the other issues.. are you on the spamassassin mailing list? if so, that'd be an excellent place to query. I'm on it as well (lurking) and have two boxes here (one DA, one spamd) that I can test anything on. :D
 
The SpamAssassin gurus (developers) tell me that the way to do this is to use MySQL for the user_prefs.

I'm researching that now.
 
Back
Top