Yahoo Groups archive

Milter-greylist

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

Message

RE: [milter-greylist] Volume 2

2004-10-28 by Sutherland, James

Geez, I can't keep milter-greylist running for more then ten minutes
this morning.  It starts into the "Milter read(greylist): timeout before
data read" almost at once after I start it.
 
I put that code in, here's what I got:
Oct 28 08:10:31 hns1 milter-greylist: [ID 799890 mail.info] dumpfd = 15
Oct 28 08:15:39 hns1 milter-greylist: [ID 799890 mail.info] dumpfd = 348
Oct 28 08:15:39 hns1 milter-greylist: [ID 180808 mail.error] dumpfd =
348, dump = 0, errno = 0
Oct 28 08:15:39 hns1 milter-greylist: [ID 180808 mail.error] dumpfd =
348, dump = 0, errno = 0
Oct 28 08:15:39 hns1 milter-greylist: [ID 180808 mail.error] dumpfd =
348, dump = 0, errno = 0
Oct 28 08:15:39 hns1 milter-greylist: [ID 180808 mail.error] dumpfd =
348, dump = 0, errno = 0
Oct 28 08:15:39 hns1 milter-greylist: [ID 525239 mail.error] cannot
write dumpfile "/var/milter-greylist/greylist.db-XXG7aOsh": Error 0
Oct 28 08:15:39 hns1 milter-greylist: [ID 525239 mail.error] cannot
write dumpfile "/var/milter-greylist/greylist.db-XXG7aOsh": Error 0
Oct 28 08:15:39 hns1 milter-greylist: [ID 525239 mail.error] cannot
write dumpfile "/var/milter-greylist/greylist.db-XXG7aOsh": Error 0
Oct 28 08:15:39 hns1 milter-greylist: [ID 525239 mail.error] cannot
write dumpfile "/var/milter-greylist/greylist.db-XXG7aOsh": Error 0
Oct 28 08:15:39 hns1 milter-greylist: [ID 421540 mail.info] Final
database dump: no change to dump
Oct 28 08:15:39 hns1 milter-greylist: [ID 146194 mail.info] Exitting

________________________________

From: manu@... [mailto:manu@...] 
Sent: Thursday, October 28, 2004 12:30 AM
To: milter-greylist@yahoogroups.com
Subject: Re: [milter-greylist] Volume 2


Sutherland, James <jsutherl@...> wrote:

> Oct 27 19:42:37 hns1 milter-greylist: [ID 799890 mail.info] dumpfd =
144
> Oct 27 19:47:47 hns1 milter-greylist: [ID 799890 mail.info] dumpfd =
91
> Oct 27 19:52:56 hns1 milter-greylist: [ID 799890 mail.info] dumpfd =
65
> Oct 27 19:58:01 hns1 milter-greylist: [ID 799890 mail.info] dumpfd =
87
> Oct 27 20:03:06 hns1 milter-greylist: [ID 799890 mail.info] dumpfd =
154
> Oct 27 20:08:12 hns1 milter-greylist: [ID 799890 mail.info] dumpfd =
280
> Oct 27 20:08:12 hns1 milter-greylist: [ID 525239 mail.error] cannot
write
> dumpfile "/var/milter-greylist/greylist.db-XXYsayUQ": Error 0

Here is the code that causes this failure:

        if ((dump = fdopen(dumpfd, "w")) == NULL) {
                syslog(LOG_ERR, "cannot write dumpfile \"%s\": %s",
                    newdumpfile, strerror(errno));
                exit(EX_OSERR);
        } 

So your OS was not able to open that file, but doesn't tell us why
(errno says no error occured). You can add this before the syslog call:

                syslog(LOG_ERR, "dumpfd = %d, dump = %p, errno = %d\n",
                    dumpfd, dump, errno); 

to check that it's not strerror() that is misbehaving.

According to the X/Open spec:
http://www.opengroup.org/onlinepubs/007908799/xsh/fdopen.html
"Upon successful completion, fdopen() returns a pointer to a stream.
Otherwise, a null pointer is returned and errno is set to indicate the
error. "

So I'd say fdopen() does not behaves as expected. Is this a bug in your
OS?  

-- 
Emmanuel Dreyfus
Il y a 10 sortes de personnes dans le monde: ceux qui comprennent 
le binaire et ceux qui ne le comprennent pas.
manu@...


Yahoo! Groups Sponsor	
 
<http://us.ard.yahoo.com/SIG=129fkav8h/M=281955.5530326.6602771.3001176/
D=groups/S=1707281942:HM/EXP=1099035081/A=2343726/R=0/SIG=12ieaqo3j/*htt
p://clk.atdmt.com/VON/go/yhxxxvon01900091von/direct/01/&time=10989486810
60265>
<http://us.ard.yahoo.com/SIG=129fkav8h/M=281955.5530326.6602771.3001176/
D=groups/S=1707281942:HM/EXP=1099035081/A=2343726/R=1/SIG=12ieaqo3j/*htt
p://clk.atdmt.com/VON/go/yhxxxvon01900091von/direct/01/&time=10989486810
60265> 

Get unlimited calls to

U.S./Canada

 
<http://view.atdmt.com/VON/view/yhxxxvon01900091von/direct/01/&time=1098
948681060265> 
 
<http://us.adserver.yahoo.com/l?M=281955.5530326.6602771.3001176/D=group
s/S=:HM/A=2343726/rand=300270951> 	

________________________________

Yahoo! Groups Links


*	To visit your group on the web, go to:
	http://groups.yahoo.com/group/milter-greylist/
	  
*	To unsubscribe from this group, send an email to:
	milter-greylist-unsubscribe@yahoogroups.com
<mailto:milter-greylist-unsubscribe@yahoogroups.com?subject=Unsubscribe>

	  
*	Your use of Yahoo! Groups is subject to the Yahoo! Terms of
Service <http://docs.yahoo.com/info/terms/> .

Attachments

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.