[Rspamd] add dot-stuffing to bcc forwarding
This commit is contained in:
parent
ee607dc3cc
commit
97a492b891
@ -340,6 +340,10 @@ rspamd_config:register_symbol({
|
|||||||
if not bcc_dest then
|
if not bcc_dest then
|
||||||
return -- stop
|
return -- stop
|
||||||
end
|
end
|
||||||
|
-- dot stuff content before sending
|
||||||
|
local email_content = tostring(task:get_content())
|
||||||
|
email_content = string.gsub(email_content, "\r\n%.", "\r\n..")
|
||||||
|
-- send mail
|
||||||
lua_smtp.sendmail({
|
lua_smtp.sendmail({
|
||||||
task = task,
|
task = task,
|
||||||
host = os.getenv("IPV4_NETWORK") .. '.253',
|
host = os.getenv("IPV4_NETWORK") .. '.253',
|
||||||
@ -347,8 +351,8 @@ rspamd_config:register_symbol({
|
|||||||
from = task:get_from(stp)[1].addr,
|
from = task:get_from(stp)[1].addr,
|
||||||
recipients = bcc_dest,
|
recipients = bcc_dest,
|
||||||
helo = 'bcc',
|
helo = 'bcc',
|
||||||
timeout = 10,
|
timeout = 20,
|
||||||
}, task:get_content(), sendmail_cb)
|
}, email_content, sendmail_cb)
|
||||||
end
|
end
|
||||||
|
|
||||||
-- determine from
|
-- determine from
|
||||||
|
Loading…
Reference in New Issue
Block a user