On Feb 02 2000, [EMAIL PROTECTED] wrote:
> Hello all qmailers!
>
> I'm new to qmail, so I'm still getting my sea legs. One question that has
> come up is how does qmail handle delivery problems and what schedule does it
> use?
>
> I think I've found the retry schedule...
>
> t(0) = start time [secs]
> t(i) = t(0) + (sqrt(t(i - 1) - t(0)) + 10)^2 [Local]
> t(i) = t(0) + (sqrt(t(i - 1) - t(0)) + 20)^2 [Remote]
Yes, that's right. But what about writing it this way
t(i) = t(0) + (c*i)^2,
where c = 10 or 20, for local and remote deliveries? This
shows more clearly the so often claimed quadratic delivery
behaviour that qmail possesses.
This is basically what is computed by the function
next_retry() in the qmail-send.c source.
> But I can't seem to find how qmail decides to give up on delivering
> a msg. My experience is that it's around 3 days, but I'd like to
> know exactly. Anyone know where/how this is handled ?
From qmail-send.c:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
(...)
int lifetime = 604800;
(...)
if (jo[d[c][delnum].j].flagdying)
{
dline[c].s[1] = 'D';
--dline[c].len;
while (!stralloc_cats(&dline[c],"I'm not going to try again; this message
has been in the queue too long.\n")) nomem();
while (!stralloc_0(&dline[c])) nomem();
}
(...)
jo[pass[c].j].retry = nextretry(birth,c);
jo[pass[c].j].flagdying = (recent > birth + lifetime);
(...)
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Well, as an aside, what do you guys use to mirror cr.yp.to? I
tried using some programs, but they don't understand djb's ftp
listing format... :-(
I tried using Uwe Ohse's ftpcopy, but it still has some bugs
(which do not bother me very much, since I can tolerate them),
but it is slow. :-(
[]s, Roger...
--
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Rogerio Brito - [EMAIL PROTECTED] - http://www.ime.usp.br/~rbrito/
Nectar homepage: http://www.linux.ime.usp.br/~rbrito/opeth/
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=