#define RSPAMD_MEMPOOL_MTA_TAG "MTA-Tag"
#define RSPAMD_MEMPOOL_MTA_NAME "MTA-Name"
#define RSPAMD_MEMPOOL_SPF_DOMAIN "spf_domain"
+#define RSPAMD_MEMPOOL_SPF_RECORD "spf_record"
#define RSPAMD_MEMPOOL_PRINCIPAL_RECIPIENT "principal_recipient"
#define RSPAMD_MEMPOOL_PROFILE "profile"
#define RSPAMD_MEMPOOL_MILTER_REPLY "milter_reply"
LL_FOREACH (reply->entries, elt) {
if (start_spf_parse (rec, resolved, elt->content.txt.data)) {
ret = TRUE;
+ rspamd_mempool_set_variable (rec->task->task_pool,
+ RSPAMD_MEMPOOL_SPF_RECORD,
+ rspamd_mempool_strdup (rec->task->task_pool,
+ elt->content.txt.data), NULL);
break;
}
}
if (resolved) {
if (!spf_process_txt_record (rec, resolved, reply)) {
resolved = g_ptr_array_index(rec->resolved, 0);
+
if (rec->resolved->len > 1) {
addr = g_ptr_array_index(resolved->elts, 0);
if ((reply->code == RDNS_RC_NOREC || reply->code == RDNS_RC_NXDOMAIN)