smfi_ Routine Reference

A Milter is composed of two kinds of function calls. Those that you write are called the xxfi_ routines and are described in the next section. Those that your written functions call in the Milter library are the smfi_ routines, described here. The complete list of smfi_ routines is shown in Table 26-8, which is followed by a brief reference section for each routine.

Table 26-8. Milter library smfi_routines

smfi routine

§

Description

smfi_addheader()

Milter smfi_addheader() on page 1184

Conditionally add a header.

smfi_addrcpt()

Milter smfi_addrcpt() on page 1185

Add envelope recipient.

smfi_addrcpt_par()

Milter smfi_addrcpt_par() on page 1186

Add envelope recipient with ESMTP arguments (V8.14 and later).

smfi_chgfrom()

Milter smfi_chgfrom() on page 1187

Change envelope sender with ESMTP arguments (V8.14 and later).

smfi_chgheader()

Milter smfi_chgheader() on page 1188

Change or delete a header.

smfi_delrcpt()

Milter smfi_delrcpt() on page 1189

Delete envelope recipient.

smfi_getpriv()

Milter smfi_getpriv() on page 1189

Fetch private context data pointer.

smfi_getsymval()

Milter smfi_getsymval() on page 1190

Fetch a sendmail macro’s value.

smfi_insheader()

Milter smfi_insheader() on page 1192

Unconditionally insert a header (V8.13 and later).

smfi_main()

Milter smfi_main() on page 1193

Run the Milter.

smfi_opensocket()

Milter smfi_opensocket() on page 1193

Create the interface socket (V8.13 and above).

smfi_progress()

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.