Skip to main content

Name

pre_esmtp_auth

Synopsis

#include "hooks/core/pre_esmtp_auth.h"

| int **pre_esmtp_auth** ( | closure, |   | |   | ac, |   | |   | mc, |   | |   | c); |   |

void * <var class="pdparam">closure</var>; accept_construct * <var class="pdparam">ac</var>; message_construct * <var class="pdparam">mc</var>; validate_context * <var class="pdparam">c</var>;

| int **has_core_pre_esmtp_auth_hook** ( | ); |   |

| void **register_core_pre_esmtp_auth_hook_first** ( | hook, |   | |   | closure); |   |

ec_hook_core_pre_esmtp_auth_func_t <var class="pdparam">hook</var>; void *<var class="pdparam">closure</var>;

| void **register_core_pre_esmtp_auth_hook_last** ( | hook, |   | |   | closure); |   |

ec_hook_core_pre_esmtp_auth_func_t <var class="pdparam">hook</var>; void *<var class="pdparam">closure</var>;

| int **call_core_pre_esmtp_auth_hook** ( | ac, |   | |   | mc, |   | |   | c); |   |

accept_construct * <var class="pdparam">ac</var>; message_construct * <var class="pdparam">mc</var>; validate_context * <var class="pdparam">c</var>;

Description

**Configuration Change. ** This hook is available as of version 3.1.

Pre-auth validation. Allows us to preemptively succeed or fail authentication regardless of credentials. Return EC_AUTH_FAIL to fail authentication, EC_AUTH_OK to succeed authentication, -1 to have standard authentication run.

Was this page helpful?