questions on opendkim-lua

From: Klaus Heinrich <klahei174_at_web.de>
Date: Mon, 26 Jan 2015 12:51:24 +0100

Hi opendkim users,

i am using postfix-2.9.6, opendkim-2.10.0 with LUA-5.2.1 and a working
opendkim configuration as far i can tell. But there are two open questions:

1. How can i get access to the Signingtable via the LUA API? I tried
this snippet in setup, screen and final script

{code}
st = odkim.get_dbhandle(ctx, DB_SIGNINGTABLE)
{code}

always getting this error

{code}
opendkim: /etc/opendkim.conf: odkim.get_dbhandle(): incorrect argument type
{code}

what's the problem here?

2. How can I determine if the message is signed using the LUA API? I
tried to get Information about the Header "DKIM-Signature" using the LUA
API like this:

{code}
sc = odkim.get_sigcount(ctx)
{code}

but sc is always 0, i.e. zero.

or

{code}
dh = odkim.get_header(ctx,"DKIM-Signature",0)
{code}

but always getting dh == nil.

what am i doing wrong here?

Regards,
Klaus
Received on Mon Jan 26 2015 - 11:53:22 PST

This archive was generated by hypermail 2.3.0 : Mon Jan 26 2015 - 12:00:02 PST