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 |
---|---|---|
|
Milter smfi_addheader() on page 1184 |
Conditionally add a header. |
|
Milter smfi_addrcpt() on page 1185 |
Add envelope recipient. |
|
Milter smfi_addrcpt_par() on page 1186 |
Add envelope recipient with ESMTP arguments (V8.14 and later). |
|
Milter smfi_chgfrom() on page 1187 |
Change envelope sender with ESMTP arguments (V8.14 and later). |
|
Milter smfi_chgheader() on page 1188 |
Change or delete a header. |
|
Milter smfi_delrcpt() on page 1189 |
Delete envelope recipient. |
|
Milter smfi_getpriv() on page 1189 |
Fetch private context data pointer. |
|
Milter smfi_getsymval() on page 1190 |
Fetch a sendmail macro’s value. |
|
Milter smfi_insheader() on page 1192 |
Unconditionally insert a header (V8.13 and later). |
|
Milter smfi_main() on page 1193 |
Run the Milter. |
|
Milter smfi_opensocket() on page 1193 |
Create the interface socket (V8.13 and above). |
|
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.