Milter smfi_progress()

Buy a little extra time V8.13 and later

The smfi_progress() routine causes sendmail to reset its timeouts so that your end-of-message routine has plenty of time to finish.

If your end-of-message routine requires far too much time to finish and sometimes times out, you may call smfi_progress() to gain any extra time needed to finish. The single argument to smfi_progress() is the ctx pointer:

... a great deal of processing
smfi_progress(ctx);
... more time-consuming processing

In general, it is best to write your end-of-message routines to be super-swift, rather than requesting extra time from sendmail. When you request extra time, you risk that the connecting host will time out, causing all your work to be wasted.

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.