Disable EXIM_MONITOR
[exim.git] / src / src / spf.h
CommitLineData
8523533c
TK
1/*************************************************
2* Exim - an Internet mail transport agent *
3*************************************************/
8e669ac1 4
8523533c
TK
5/* Experimental SPF support.
6 Copyright (c) Tom Kistner <tom@duncanthrax.net> 2004
80fea873
JH
7 License: GPL
8 Copyright (c) The Exim Maintainers 2016
9*/
8523533c 10
7952eef9 11#ifdef SUPPORT_SPF
8523533c 12
384152a6 13/* Yes, we do have ns_type. spf.h redefines it if we don't set this. Doh */
bda76da8 14#if !defined(HAVE_NS_TYPE) && defined(NS_INADDRSZ)
80fea873 15# define HAVE_NS_TYPE
6d06cf48 16#endif
8523533c 17#include <spf2/spf.h>
384152a6 18
8523533c
TK
19#include <spf2/spf_dns_resolv.h>
20#include <spf2/spf_dns_cache.h>
21
22typedef struct spf_result_id {
23 uschar *name;
24 int value;
25} spf_result_id;
26
8523533c 27/* prototypes */
73ec116f
JH
28BOOL spf_init(void);
29BOOL spf_conn_init(uschar *, uschar *);
eb52e2cb 30int spf_process(const uschar **, uschar *, int);
65a7d8c3
NM
31
32#define SPF_PROCESS_NORMAL 0
33#define SPF_PROCESS_GUESS 1
34#define SPF_PROCESS_FALLBACK 2
8523533c
TK
35
36#endif