Sendmail macros in Lua?

28 views
Skip to first unread message

Frank Schnell

unread,
Oct 9, 2017, 4:41:02 PM10/9/17
to rsp...@googlegroups.com
Is there a way to obtain the value of the various sendmail macros that the MTA passes to the milter in the Rspamd Lua code?

Andrew Lewis

unread,
Oct 10, 2017, 6:34:49 AM10/10/17
to rsp...@googlegroups.com

Hi,

> Is there a way to obtain the value of the various sendmail macros
> that the MTA passes to the milter in the Rspamd Lua code?

No, not directly. What do you actually want to get at here?

There is something called MTA-Tag (use
task:get_request_header('mta-tag')) which may be something like what
you want.

Best,
-AL.

Frank Schnell

unread,
Oct 10, 2017, 2:34:00 PM10/10/17
to rsp...@googlegroups.com
I don't understand what task:get_request_header() will contain in milter context? Where can I see a list?

For sendmail macro example, Rspamd requires Postfix to send certain macros:
https://rspamd.com/doc/integration.html

So Rspamd has macro like {client_name} and other macros it can send like {client_port} listed:
http://www.postfix.org/MILTER_README.html#macros

I'd like to use them in Lua.
Reply all
Reply to author
Forward
0 new messages