Installing OpenDKIM

with packages

debian

apt install opendkim opendkim-tools dns-root-data
ls -lF /usr/share/dns/root.key

slackware

slackpkg install perl libmilter

sbopkg -i libbsd # strlcpy strlcat

groupadd -g 305 opendkim
useradd -r -u 305 -g opendkim -d /var/run/opendkim -s /sbin/nologin -c "OpenDKIM Milter" opendkim

cannot build the 14.2 SBo on -current

#sbopkg -i opendkim

getting the following

configure: error: Cannot build shared opendkim
                          against static openssl libraries.
                          Configure with --disable-shared
                          to get this working or obtain a
                          shared libssl library for
                          opendkim to use.

hence look down for installation from source.

netbsd

    pkg_add libmilter perl
    /usr/libexec/locate.updatedb
    locate libmilter.h
    locate libmilter.a

    pkg_add opendkim

    ls -lhF /usr/bin/perl #noexist?
    ln -s /usr/pkg/bin/perl /usr/bin/perl

from source

grab latest

wget https://sourceforge.net/projects/opendkim/files/opendkim-2.10.3.tar.gz
wget https://sourceforge.net/projects/opendkim/files/opendkim-2.10.3.tar.gz.md5
md5sum opendkim-2.10.3.tar.gz
cat opendkim-2.10.3.tar.gz.md5

MD5 (opendkim-2.10.3.tar.gz) = 916e691cdd16cfabd1cd6efe745323f9
916e691cdd16cfabd1cd6efe745323f9  opendkim-2.10.3.tar.gz

tar xzf opendkim-2.10.3.tar.gz
cd opendkim-2.10.3/

NetBSD

    ./configure --with-milter=/usr/pkg --disable-shared
#--with-openssl=/usr/local

Slackware

./configure --with-openssl=/usr/lib64 --disable-shared
#--with-openssl=/usr/local
#--with-milter=/usr/lib64
#--with-milter=/root/rrr/sendmail-8.16.1

anyhow

    make -j8 > ../opendkim.log && echo BUILT
    make install

Ready to go

grep dkim /etc/group
grep dkim /etc/passwd
which opendkim
ls -lF /usr/sbin/opendkim
ls -lF /usr/local/sbin/opendkim
opendkim -V
openssl version -a
ls -lF /usr/share/dns/root.key

Resources

INSTALLING OPENDKIM http://www.opendkim.org/INSTALL http://opendkim.org/INSTALL


HOME | GUIDES | LECTURES | LAB | SMTP HEALTH | HTML5 | CONTACT
Copyright © 2024 Pierre-Philipp Braun