Skip to content

is message rewrite supported? #45

@it-bsi

Description

@it-bsi

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions