Sendmail 8.13.3 Programmer's Guide

Control Flow of Milter APIs
Initialization Parameters for Filter Applications
Chapter 3 49
Initialization Parameters for Filter
Applications
In addition to initializing libmilter, a filter application must initialize
the following parameters before calling the smfi_main() API:
The callbacks the filter program requires to call and the types of
message modification you intend to perform. You must initializing
these parameters. For more information, see “The smfi_register()
API” on page 11.
The socket address to be used when communicating with an MTA.
You must initialize these parameters. For more information, see “The
smfi_setconn() API” on page 13.
The number of seconds the filter application must wait for MTA
connections before timing out. You can optionally initialize this
parameter. For more information, see “The smfi_settimeout() API” on
page 14.
A subsequent call to the smfi_main() API fails if the filter application
fails to initialize libmilter and if one or more parameters passed by the
filter application are invalid.