关于Ubuntu 22.04中DKIMproxy包缺失及获取方式的咨询
Hey there! Let me walk you through what's happening with dkimproxy in Ubuntu 22.04 and how you can get it (or a better alternative) set up.
Why dkimproxy is gone from Ubuntu 22.04
DKIMproxy was actually removed from official Ubuntu repositories starting with Ubuntu 20.04 (Focal Fossa), not just 22.04. The core reason is that it's an unmaintained project—development has been stagnant for years, and it no longer receives security updates or bug fixes. Ubuntu's packaging team prunes such packages to keep the repositories focused on software that's actively supported and secure for users.
How to get dkimproxy (if you really need it)
If you have a specific reason to stick with dkimproxy instead of switching to a modern alternative, you can grab the package from the Ubuntu 18.04 (Bionic Beaver) repositories. Just note that installing an unmaintained package on a newer system carries risks like dependency conflicts or unpatched security vulnerabilities. Here's how to do it safely:
- Temporarily add the Bionic repo to your sources:
echo "deb http://archive.ubuntu.com/ubuntu bionic main universe" | sudo tee /etc/apt/sources.list.d/bionic-temp.list - Update your package index:
sudo apt update - Download the dkimproxy package without installing it right away:
sudo apt download dkimproxy - Remove the temporary Bionic repo to avoid mixing package versions:
sudo rm /etc/apt/sources.list.d/bionic-temp.list - Install the downloaded DEB package:
If you hit dependency errors, you might need to manually install missing dependencies from Bionic—but I don't recommend this for production servers, as it can break system stability.sudo dpkg -i dkimproxy*.deb
Recommended alternatives (better than dkimproxy)
Since dkimproxy is unmaintained, using an actively supported tool is a smarter choice for your mail server. Two great options are:
- OpenDKIM: This is the most widely used DKIM implementation, fully supported in Ubuntu 22.04's official repos. Install it with:
It integrates seamlessly with Postfix and has tons of up-to-date documentation to help you set it up correctly.sudo apt install opendkim opendkim-tools - DKIMproxy-milter: A maintained fork of dkimproxy. It's not in Ubuntu's official repos, but you can build it from source. You'll need basic development tools first—install them with:
Then you can fetch the source code and build it following the project's instructions (a quick search will point you in the right direction).sudo apt install git make perl libio-socket-ssl-perl libmail-dkim-perl libnet-server-perl
If you're running a production mail server, I can't stress enough how much better OpenDKIM is for long-term security and stability. But if you absolutely need dkimproxy, the Bionic package route works—just proceed with caution.
备注:内容来源于stack exchange,提问作者Thomas Aichinger

