xxfi_unknown callback Function
Purpose
The xxfi_unknown callback function handles the unknown and unimplemented simple mail transfer protocol (SMTP) commands.
Syntax
#include <libmilter/mfapi.h>
sfsistat (*xxfi_unknown)(
SMFICTX *ctx,
const char *arg
);
Description
The xxfi_unknown callback function is called when the client uses an SMTP command that is either unknown or not implemented by the mail transfer agent (MTA) and returns the SMFIS_CONTINUE flag.
Note: The server always rejects
the SMTP command. It is only possible to return a different error
code.
Arguments
Item | Description |
---|---|
ctx | The opaque context structure is maintained in the libmilter parameter. |
arg | The SMTP command including all arguments. |
Return values
Item | Description |
---|---|
SMFIS_TEMPFAIL |
The command is rejected with a temporary error. |
SMFIS_REJECT |
The command is rejected. |