On Wed, 9 Mar 2005, Dave Goodrich wrote:
[EMAIL PROTECTED] wrote:
What is involved in setting up spamassassin to run on a remote machine?
After installing it on hostA (mailserver) and hostB, I get onto hostA and tweak my procmailrc to have
:0fw: $HOME/spamassassin.lock | $SPAMHOME/bin/spamc -d hostB.FQDN
... (if spam, then filter)
What does a command line test tell you?
cat your.testmsg | /your/path/bin/spamc -d yourhost.com
Great idea. First, as mentioned below, I changed startup to add "-i" ie
$SPAMHOME/bin/spamd -d --syslog-socket=inet -r /var/tmp/spamdnew.pid \ --allowed-ips=HostA-ip,HostB-ip,127.0.0.1 -i HostB
then on HostA,
% cat /etc/motd | $SPAMHOME/bin/spamc -d hostB
X-Spam-Checker-Version: SpamAssassin 3.0.2 (2004-11-16) on
HostB.fqdn
X-Spam-Level: X-Spam-Status: No, score=-0.2 required=4.0 tests=ALL_TRUSTED,MISSING_DATE,
MISSING_SUBJECT,NONLOCAL autolearn=unavailable version=3.0.2
(HostA had SA v.265 installed, HostB has SA v3.02)
and the above indeed spews spamd stuff to syslog on hostB
And on hostB, I start it up with
$SPAMHOME/bin/spamd -d --syslog-socket=inet -r /var/tmp/spamdnew.pid \ --allowed-ips=<ip of hostA,ip of hostB>
It would tell you there is no spamd listening, you have spamc making a tcp connection to spamd on another host that is listening to a socket.
You need -i ip.address in your spamd startup.
Thanks a lot for your help!
=-=-=-=-=-=-=-=-=-=- generated by /dev/dave -=-=-=-=-=-=-=-=-=-=-=-= David Stern University of Maryland Institute for Advanced Computer Studies