HPlogo Sendmail 8.13.3 Programmer's Guide: HP-UX 11i v1 and HP-UX 11i v2 > Chapter 3 Control Flow of Milter APIs

Initialization Parameters for Filter Applications

» 

Technical documentation

Complete book in PDF

 » Table of Contents

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”.

  • The socket address to be used when communicating with an MTA. You must initialize these parameters. For more information, see “The smfi_setconn() API”.

  • 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”.

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.