[Rspamd-Users] Recently migrated from spamassassin to rspamd, open issues

dunc a.16bit.sysop at gmail.com
Fri Feb 21 19:36:19 UTC 2020


You could try adding the name you want to /etc/hosts the rspamd website says just add:

header = 'X-Rspamd-Server';
  remove = 0;

Duncan

On Fri, 21 Feb 2020, 19:16 Michael Grimm, <trashcan at ellael.org <mailto:trashcan at ellael.org>> wrote:
dunc <a.16bit.sysop at gmail.com <mailto:a.16bit.sysop at gmail.com>> wrote

> To check what is enabled you can do an rspamadm configwizard
> It list modules and if disabled or not, then quit without changing anything.

Thanks a lot! That is exactly the information I need to know.

> I think the header string would be the milter_headers module.

Here I din't succeed. Whatever I tried to set the x-rspamd-server header, I ended up with the local hostname.

I do have zero to none experience with lua code, but the following snippet from milter_headers module source [1] ...

        [1] https://github.com/rspamd/rspamd/blob/master/src/plugins/lua/milter_headers.lua <https://github.com/rspamd/rspamd/blob/master/src/plugins/lua/milter_headers.lua>
        ————— snip ————
         routines['x-rspamd-server'] = function()
            if skip_wanted('x-rspamd-server') then return end
            if settings.routines['x-rspamd-server'].remove then
              remove[settings.routines['x-rspamd-server'].header] = settings.routines['x-rspamd-server'].remove
            end
            add[settings.routines['x-rspamd-server'].header] = HOSTNAME
          end
        ————— snap ————

… makes me believe that the x-rspamd-server header is hardcoded to local hostname, correct?

Thanks and regards,
Michael
-- 
Users mailing list
Users at lists.rspamd.com <mailto:Users at lists.rspamd.com>
https://lists.rspamd.com/mailman/listinfo/users <https://lists.rspamd.com/mailman/listinfo/users>


More information about the Users mailing list