Qsmtp  0.30dev
antispam.h
Go to the documentation of this file.
1 
4 #ifndef ANTISPAM_H
5 #define ANTISPAM_H
6 
7 #include <sys/types.h>
8 
9 /* qsmtpd/antispam.c */
10 
11 extern void dotip6(char *);
12 extern int check_rbl(char *const *, char **) __attribute__ ((nonnull (1)));
13 extern void tarpit(void);
14 extern int domainmatch(const char *fqdn, const size_t len, const char **list);
15 extern int lookupipbl(int);
16 
17 /* qsmtpd/spf.c */
18 
19 extern int check_host(const char *);
20 extern int spfreceived(int, const int);
21 
23  SPF_NONE = 0,
24  SPF_PASS = 1,
27  SPF_FAIL = 4,
31  SPF_IGNORE = 15
32 };
33 
37 #define SPF_IS_FAILURE(x) (((x) == SPF_FAIL) || ((x) == SPF_PERMERROR))
38 
39 #endif
int lookupipbl(int)
Definition: antispam.c:269
int spfreceived(int, const int)
Definition: spf.c:39
Definition: antispam.h:26
void tarpit(void)
Definition: antispam.c:152
spf_eval_result
Definition: antispam.h:22
Definition: antispam.h:29
int check_rbl(char *const *, char **)
Definition: antispam.c:92
Definition: antispam.h:23
Definition: antispam.h:24
void dotip6(char *)
Definition: antispam.c:49
int check_host(const char *)
Definition: spf.c:1999
Definition: antispam.h:31
int domainmatch(const char *fqdn, const size_t len, const char **list)
Definition: antispam.c:246
Definition: antispam.h:28
Definition: antispam.h:27
Definition: antispam.h:30
Definition: antispam.h:25