[Rspamd-Users] Milter headers module : extended_spam_headers not working

Eric de la Musse eric901 at pouik.org
Sun Sep 22 15:02:59 UTC 2024


Hello,

I can't get the extended_spam_headers parameter of the milter headers
module to work (the headers 'X-Rspamd-Queue-Id', 'X-Spamd-Result' and
'X-Rspamd-Server' don't appear on external origin emails).

The MTA used is Opensmtpd on FreeBSD (opensmtpd-7.3.0_3 package) with
the rspamd filter (opensmtpd-filter-rspamd package).

rspamd is properly called by opensmtpd because spam is correctly marked
with the 'X-Spam: yes' header.

Content of the local.d/milter_headers.conf file:

    extended_spam_headers = true;

It's as if the milter header module wasn't called because if I add to
the local.d/milter_headers.conf file:

    use = ["stat-signature"];
    routines {
        stat-signature {
            header = 'X-Stat-Signature';
            remove = 0;
        }
    }

The 'X-Stat-Signature' header doesn't appear either.

I imagine the solution must be very simple but after several hours of
research and various tests I no longer know how to solve the problem...

I don't see anything in the opensmtpd or rspamd logs that would be
related to the problem... even after adding in local.d/logging.inc:

    level = "debug";
    debug_modules = ["milter_headers"];

# grep milter /var/log/rspamd/rspamd.log

...
2024-09-22 16:47:27 #44083(main) rspamd_logger_configure_modules:
enable debugging for module milter_headers (40)
2024-09-22 16:47:27 #44083(main) <>; lua; lua_util.lua:1162: enable
debug for Lua module milter_headers
2024-09-22 16:47:27 #44083(main) <6pqn9s>; lua; milter_headers.lua:749:
active routines [x-spamd-result,x-rspamd-server,x-rspamd-queue-id,x-
rspamd-action,remove-spam-flag]
2024-09-22 16:47:27 #44083(main) <6pqn9s>; cfg;
rspamd_init_lua_filters: init lua module milter_headers from
/usr/local/share/rspamd/plugins/milter_headers.lua; digest: 0cc09ade3a
2024-09-22 16:47:27 #44083(main) rspamd_logger_configure_modules:
enable debugging for module milter_headers (40)
´..

Do you have any idea? How can I effectively debug this problem?

-- 
Eric


More information about the Users mailing list