dkimproxy for citadel with Debian 11

cpan App::cpanminus
cpanm Net::Server Mail::DKIM Crypt::OpenSSL::RSA Digest::SHA Mail::Address MIME::Base64 Net::DNS Mail::DKIM

cd /tmp
tar -xvf dkimproxy-1.4.1.tar.gz
cd dkimproxy-1.4.1/
./configure –prefix=/usr/local/dkimproxy
make install
cp /etc/init.d/dkimproxy
chmod +x /etc/init.d/dkimproxy

mkdir -p /usr/local/dkimproxy/var/run
useradd dkim
chown -R dkim.dkim /usr/local/dkimproxy/var/run

apt install snapd
snap install core;snap refresh core
snap install –classic certbot
ln -s /snap/bin/certbot /usr/bin/certbot
systemctl stop webcit-http
certbot certonly –standalone

get selector key for txt record
openssl rsa -in /etc/letsencrypt/live/ -pubout -outform der 2>/dev/null | openssl base64 -A
configure dkim txt on dns server

cd /usr/local/dkimproxy/
cp dkimproxy_out.conf.example dkimproxy_out.conf

configure dkimproxy_out.conf to match public & private key location

systemctl daemon-reload
systemctl enable dkimproxy
systemctl start dkimproxy

Leave a Reply

Your email address will not be published. Required fields are marked *