mirror of
https://github.com/rspamd/rspamd.git
synced 2024-09-13 15:45:47 +02:00
11 lines
377 B
Lua
11 lines
377 B
Lua
rspamd_config:register_symbol({
|
|
name = 'EXTERNAL_RELAY_TEST',
|
|
score = 0.0,
|
|
callback = function(task)
|
|
local from_ip = string.format('IP=%s', task:get_from_ip() or 'NIL')
|
|
local hostname = string.format('HOSTNAME=%s', task:get_hostname() or 'NIL')
|
|
local helo = string.format('HELO=%s', task:get_helo() or 'NIL')
|
|
return true, from_ip, hostname, helo
|
|
end
|
|
})
|