Re: questions on opendkim-lua

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

Am 26.01.2015 um 17:45 schrieb Murray S. Kucherawy:
> 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

I did not expect it get something in the setup hook, but tried all of
them, i.e. setup, screen and final hook... getting the same result.
Received on Mon Jan 26 2015 - 18:13:30 PST

This archive was generated by hypermail 2.3.0 : Mon Jan 26 2015 - 18:18:01 PST