filter-rspamd icon indicating copy to clipboard operation
filter-rspamd copied to clipboard

is message rewrite supported?

Open it-bsi opened this issue 2 years ago • 1 comments

Hi,

I'm using OpenSMTPD (6.8.0p2-3) and Rspamd (2.7-1) with filter-rspamd (0.1.7-1+b5) on Debian 11.

I want to add a text/html signature (disclaimer) to the end of every outgoing email from my domain. Rspamd has a function for this: lua_mime.add_text_footer()https://rspamd.com/doc/lua/lua_mime.html#fa3d82. An example implementation can be found at https://gist.github.com/vstakhov/3dda60a5638a6aefd454973bd687fc21.

After writing the lua code i can see the text is correctly modified with task:get_message() https://rspamd.com/doc/lua/rspamd_task.html#mcea29, however OpenSMTPD delivers the original message without the signature appended to text/html part.

The README.md https://github.com/poolpOrg/filter-rspamd#features of this project does not say anything about full message rewrite. The lua script changes both headers and content.

Is this feature supported? If no, is there a workaround to implement this functionality?

Thanks

it-bsi avatar Mar 10 '23 11:03 it-bsi

Message rewrite is not supported but that's mostly because I didn't know about the feature and didn't need it, not because of an opposition to bring it in filter-rspamd.

I won't have time to work on that before a while so I'll leave this issue opened in case someone works on it or has me work on it.

poolpOrg avatar Jun 14 '23 19:06 poolpOrg