[Rspamd-Users] Weird behaviour on Return-Path header processing
jose.celestino at gmail.com
jose.celestino at gmail.com
Wed Sep 11 11:43:37 UTC 2024
Hi,
Noticed what seems a weird behaviour with rspamd processing of the
return-path header: the setting of the from_envelope seems to depend
on where the return-path is located on the headers:
- if the return-path is seen earlier (that is, added later and on top
of the headers), it is properly processed and from_envelope set
accordingly
- if the return-path is later in the headers (after the from?) then
from_envelope is not set from its value but from the from (maybe
because of if (task->from_envelope == NULL) and from_envelope not
being null at that time on mime_headers.c)
Typically the return-path comes before the original message headers,as
it is added by the smtp, and this is not a problem. Just noticed it
with a script, where I was appending the header, instead of
prepending, that was scoring differently from what the smtp scanner
logged (mainly because of from_envelope vs spf). Easy to fix the
script anyway, and there's no real impact.
So, is this a side-effect or on purpose?
JC
More information about the Users
mailing list