Qsmtp  0.37
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
spfreceived
int spfreceived(int, const int)
Definition: spf.c:46
SPF_PASS
Definition: antispam.h:24
SPF_TEMPERROR
Definition: antispam.h:29
tarpit
void tarpit(void)
Definition: antispam.c:156
SPF_FAIL
Definition: antispam.h:27
SPF_PERMERROR
Definition: antispam.h:28
domainmatch
int domainmatch(const char *fqdn, const size_t len, const char **list)
Definition: antispam.c:250
dotip6
void dotip6(char *)
Definition: antispam.c:53
check_rbl
int check_rbl(char *const *, char **)
Definition: antispam.c:96
SPF_NEUTRAL
Definition: antispam.h:25
SPF_DNS_HARD_ERROR
Definition: antispam.h:30
SPF_IGNORE
Definition: antispam.h:31
check_host
int check_host(const char *)
Definition: spf.c:2010
spf_eval_result
spf_eval_result
Definition: antispam.h:22
SPF_SOFTFAIL
Definition: antispam.h:26
SPF_NONE
Definition: antispam.h:23
lookupipbl
int lookupipbl(int)
Definition: antispam.c:273