[milters] Archive

Lists Index Date Thread Search

Article: 805
From: Anthony Howe
Date: 2006-02-03 11:23:42 -0500
Subject: Re: milter-spamc fails with cmd read returned 0

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

Stefan Suurmeijer wrote:
> Feb  2 22:04:31 mentat1 milter-spamc[7386]: checking
> "/etc/mail/access.db" for "milter-spamc-to:stefan@mentat1.rug.nl"
> Feb  2 22:04:31 mentat1 milter-spamc[7386]: checking
> "/etc/mail/access.db" for "milter-spamc-to:mentat1.rug.nl"
> Feb  2 22:04:31 mentat1 milter-spamc[7386]: checking
> "/etc/mail/access.db" for "milter-spamc-to:rug.nl"
> Feb  2 22:04:31 mentat1 milter-spamc[7386]: access DB
> key="milter-spamc-to:rug.nl" value="REJECT"
> Feb  2 22:04:31 mentat1 sendmail[7549]: k12L4KOd007549:
> milter_read(milter-spamc): cmd read returned 0, expecting 5

It would appear that sendmail/milter communications are timing out. Look 
to your T= values in the INPUT_MAIL_FILTER() macro for the milter found 
in your sendmail .mc file. I suspect your R: value is too short.

Also are you scanning whole message bodies or just the first 64K chunk 
(default)?

You might also make sure your SpamAssassin process is running AND that 
the milter can still connect to it. It might be timing out while trying 
to connect to the SpamAssassin daemon.

> Feb  2 22:04:31 mentat1 sendmail[7549]: k12L4KOd007549: Milter
> (milter-spamc): to error state
> Feb  2 22:04:31 mentat1 sendmail[7549]: k12L4KOd007549: --- 250 2.1.5
> <stefan@mentat1.raptorweb.nl>... Recipient ok
> Feb  2 22:04:31 mentat1 sendmail[7549]: k12L4KOd007549: <-- DATA

Also please in future provide the whole log for the message/milter 
thread. As its not clear exactly where the milter is when it fails 
without more of the surrounding context.

You might try increasing the milter's log detail to

	-v info,trace,db,dialog

which will show more of what's happening (at least for me :-)

Anthony





Lists Index Date Thread Search