[Rspamd-Users] Raw envelope recipient address in LUA script

Vsevolod Stakhov vsevolod at rspamd.com
Sat Oct 13 13:26:59 UTC 2018


On 13/10/2018 13:00, Ralph Seichter wrote:
> Adding to my original post: Using debug level logging I can see that
> rspamd definitely knows about the raw envelope recipient:
> 
>   milter; rspamd_milter_process_command: got macro: {rcpt_addr} -> joe+abc at example.com
>   milter; rspamd_milter_process_command: got rcpt: <joe+abc at example.com>
>   protocol; rspamd_protocol_handle_headers: read rcpt header, value: <joe+abc at example.com>
>   task; rspamd_mime_header_add: add new raw header To: joe+abc at example.com
>   re_cache; rspamd_re_cache_exec_re: checking header To regexp: =\?\S+\?B\?=joe+abc at example.com -> 0
>   re_cache; rspamd_re_cache_exec_re: checking header To regexp: ^<?undisclosed[- ]recipient=joe+abc at example.com -> 0
> 
> The question stands, how can I access the {rcpt_addr} milter macro from
> a LUA script? I've searched the Web extensively, but could not find an
> example. If I missed something, kindly point it out to me. Than you.
> 
> -Ralph
> 

Plus address normalization is done by rule 'EMAIL_PLUS_ALIASES'. You can
disable this rule by settings.


More information about the Users mailing list