Sendmail 8.13.3 Programmer's Guide
Table Of Contents

Milter APIs
Data Access APIs
Chapter 218
Data Access APIs
You can call the data access APIs from within the filter-defined callbacks
to access information about the current connection or message.
Following are the data access APIs:
• smfi_getsymval()
• smfi_getpriv()
• smfi_setpriv()
• smfi_setreply()
• smfi_setmlreply()
The following sections discuss the data access functions in detail.
The smfi_getsymval() API
You can use the smfi_getsymval() API to get the value of a Sendmail
macro. The macros that are defined depend on when smfi_getsymval()
is called. You can call smfi_getsymval() from any of the xxfi_*
callbacks.
The declaration of smfi_getsymval() is as follows:
#include <libmilter/mfapi.h>
char* smfi_getsymval(
SMFICTX *ctx,
char *symname
);
Table 2-1 lists the Sendmail macros that you can use with the xxfi_*
callbacks.
Table 2-2 Sendmail Macros
xxfi_*
Callbacks
Sendmail Macros
xxfi_connect() daemon_name, if_name, if_addr, j, _
xxfi_helo() tls_version, cipher, cipher_bits,
cert_subject, cert_issuer