Sendmail 8.13.3 Programmer's Guide

Milter APIs
Callbacks
Chapter 2 39
SMFIF_ACCEPT Accepts the message. The filter application does
not call the xxfi_abort() callback to abort the
message.
The xxfi_envrcpt() Callback
The xxfi_envrcpt() API handles the envelope RCTP command.
xxfi_envrcpt() returns SMFIS_CONTINUE to the calling filter
application. You can call xxfi_envrcpt() once for every recipient. If a
message contains multiple recipients, you can call xxfi_envrcpt()
multiple times, immediately after the xxfi_envfrom() callback.
The declaration of xxfi_envrcpt() is as follows:
#include <libmilter/mfapi.h>
sfsistat (*xxfi_envrcpt)(
SMFICTX * ctx,
char ** argv
);
Arguments
You must call xxfi_envrcpt() with the following arguments:
ctx Specifies an opaque context structure.
argv Specifies null-terminated SMTP command arguments.
argv[0] denotes the address of the recipient. Later
arguments, such as argv[1], argv[2], denote ESMTP
arguments.
For more information on ESTMP responses, see RFC
1869 (SMTP Service Extensions).
Return Values
xxfi_envrcpt() returns the following values:
SMFIS_TEMPFAIL Fails temporarily for a recipient but the filter
application processes further recipients because
the filter application does not call the
xxfi_abort() callback to abort the message.
SMFIS_REJECTS Rejects a recipient but the filter application
processes further recipients because the filter
application does not call the xxfi_abort()
callback to abort the message.