Milter smfi_settimeout()
Change Milter to sendmail timeout All sendmail versions
Two different sets of timeouts are associated with
your Milter. The time sendmail
spends waiting for your Milter is hardcoded inside
sendmail. The time your
Milter spends waiting for
sendmail is set with this
smfi_settimeout
() routine.
The smfi_settimeout()
routine is called
like this:
ret
= smfi_settimeout(secs
);
Here, secs
is the number of
seconds your Milter should ever wait for a reply
from sendmail. The default is
7,210 seconds (roughly two hours). If you wish to
change that timeout, you may do so from within any
xxfi_
function at any time by specifying a new value with
this smfi_settimeout
() routine.
As a special case, a secs
of zero or less cancels all timeouts and causes your
Milter to wait forever. The returned value (the
ret
) is always MI_SUCCESS
.
Get sendmail, 4th Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.