You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@spamassassin.apache.org by Paco Yepes <pa...@um.es> on 2005/05/18 15:16:09 UTC

spamc and spamd in different servers

I want to connect spamc in IP 172.19.3.1 to spamd in IP 172.19.2.1

spamd is running in 2.1 with the following options:

# ps -ef | grep spamd
root     11192     1  0 14:20 ?        00:00:00 /usr/sbin/spamd -m 10 -A
172.19.3.1 -A 172.19.3.2 -A 127.0.0.1 -d --pidfile=/var/run/spamd.pid
root     11193 11192  0 14:20 ?        00:00:00 spamd child
root     11194 11192  0 14:20 ?        00:00:00 spamd child
....
....

and it work fine with connections in 127.0.0.1

but, wen I want to connect from 3.1 with command:

# spamc -c -d 172.19.2.1 -l < message.txt

I get the next error messages:
spamc: connect(AF_INET) to spamd at 172.19.2.1 failed, retrying (#1 of
3): Connection refused
spamc: connect(AF_INET) to spamd at 172.19.2.1 failed, retrying (#2 of
3): Connection refused
spamc: connect(AF_INET) to spamd at 172.19.2.1 failed, retrying (#3 of
3): Connection refused
spamc: connection attempt to spamd aborted after 3 retries
0/0

With tcpdump i can see that connections from 3.1 to 2.1 (por 783) are
done, but spamd in 2.1 do not apear accept client 3.1 (option -A
malfunctioning?)

Anybody can help me?

Thanks.


Re: spamc and spamd in different servers

Posted by James R <ja...@trusswood.dyndns.org>.
Paco Yepes wrote:
> I want to connect spamc in IP 172.19.3.1 to spamd in IP 172.19.2.1
> 
> spamd is running in 2.1 with the following options:
> 
> # ps -ef | grep spamd
> root     11192     1  0 14:20 ?        00:00:00 /usr/sbin/spamd -m 10 -A
> 172.19.3.1 -A 172.19.3.2 -A 127.0.0.1 -d --pidfile=/var/run/spamd.pid
> root     11193 11192  0 14:20 ?        00:00:00 spamd child
> root     11194 11192  0 14:20 ?        00:00:00 spamd child
> ....
> ....
> 
> and it work fine with connections in 127.0.0.1
> 
> but, wen I want to connect from 3.1 with command:
> 
> # spamc -c -d 172.19.2.1 -l < message.txt
> 
> I get the next error messages:
> spamc: connect(AF_INET) to spamd at 172.19.2.1 failed, retrying (#1 of
> 3): Connection refused
> spamc: connect(AF_INET) to spamd at 172.19.2.1 failed, retrying (#2 of
> 3): Connection refused
> spamc: connect(AF_INET) to spamd at 172.19.2.1 failed, retrying (#3 of
> 3): Connection refused
> spamc: connection attempt to spamd aborted after 3 retries
> 0/0
> 
> With tcpdump i can see that connections from 3.1 to 2.1 (por 783) are
> done, but spamd in 2.1 do not apear accept client 3.1 (option -A
> malfunctioning?)
> 
> Anybody can help me?
> 
> Thanks.
> 
> 
> 
What's the params. that you start spamd with?

-- 
Thanks,
James Rallo
Trusswood Inc.
James@Trusswood.DynDns.org
www.Trusswood.DynDns.org
Tele:  (321) 383-0366
Fax:   (321) 383-0362

Re: spamc and spamd in different servers

Posted by Paco Yepes <pa...@um.es>.
The problem is corrected.

By default, spamd listen only in 127.0.0.1
The corrects options for my purpose are:

/usr/sbin/spamd -m 10 -i -A 172.19.3.1 -A 172.19.3.2 -A 127.0.0.1 -d

Where:

-A is used for permit connections from 3.1 and 3.2 (plus localhost)

and

-i make spamd listen on all their interfaces

Ciao.


El mié, 18-05-2005 a las 10:36 -0500, Andy Jezierski escribió:
> 
> Paco Yepes <pa...@um.es> wrote on 05/18/2005 08:16:09 AM:
> 
> > I want to connect spamc in IP 172.19.3.1 to spamd in IP 172.19.2.1
> > 
> > spamd is running in 2.1 with the following options:
> > 
> > # ps -ef | grep spamd
> > root     11192     1  0 14:20 ?        00:00:00 /usr/sbin/spamd -m
> 10 -A
> > 172.19.3.1 -A 172.19.3.2 -A 127.0.0.1 -d
> --pidfile=/var/run/spamd.pid
> > root     11193 11192  0 14:20 ?        00:00:00 spamd child
> > root     11194 11192  0 14:20 ?        00:00:00 spamd child
> > ....
> > ....
> > 
> > and it work fine with connections in 127.0.0.1
> > 
> [snip] 
> 
> Your -A option is incorrect the correct format is -A
> ipaddr,ipaddr,ipaddr 
> 
> Andy


Re: spamc and spamd in different servers

Posted by Andy Jezierski <aj...@stepan.com>.
Paco Yepes <pa...@um.es> wrote on 05/18/2005 08:16:09 AM:

> I want to connect spamc in IP 172.19.3.1 to spamd in IP 172.19.2.1
> 
> spamd is running in 2.1 with the following options:
> 
> # ps -ef | grep spamd
> root     11192     1  0 14:20 ?        00:00:00 /usr/sbin/spamd -m 10 -A
> 172.19.3.1 -A 172.19.3.2 -A 127.0.0.1 -d --pidfile=/var/run/spamd.pid
> root     11193 11192  0 14:20 ?        00:00:00 spamd child
> root     11194 11192  0 14:20 ?        00:00:00 spamd child
> ....
> ....
> 
> and it work fine with connections in 127.0.0.1
> 
[snip]

Your -A option is incorrect the correct format is -A ipaddr,ipaddr,ipaddr

Andy