Yahoo Groups archive

Milter-greylist

Index last updated: 2026-04-28 23:32 UTC

Thread

"Milter (greylist): timeout before data read" but milter does not die.

"Milter (greylist): timeout before data read" but milter does not die.

2006-12-08 by robert_schmidli

I've installed milter-greylist-3.0 on a debian sarge machine.  It's
compiled with the following options:

./configure --with-libspf2=/usr/lib --with-user=smmsp --enable-dnsrbl

I am getting the following in my syslog repeatedly:

Dec  8 07:03:26 debian sm-mta[12720]: kB7K3A2j012720: Milter
(greylist): timeout before data read
Dec  8 07:03:26 debian sm-mta[12720]: kB7K3A2j012720: Milter
(greylist): to error state

This message appears before any other messages when an incoming
message comes through.  As far as I can see, it occurs at the
following times:

1 When procmail picks up a message
2 When an incoming message comes from an SPF-compliant server
3 At other times when other messages arrive - seemingly randomly.

The problem is not consistent.  The curious thing is that as far as I
can see, milter-greylist continues to function normally.  It hasn't
crashed since I installed it about 6 days ago.

I only use milter-greylist to greylist messages from servers listed in
RBLs.  My system isn't under heavy load.  My "ulimit" is set as
"unlimited".  I use the libspf2-0 debian package for libspf.

The relevant lines in sendmail.mc:

dnl ## milter-greylist
INPUT_MAIL_FILTER(`greylist',`S=local:/var/run/milter-greylist/greylist.sock')
define(`confMILTER_MACROS_CONNECT', `j, {if_addr}')
define(`confMILTER_MACROS_HELO', `{verify}, {cert_subject}')
define(`confMILTER_MACROS_ENVFROM', `i, {auth_authen}')
define(`confMILTER_MACROS_ENVRCPT', `{greylist}')

I realise that there's a lot of previous correspondence about this
message, but it doesn't seem to cover this situation.

I might say that I've been very impressed with this package - with
sites listed in dnsbl.sorbs.net and bl.spamcop.net being greylisted
for 6 hours I've cut down on a lot of spam.

PS - with reference to my previous question about gentoo/amd64 - I've
fixed the problem by installing the masked
mail-filter/libspf2-1.2.5-r2 package.  The -r1 package is not
thread-safe on amd64 and there is a patch in the -r2 version.

Re: "Milter (greylist): timeout before data read" but milter does not die.

2006-12-09 by robert_schmidli

> 
> Dec  8 07:03:26 debian sm-mta[12720]: kB7K3A2j012720: Milter
> (greylist): timeout before data read
> Dec  8 07:03:26 debian sm-mta[12720]: kB7K3A2j012720: Milter
> (greylist): to error state
> 

It looks as if the problem is solved.  From my sendmail.mc:

INPUT_MAIL_FILTER(`greylist',`S=local:/var/run/milter-greylist/greylist.sock,\
F=, T=S:4m;R:4m')
define(`confMILTER_MACROS_CONNECT', `j, {if_addr}')
define(`confMILTER_MACROS_HELO', `{verify}, {cert_subject}')
define(`confMILTER_MACROS_ENVFROM', `i, {auth_authen}')
define(`confMILTER_MACROS_ENVRCPT', `{greylist}')

The "F=, T=S:4m;R:4m" sets the timeout.  I think this should be
included in the README.  This is documented in
http://www.sendmail.org/doc/sendmail-current/libmilter/docs/installation.html

I haven't had any error messages on my two machines since I did this
last night.

Move to quarantaine

This moves the raw source file on disk only. The archive index is not changed automatically, so you still need to run a manual refresh afterward.