]> source.dussan.org Git - rspamd.git/commitdiff
[Fix] External_relay: Remove useless check of the map value
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Wed, 16 Feb 2022 21:18:47 +0000 (21:18 +0000)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Wed, 16 Feb 2022 21:19:21 +0000 (21:19 +0000)
Issue: #4080

src/plugins/lua/external_relay.lua

index 8b20bbe82ec6e788d4a1b869be3a4a2d5450050a..31f6a103704a28ed8e16359f06cbb7812ece29a4 100644 (file)
@@ -159,11 +159,6 @@ strategies.hostname_map = function(rule)
       return
     end
 
-    if hostname_map:get_key(from_hn) ~= 'direct' then
-      lua_util.debugm(N, task, 'sending hostname (%s) is not a direct relay', from_hn)
-      return
-    end
-
     local rcvd_hdrs = task:get_received_headers()
     -- Try find sending hostname in Received headers
     for _, rcvd in ipairs(rcvd_hdrs) do