connect to spamd on 127.0.0.1 failed

jlixfeld

Verified User
Joined
Jun 1, 2009
Messages
60
I'm noticing that SpamAssassin isn't doing what it's supposed to.

I've tried to test it's functionality by sending a GTUBE to exim, when I do, spamc reports that it can't connect to spamd:

Jul 28 14:31:37 app1 spamc[69994]: connect to spamd on 127.0.0.1 failed, retrying (#1 of 3): Can't assign requested address
Jul 28 14:31:38 app1 spamc[69994]: connect to spamd on 127.0.0.1 failed, retrying (#2 of 3): Can't assign requested address
Jul 28 14:31:39 app1 spamc[69994]: connect to spamd on 127.0.0.1 failed, retrying (#3 of 3): Can't assign requested address
Jul 28 14:31:40 app1 spamc[69994]: connection attempt to spamd aborted after 3 retries

spamd is certainly running:

app1# ps xa|grep spam
69978 ?? Ss 0:01.17 /usr/bin/spamd -d -c -m 15 (perl)
69983 ?? I 0:00.03 spamd child (perl)
69984 ?? I 0:00.02 spamd child (perl)
70076 p0 R+ 0:00.00 grep spam
app1# sockstat | grep perl
root perl 69984 4 dgram -> /var/run/log
root perl 69984 5 tcp4 127.0.0.1:783 *:*
root perl 69984 7 stream -> ??
root perl 69984 9 stream -> ??
root perl 69983 4 dgram -> /var/run/log
root perl 69983 5 tcp4 127.0.0.1:783 *:*
root perl 69983 8 stream -> ??
root perl 69978 4 dgram -> /var/run/log
root perl 69978 5 tcp4 127.0.0.1:783 *:*
root perl 69978 7 stream -> ??
root perl 69978 8 stream -> ??

I've followed the instructions as per the how-to (http://help.directadmin.com/item.php?id=36), have restarted exim and spamd to no avail.

Any ideas?
 
Two posts now on this issue. What OS are you running?

Jeff

Apologies on both counts:

- I saw a post from 2003, but the workarounds for that issue didn't resolve my problem.

- My OS is FreeBSD 7.2-RELEASE #0
 
Solved

Wow, this was an odd one.

The actual error, as reported earlier was "Can't assign requested address".

I got the same error when I tried to ping localhost from the CLI, or even check webmail via squirrelmail:

[ario@app1 ~]$ ping localhost
PING localhost (127.0.0.1): 56 data bytes
ping: sendto: Can't assign requested address

The solution was to bounce the loopback interface:

ifconfig lo0 down
ifconfig lo0 up

And everything started working like a champ...

Weird...
 
Back
Top