summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/plugins/lua/clickhouse.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/lua/clickhouse.lua b/src/plugins/lua/clickhouse.lua
index 7ef093cc2..130ee9d1e 100644
--- a/src/plugins/lua/clickhouse.lua
+++ b/src/plugins/lua/clickhouse.lua
@@ -490,7 +490,7 @@ local function clickhouse_collect(task)
local from_domain = ''
local from_user = ''
if task:has_from('smtp') then
- local from = task:get_from('smtp')[1]
+ local from = task:get_from({'smtp','orig'})[1]
if from then
from_domain = from['domain']:lower()