ec_log_rejection2

March 26, 2020

Name

ec_log_rejection2 — Records rejection of an incoming message

Synopsis

#include "log.h"

| void **ec_log_rejection2** ( | now, |   |
|   | ac, |   |
|   | ctx, |   |
|   | msg, |   |
|   | phase, |   |
|   | format, |   |
|   | ); |   |

struct timeval * <var class="pdparam">now</var>;
accept_construct * <var class="pdparam">ac</var>;
validate_context * <var class="pdparam">ctx</var>;
ec_message * <var class="pdparam">msg</var>;
int <var class="pdparam">phase</var>;
const char * <var class="pdparam">format</var>;
<var class="pdparam">...</var>;

Description

**Configuration Change. ** This feature is available starting from Momentum 3.5.

Records rejection of an incoming message.

Parameters

now

A pointer to a timeval struct, which may be NULL.

ac

An accept construct. For a description of this data type see “accept_construct”.

dr

A domain record. For a description of this data type see “domain_record”.

msg

An ec_message. For a description of this data type see “ec_message”.

phase

This parameter corresponds to the message state. it must be one of the following constants:

#define MC_STATE_START 0
#define MC_STATE_START_RESPONSE 1
#define MC_STATE_EHLO 2
#define MC_STATE_EHLO_RESPONSE 3
#define MC_STATE_MAILFROM 4
#define MC_STATE_MAILFROM_RESPONSE 5
#define MC_STATE_RCPTTO 6
#define MC_STATE_RCPTTO_RESPONSE 7
#define MC_STATE_DATA 8
#define MC_STATE_BODY 9
#define MC_STATE_BODY_RESPONSE 10
#define MC_STATE_ASYNC_BODY_RESPONSE 11
#define MC_STATE_OK 12 /* preparing to send OK after data */
#define MC_STATE_RELAYING_DENIED 13
#define MC_STATE_EXTENSION_1 14
#define MC_STATE_EXTENSION_2 15
#define MC_STATE_EXTENSION_3 16
#define MC_STATE_EXTENSION_4 17
#define MC_STATE_CONCURRENCY_LIMIT 18
#define MC_STATE_RCPTTO_LIST_RESPONSE 19
#define MC_STATE_RCPTTO_LIST_FINAL_RESPONSE 20
#define MC_STATE_SETUP 21
#define MC_STATE_MCMT_FIXUP 22
#define MC_STATE_COUNT 23
format

The format string.

The variable argument.

Return Values

This function returns void.

Threading

It is legal to call this function in any thread.

See Also

For more information on log formats see ec_logger – Momentum-Style Logging and Log Formats.