Browse Source

[Minor] Use the original address in authentication results

tags/3.0
Vsevolod Stakhov 2 years ago
parent
commit
936231df29
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      lualib/lua_auth_results.lua

+ 2
- 2
lualib/lua_auth_results.lua View File

@@ -197,7 +197,7 @@ local function gen_auth_results(task, settings)
-- Main type
local sender
local sender_type
local smtp_from = task:get_from('smtp')
local smtp_from = task:get_from({'smtp','orig'})

if smtp_from and
smtp_from[1] and
@@ -248,7 +248,7 @@ local function gen_auth_results(task, settings)
end

local u = task:get_user()
local smtp_from = task:get_from('smtp')
local smtp_from = task:get_from({'smtp','orig'})

if u and smtp_from then
local hdr = {[1] = 'auth=pass'}

Loading…
Cancel
Save