Hi all.  I'm working with an issue that has been really driving me
crazy.  I've searched the archives and not found anything that is really
pertaining to my problem, so I'd like to run this by the list and see
what I'm missing.
 
First off, configuration:
Sendmail 8.13.1/8.14.1 (RHEL4 stock package)
Spamassassin 3.2.0 from source
 
At the current time, both spamassassin and sendmail are running as root.
 
Spamd is being executed as follows:
SPAMDOPTIONS="-C /etc/mail/spamassassin -D -d -c -m5 -H
--socketpath=/var/spool/smf/smf-spamd.sock"
...
daemon $NICELEVEL spamd $SPAMDOPTIONS -r $SPAMD_PID
 
The milter configuration in sendmail is as follows:
INPUT_MAIL_FILTER(`smf-spamd', `S=unix:/var/spool/smf/smf-spamd.sock,
T=S:1m;R:1m')

And my problem:
When spamd starts up, it opens a socket at /var/spool/smf/smf-spamd.sock
(as shown here): 
# ls -l /var/spool/smf/
srw-rw-rw-  1 root root 0 May 23 12:09 smf-spamd.sock

When I connect over that socket manually using spamc, everything works
as expected.  When I make a connection from another machine on port 25,
it waits for about 20-30 seconds before giving the SMTP header, and I
get the following in the logs:
 
[EMAIL PROTECTED] mail]# May 23 12:27:59 linuxcp19326 spamd[31071]:
prefork: ordered 31074 to accept
May 23 12:27:59 linuxcp19326 spamd[31071]: prefork: sysread(7) not
ready, wait max 300 secs
May 23 12:27:59 linuxcp19326 spamd[31074]: spamd: got connection over
/var/spool/smf/smf-spamd.sock
May 23 12:27:59 linuxcp19326 spamd[31071]: prefork: child 31074:
entering state 2
May 23 12:27:59 linuxcp19326 spamd[31071]: prefork: new lowest idle kid:
31075
(it waits about 20-30 seconds at this point in the logs)
May 23 12:28:29 linuxcp19326 spamd[31074]: spamd: timeout: (30 second
socket timeout reading input from client) at /usr/bin/spamd line 1999.
May 23 12:28:29 linuxcp19326 sendmail[31705]: l4NGRxJV031705:
milter_read(smf-spamd): cmd read returned 71, expecting 1397768524
May 23 12:28:29 linuxcp19326 sendmail[31705]: l4NGRxJV031705: Milter
(smf-spamd): to error state
May 23 12:28:29 linuxcp19326 spamd[31074]: config: copying current conf
from backup
May 23 12:28:29 linuxcp19326 sendmail[31705]: l4NGRxJV031705: Milter
(smf-spamd): init failed to open
May 23 12:28:29 linuxcp19326 sendmail[31705]: l4NGRxJV031705: Milter
(smf-spamd): to error state
May 23 12:28:29 linuxcp19326 spamd[31074]: prefork: sysread(8) not
ready, wait max 300 secs
May 23 12:28:29 linuxcp19326 spamd[31071]: prefork: child 31074:
entering state 1
May 23 12:28:29 linuxcp19326 spamd[31071]: prefork: new lowest idle kid:
31074
May 23 12:28:29 linuxcp19326 spamd[31071]: prefork: child reports idle
May 23 12:28:29 linuxcp19326 spamd[31071]: prefork: child states: II

What am I missing?  If I need to post more here, let me know.
 
Thank you for your patience with me here :)
 
-Doug

Reply via email to