Installing OpenDKIM

dkim-install | dkim | dkim-source

Install

debian

apt install opendkim opendkim-tools dns-root-data

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

sbopkg -i opendkim

netbsd

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

    pkg_add opendkim

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

Ready to go

# debian 
ls -alF /run/opendkim/

# slackware
ls -alF /var/opendkim/

# netbsd
ls -alF /var/db/opendkim/

grep dkim /etc/group
grep dkim /etc/passwd

which opendkim
opendkim -V
openssl version -a
ls -lF /usr/share/dns/root.key

Troubleshooting

cannot build the 14.2 SBo on -current

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.

==> this is probably fixed till now, otherwise use source

Resources

http://www.opendkim.org/INSTALL

http://opendkim.org/INSTALL


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