Topic: DKIM Signing not work on Ubuntu 18.04.1 with Thunderbird or K9(Fixed!)
==== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====
- iRedMail version (check /etc/iredmail-release): 0.9.8 MARIADB edition
- Linux/BSD distribution name and version: Ubuntu 18.04.1
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): MariaDB
- Web server (Apache or Nginx): Nginx
- Manage mail accounts with iRedAdmin-Pro? No
- [IMPORTANT] Related original log or error message is required if you're experiencing an issue.
====
Up front this was first attempt at installing an email server. iRedMail made it easy.
Observations: If I sent an email from Roundcube (internal) to a gmail account it would show mailed-by and signed-by my sending email domain and under the original tab in gmail it would show the DKIM as "Pass" with my mail domain. Which is what I was hoping for.
Problem: If I sent an email from Thunderbird or K9 Mail to a gmail account it would show mailed-by my sending email domain but not show "signed-by". When I checked original tab under gmail it did not list DKIM at all.
Solution: Upgrade amavisd-new (1:2.11.0-1ubuntu1) to amavisd-new (1:2.11.0-1ubuntu2).
Why: amavisd-new (1:2.11.0-1ubuntu1) is bugged and DKIM signing is not work properly.
How:
1) Check to see if you have the bugged version by issuing the following command:
apt-cache policy amavisd-new.
If you have the bugged version continue on.
2) Currently Bionic (18.04.1) does not have the new version available. I recommend making a backup copy of the repo list by copy the sources.list by issuing the following command:
cp /etc/apt/sources.list sources.list.bak
I changed the reference of bionic to cosmic.
vi,vim,nano /etc/apt/sources.list
This allows us to use Ubuntu 18.10 - Cosmic Cuttlefish repos instead of 18.04 - Bionic Beaver
I only upgrade a single package. Issuing a normal upgrade command may cause issues. So I issued the following command: apt-get update
The above command loads the new repos and then I excuted the following command:
apt-get install --only-upgrade amavisd-new
This updates the single package not the entire system. Upon successful upgrade I changed the source.list back to bionic from cosmic.
3) Reboot server or restart amavisd.
Result: Emails from Roundcube (Server), Thunderbird (PC) and K9 Mail (Phone) all show a passed DKIM and show mailed-by and signed-by my sending email domain.
Ps. Hope this saves someone a few/several hours of searching.
Pps. RedMail Developers please feel free to move to a better location if you determine there is a better location or cleanup the post.
----
Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.