Commit | Line | Data |
---|---|---|
420a0d19 CE |
1 | /************************************************* |
2 | * Exim - an Internet mail transport agent * | |
3 | *************************************************/ | |
4 | ||
5 | /* Experimental SPF support. | |
6 | Copyright (c) Tom Kistner <tom@duncanthrax.net> 2004 | |
2813c06e CE |
7 | License: GPL |
8 | Copyright (c) The Exim Maintainers 2016 | |
9 | */ | |
420a0d19 CE |
10 | |
11 | #ifdef EXPERIMENTAL_SPF | |
12 | ||
13 | /* Yes, we do have ns_type. spf.h redefines it if we don't set this. Doh */ | |
14 | #ifndef HAVE_NS_TYPE | |
2813c06e | 15 | # define HAVE_NS_TYPE |
420a0d19 CE |
16 | #endif |
17 | #include <spf2/spf.h> | |
18 | ||
19 | #include <spf2/spf_dns_resolv.h> | |
20 | #include <spf2/spf_dns_cache.h> | |
21 | ||
22 | typedef struct spf_result_id { | |
23 | uschar *name; | |
24 | int value; | |
25 | } spf_result_id; | |
26 | ||
27 | /* prototypes */ | |
28 | int spf_init(uschar *,uschar *); | |
2813c06e | 29 | int spf_process(const uschar **, uschar *, int); |
420a0d19 CE |
30 | |
31 | #define SPF_PROCESS_NORMAL 0 | |
32 | #define SPF_PROCESS_GUESS 1 | |
33 | #define SPF_PROCESS_FALLBACK 2 | |
34 | ||
35 | #endif |