Sendmail 8.13.3 Programmer's Guide
Manuals
Brands
HP Manuals
Software
HP-UX 11i v1 Networking Software
71
72
73
74
75
76
77
78
79
80
Table Of Contents
1 Introduction
Milter Overview
Milter-Related Files
Header Files
Library
Implementing Filtering Policies
Communication Between an MTA and Milter
Before You Begin
2 Milter APIs
Library Control APIs
The smfi_register() API
The smfi_setconn() API
The smfi_settimeout() API
The smfi_main() API
The smfi_opensocket() API
The smfi_setdbg() API
The smfi_stop() API
Data Access APIs
The smfi_getsymval() API
The smfi_getpriv() API
The smfi_setpriv() API
The smfi_setreply() API
The smfi_setmlreply() API
Message Modification APIs
The smfi_addheader() API
The smfi_chgheader() API
The smfi_insheader() API
The smfi_addrcpt() API
The smfi_delrcpt() API
The smfi_replacebody() API
Other Message Handling APIs
The smfi_progress() API
The smfi_quarantine() API
Callbacks
The xxfi_connect() Callback
The xxfi_helo() Callback
The xxfi_envfrom() Callback
The xxfi_envrcpt() Callback
The xxfi_header() Callback
The xxfi_eoh() Callback
The xxfi_body() Callback
The xxfi_eom() Callback
The xxfi_abort() Callback
The xxfi_close() Callback
3 Control Flow of Milter APIs
Call Order Sequence
Initialization Parameters for Filter Applications
Sample Filter Pseudocode
Multithreading
Resource Management
Signal Handling
4 Configuring and Compiling Milter APIs
Compiling and Installing Your Filter
Configuring Milter in Sendmail
5 Sample Program
Milter Sample Program
Chapter 5
63
5
Sample Program
This chapter contains a sample C program for a filter application.
1
...
...
73
74
75
76
77
...
...
86