Sendmail 8.13.3 Programmer's Guide
Manuals
Brands
HP Manuals
Software
HP-UX 11i v1 Networking Software
61
62
63
64
65
66
67
68
69
70
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
Configuring and Compiling Milter APIs
Chapter 4
56
This chapter discusses the following topics:
•
“Compiling and Installing Y
our Filter” on page 57
•
“Configuring Milter in Sendmail” on page 58
1
...
...
66
67
68
69
70
...
...
86