xxfi_envfrom callback Function
Purpose
The xxfi_envfrom callback
function handles the MAIL
(envelope sender)
command.
Syntax
#include <libmilter/mfapi.h>
sfsistat (*xxfi_envfrom)(
SMFICTX *ctx,
char **argv
);
Description
The xxfi_envfrom callback
function is called when the client uses the DATA
command
and returns the SMFIS_CONTINUE flag.
Note: For more details
on ESMTP responses, see RFC
1869.
Arguments
Item | Description |
---|---|
ctx | The opaque context structure is maintained in the libmilter parameter. |
argv | The null-terminated SMTP command arguments; argv[0] is
guaranteed to be the sender address. Later arguments are the extended
simple mail transfer protocol (ESMTP) arguments. |
Return values
Item | Description |
---|---|
SMFIS_TEMPFAIL |
The sender and the message are rejected with a temporary error; a new sender (and hence a new message) might later be specified and the xxfi_abort callback function is not called. |
SMFIS_REJECT |
The sender and the message are rejected; a new sender and message might be specified and the xxfi_abort callback function is not called. |
SMFIS_DISCARD |
The message is accepted and discarded, and the xxfi_abort callback function is not called. |
SMFIS_ACCEPT |
The message is accepted and the xxfi_abort callback function is not called. |