forked from simta/simta
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmx.h
More file actions
35 lines (30 loc) · 855 Bytes
/
mx.h
File metadata and controls
35 lines (30 loc) · 855 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#define RBL_UNKNOWN 0
#define RBL_ERROR 1
#define RBL_NOT_FOUND 2
#define RBL_BLOCK 3
#define RBL_ACCEPT 4
#define RBL_LOG_ONLY 5
#define S_MISMATCH "Mismatch"
#define S_ACCEPT "Accept"
#define S_BLOCK "Block"
#define S_LOG_ONLY "Log_Only"
#define REVERSE_MATCH 0
#define REVERSE_ERROR 1
#define REVERSE_UNKNOWN 2
#define REVERSE_MISMATCH 3
#define REVERSE_UNRESOLVED 4
struct rbl {
struct rbl *rbl_next;
int rbl_type;
char *rbl_type_text;
char *rbl_domain;
char *rbl_url;
};
struct dnsr_result * get_a( char * );
struct dnsr_result * get_mx( char * );
int check_reverse( char *, struct in_addr * );
int check_hostname( char * );
struct simta_red *host_local( char * );
int rbl_add( struct rbl**, int, char *, char * );
int rbl_check( struct rbl *, struct in_addr *, char *, char *,
struct rbl**, char ** );