Add x-rspamd-server in all e-mail

70 views
Skip to first unread message

Emanuel Gonzalez

unread,
Sep 3, 2018, 2:01:12 PM9/3/18
to rspamd
I would like to know if it is possible to add the header "x-rspamd-server" to all the emails analyzed, to know which server has performed the task.

I use exim and this service does not support the milter protoco.

Thanks you.!!

Regards.

Marc Risse

unread,
Sep 4, 2018, 12:04:49 PM9/4/18
to rspamd
What about "custom routines" @ milter_headers module?

Marc Risse

unread,
Sep 4, 2018, 12:14:16 PM9/4/18
to rspamd
with lua:

        rspamd_logger.infox("Add X-Moo-Tag header")
        task:set_milter_reply({
          add_headers = {['X-Moo-Tag'] = 'YES'}
        })



Am Montag, 3. September 2018 20:01:12 UTC+2 schrieb Emanuel Gonzalez:

Philip Paeps

unread,
Sep 4, 2018, 12:38:18 PM9/4/18
to rspamd
On 2018-09-04 18:04:49 (+0200), Marc Risse wrote:
> Am Montag, 3. September 2018 20:01:12 UTC+2 schrieb Emanuel Gonzalez:
>> I would like to know if it is possible to add the header
>> "x-rspamd-server"
>> to all the emails analyzed, to know which server has performed the
>> task.
>>
>> I use exim and this service does not support the milter protoco.
>
> What about "custom routines" @ milter_headers module?

That won't work without milters.

A lua module like you suggested previously would probably work for
Emanuel though.

Philip

--
Philip Paeps
Senior Reality Engineer
Ministry of Information
Reply all
Reply to author
Forward
0 new messages