From 91d772ab6f6e9f030561654d9dca693518dbd3c3 Mon Sep 17 00:00:00 2001
From: Vsevolod Stakhov <vsevolod@highsecure.ru>
Date: Fri, 29 Jan 2016 18:31:45 +0000
Subject: Fix rule when SMTP from is unavailable

---
 rules/misc.lua | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'rules')

diff --git a/rules/misc.lua b/rules/misc.lua
index 4bc8b3b90..095334cf9 100644
--- a/rules/misc.lua
+++ b/rules/misc.lua
@@ -195,7 +195,7 @@ rspamd_config.HEADER_FORGED_MDN = {
     if header_mdn and not header_rp  then return true end
     if header_rp  and not header_mdn then return false end
 
-    if header_mdn['addr'] ~= header_rp['addr'] then
+    if header_mdn and header_mdn['addr'] ~= header_rp['addr'] then
       return true
     end
 
-- 
cgit v1.2.3