Commit | Line | Data |
---|---|---|
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 | |
7 | License: GPL */ | |
8 | ||
9 | #ifdef EXPERIMENTAL_SPF | |
10 | ||
384152a6 | 11 | /* Yes, we do have ns_type. spf.h redefines it if we don't set this. Doh */ |
6d06cf48 | 12 | #ifndef HAVE_NS_TYPE |
384152a6 | 13 | #define HAVE_NS_TYPE |
6d06cf48 | 14 | #endif |
8523533c | 15 | #include <spf2/spf.h> |
384152a6 | 16 | |
8523533c TK |
17 | #include <spf2/spf_dns_resolv.h> |
18 | #include <spf2/spf_dns_cache.h> | |
19 | ||
20 | typedef struct spf_result_id { | |
21 | uschar *name; | |
22 | int value; | |
23 | } spf_result_id; | |
24 | ||
8523533c TK |
25 | /* prototypes */ |
26 | int spf_init(uschar *,uschar *); | |
65a7d8c3 NM |
27 | int spf_process(uschar **, uschar *, int); |
28 | ||
29 | #define SPF_PROCESS_NORMAL 0 | |
30 | #define SPF_PROCESS_GUESS 1 | |
31 | #define SPF_PROCESS_FALLBACK 2 | |
8523533c TK |
32 | |
33 | #endif |