[milters] Archive

Lists Index Date Thread Search

Article: 487
From: Dallas Helquist
Date: 2005-04-08 15:20:29 -0400
Subject: milter-spamc --> spamd problem

Removal...........: milters-request@milter.info?subject=remove
More information..: http://www.milter.info/#Support
--------------------------------------------------------

My apologies if I missed this in countless google and milter archive 
searches.

I am having problems getting milter-spamc to talk to spamd.  I have the 
(correct?) milter config in sendmail.mc, spamd is running on the local 
machine.  Spamd works fine using procmail.

Here is the error I get in my logs:

Apr  8 13:00:49 harp milter-spamc[13298]: 00001 j38Ixvon013297: failed 
to connect to spamd 127.0.0.1,783

I have verified that iptables is not running.  A tcpdump on interface lo 
shows _no_ traffic to port 783.

Here is my sendmail.mc milter-spamc lines:

define(`_FFR_MILTER', `1')dnl
INPUT_MAIL_FILTER(
         `milter-spamc',
         `S=unix:/var/lib/milter-spamc/socket, T=C:1m;S:30s;R:6m;E:1m'
)dnl

Here is the syslog output of milter-spamc starting:

Apr  8 13:13:24 harp milter-spamc[13441]: parseCfAccessFile(Kaccess hash 
-T<TMPF> -o /etc/mail/access.db)
Apr  8 13:13:24 harp milter-spamc[13441]: accessFile=/etc/mail/access.db
Apr  8 13:13:24 harp milter-spamc[13441]: process uid=51 gid=51
Apr  8 13:13:24 harp milter-spamc[13441]: milter-spamc/0.25.321 
Copyright 2003, 2004 by Anthony Howe. All rights reserved.
Apr  8 13:13:24 harp milter-spamc[13441]: LibSnert/1.40.622 Copyright 
1996, 2004 by Anthony Howe. All rights reserved.
Apr  8 13:13:24 harp milter-spamc[13441]: Sendmail libmilter Protocol 
version 2
Apr  8 13:13:24 harp milter-spamc[13441]: Sleepycat Software: Berkeley 
DB 4.1.25: (February 27, 2004)
Apr  8 13:13:24 harp milter-spamc[13441]: milter-spamc: Opening listen 
socket on conn unix:/var/lib/milter-spamc/socket


And here is some milter-spamc output with -v all :

Apr  8 13:00:49 harp milter-spamc[13298]: enter 
SocketOpenTcpClientWait(127.0.0.1, 783, 120000)
Apr  8 13:00:49 harp milter-spamc[13298]: enter SocketOpen(b7431c14, 2)
Apr  8 13:00:49 harp milter-spamc[13298]: SocketOpen() socket() fd=6
Apr  8 13:00:49 harp milter-spamc[13298]: exit SocketOpen(b7431c14, 2) 
Socket=806d8a0 fd=6
Apr  8 13:00:49 harp milter-spamc[13298]: enter SocketClose(806d8a0)
Apr  8 13:00:49 harp milter-spamc[13298]: SocketGetError(806d8a0) 
s->fd=6 errno=0 s->error=0
Apr  8 13:00:49 harp milter-spamc[13298]: SocketClose() close(6) rc=0 
errno=0
Apr  8 13:00:49 harp milter-spamc[13298]: exit SocketClose(806d8a0)
Apr  8 13:00:49 harp milter-spamc[13298]: exit 
SocketOpenTcpClientWait(127.0.0.1, 783, 120000) Socket=0
Apr  8 13:00:49 harp milter-spamc[13298]: 00001 j38Ixvon013297: failed 
to connect to spamd 127.0.0.1,783
Apr  8 13:00:49 harp milter-spamc[13298]: 00001 j38Ixvon013297: 
filterEndMessage(8062da0)
Apr  8 13:00:49 harp milter-spamc[13298]: enter 
SocketOpenTcpClientWait(127.0.0.1, 783, 120000)
Apr  8 13:00:49 harp milter-spamc[13298]: enter SocketOpen(b7431bb4, 2)
Apr  8 13:00:49 harp milter-spamc[13298]: SocketOpen() socket() fd=6
Apr  8 13:00:49 harp milter-spamc[13298]: exit SocketOpen(b7431bb4, 2) 
Socket=806d8a0 fd=6
Apr  8 13:00:49 harp milter-spamc[13298]: enter SocketClose(806d8a0)
Apr  8 13:00:49 harp milter-spamc[13298]: SocketGetError(806d8a0) 
s->fd=6 errno=0 s->error=0
Apr  8 13:00:49 harp milter-spamc[13298]: SocketClose() close(6) rc=0 
errno=0
Apr  8 13:00:49 harp milter-spamc[13298]: exit SocketClose(806d8a0)
Apr  8 13:00:49 harp milter-spamc[13298]: exit 
SocketOpenTcpClientWait(127.0.0.1, 783, 120000) Socket=0
Apr  8 13:00:49 harp milter-spamc[13298]: 00001 j38Ixvon013297: failed 
to connect to spamd 127.0.0.1,783


And I verify that spamd is running:

[root@harp milter-spamc]# netstat -nap | grep spamd
tcp        0      0 127.0.0.1:783               0.0.0.0:* 
     LISTEN      1444/spamd -d -c -m

[root@harp milter-spamc]# telnet 127.0.0.1 783
Trying 127.0.0.1...
Connected to 127.0.0.1.
Escape character is '^]'.

SPAMD/1.0 76 Bad header line:
Connection closed by foreign host.


13285 pts/0    S      0:00 /usr/local/sbin/milter-spamc -r 0 -d 0 -v all 
-f /etc/mail/sendmail.cf unix:/var/lib/milter-spamc/socket


I'm stumped.  Anyone have any ideas?

-dallas

Lists Index Date Thread Search