ze-filter  (ze-filter-0.8.0-develop-180218)
ze-mxcheck.c File Reference
#include <ze-sys.h>
#include <libze.h>
#include <ze-filter.h>
#include <ze-filter-data.h>
#include <ze-mxcheck.h>

Go to the source code of this file.

Classes

struct  MX_T
 

Macros

#define SZ_NAME   64
 
#define MX_OK(x)   (strcasecmp(x, "OK") == 0)
 
#define MSG_BAD_MX(a, b)
 

Typedefs

typedef struct MX_T MX__T
 

Functions

int check_sender_mx (SMFICTX *ctx, char *mail_host)
 

Variables

int mx_check_level = 1
 

Macro Definition Documentation

◆ MSG_BAD_MX

#define MSG_BAD_MX (   a,
 
)
Value:
do { \
ZE_MessageInfo(9, "%s BAD MXs for domain %s : %s (%s)", \
CONNID_STR(priv->id), a, b, priv->peer_addr); \
} while (0)
#define CONNID_STR(connid)
Definition: ze-filter.h:113

Definition at line 63 of file ze-mxcheck.c.

◆ MX_OK

#define MX_OK (   x)    (strcasecmp(x, "OK") == 0)

Definition at line 56 of file ze-mxcheck.c.

◆ SZ_NAME

#define SZ_NAME   64

Definition at line 36 of file ze-mxcheck.c.

Typedef Documentation

◆ MX__T

typedef struct MX_T MX__T

Function Documentation

◆ check_sender_mx()

int check_sender_mx ( SMFICTX *  ctx,
char *  mail_host 
)

Definition at line 72 of file ze-mxcheck.c.

Variable Documentation

◆ db_open

ZEBT_T db_open

Definition at line 52 of file ze-mxcheck.c.

◆ last

time_t last

Definition at line 47 of file ze-mxcheck.c.

◆ mutex

pthread_mutex_t mutex

Definition at line 50 of file ze-mxcheck.c.

◆ mx_check_level

int mx_check_level = 1

Definition at line 69 of file ze-mxcheck.c.

◆ nb

int nb

Definition at line 48 of file ze-mxcheck.c.

◆ ok

bool ok

Definition at line 46 of file ze-mxcheck.c.