Qsmtp  0.23svn
include/antispam.h
Go to the documentation of this file.
00001 
00004 #ifndef ANTISPAM_H
00005 #define ANTISPAM_H
00006 
00007 #include <sys/types.h>
00008 
00009 /* qsmtpd/antispam.c */
00010 
00011 extern void dotip6(char *);
00012 extern int check_rbl(char *const *, char **);
00013 extern void tarpit(void);
00014 extern int domainmatch(const char *fqdn, const size_t len, const char **list);
00015 extern int lookupipbl(int);
00016 
00017 /* qsmtpd/spf.c */
00018 
00019 extern int check_host(const char *);
00020 extern int spfreceived(int, const int);
00021 
00022 #define SPF_NONE        0       
00023 #define SPF_PASS        1       
00024 #define SPF_NEUTRAL     2       
00025 #define SPF_SOFTFAIL    3       
00026 #define SPF_FAIL_PERM   4       
00027 #define SPF_FAIL_MALF   5       
00028 #define SPF_TEMP_ERROR  7       
00029 #define SPF_HARD_ERROR  8       
00030 #define SPF_IGNORE      15      
00035 #define SPF_FAIL(x) (((x) == SPF_FAIL_PERM) || ((x) == SPF_FAIL_MALF))
00036 
00037 #endif