地方エンジニアの学習日記

興味ある技術の雑なメモだったりを書いてくブログ。たまに日記とガジェット紹介。

【OpenDKIM】Luaを使いたい

概要

Luaを使うための手順とか。

www.opendkim.org

github.com

手順

前準備

$ yum install -y lua-devel.x86_64

ビルド

$ curl -Lo opendkim-2.10.3.tar.gz https://sourceforge.net/projects/opendkim/
$ tar -xvf opendkim-2.10.3.tar.gz
$ cd opendkim-2.10.3.
$ ./configure --with-lua
$ make

確認

$ ./opendkim/opendkim -V
lt-opendkim: OpenDKIM Filter v2.10.3
    Compiled with OpenSSL 1.0.2k-fips  26 Jan 2017
    SMFI_VERSION 0x1000001
    libmilter version 1.0.1
    Supported signing algorithms:
        rsa-sha1
        rsa-sha256
    Supported canonicalization algorithms:
        relaxed
        simple
    Active code options:
        USE_LUA
    libopendkim 2.10.3: