aboutsummaryrefslogtreecommitdiffstats
path: root/src/libserver/spf.h
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2016-01-15 22:06:27 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2016-01-15 22:06:27 +0000
commit6ef35e3b2219338be95a1f1fc31f77c5c8cbed29 (patch)
treecfeb39368ff3a43bf12e0f268a020a90afb2a297 /src/libserver/spf.h
parent734034db2f98ae71cc7b53ad4d8d56b295a72a0b (diff)
downloadrspamd-6ef35e3b2219338be95a1f1fc31f77c5c8cbed29.tar.gz
rspamd-6ef35e3b2219338be95a1f1fc31f77c5c8cbed29.zip
Ignore SPF results in case of DNS failure
Diffstat (limited to 'src/libserver/spf.h')
-rw-r--r--src/libserver/spf.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/libserver/spf.h b/src/libserver/spf.h
index 9e875b515..25905f894 100644
--- a/src/libserver/spf.h
+++ b/src/libserver/spf.h
@@ -36,6 +36,7 @@ typedef enum spf_action_e {
#define RSPAMD_SPF_FLAG_VALID (1 << 5)
#define RSPAMD_SPF_FLAG_REFRENCE (1 << 6)
#define RSPAMD_SPF_FLAG_REDIRECT (1 << 7)
+#define RSPAMD_SPF_FLAG_TEMPFAIL (1 << 8)
struct spf_addr {
guchar addr6[sizeof (struct in6_addr)];
@@ -56,6 +57,7 @@ struct spf_addr {
struct spf_resolved {
gchar *domain;
guint ttl;
+ gboolean failed;
GArray *elts; /* Flat list of struct spf_addr */
ref_entry_t ref; /* Refcounting */
};