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

Ralph Seichter m16+rspamd at monksofcool.net
Sat Oct 13 12:00:58 UTC 2018


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


More information about the Users mailing list