Installing OpenDKIM

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

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

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

With RRR

with RRR

Ready to go

grep dkim /etc/passwd
grep dkim /etc/passwd
ls -lhF /usr/local/sbin/opendkim

opendkim -V # from source v2.10.3
openssl version -a # slackware-2020sep 1.1.1g

Resources

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


HOME | GUIDES | BENCHMARKS | html