Building OpenDKIM

dkim-install | dkim | dkim-source

Build

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

Troubleshooting

shared object

    ld: /usr/local/ssl/lib/libcrypto.a(ecp_mont.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC
    ...

==> --disable-shared

Resources

#39 Impossible to install OpenDkim : milter not found https://sourceforge.net/p/opendkim/support-requests/39/?limit=25

#9 ./configure –without-milter –disable-filter doesn’t work https://sourceforge.net/p/opendkim/bugs/9/

OpenSSL missing during ./configure. How to fix? https://superuser.com/questions/371901/openssl-missing-during-configure-how-to-fix


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