Re: questions on opendkim-lua

From: Murray S. Kucherawy <msk_at_blackops.org>
Date: Mon, 26 Jan 2015 08:45:57 -0800 (PST)

On Mon, 26 Jan 2015, Klaus Heinrich wrote:
> 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?

It's a bug. Please open a big report on SourceForge. The fix is trivial
and will appear in the next release.

> 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?

In which hook are you using this?

-MSK
Received on Mon Jan 26 2015 - 16:46:13 PST

This archive was generated by hypermail 2.3.0 : Mon Jan 26 2015 - 16:54:02 PST