| SYSTEM INFORMATION |
|
| OS type and version |
Ubuntu Linux 26.04 |
| Webmin version |
2.652 |
| Usermin version |
2.551 |
| Virtualmin version |
8.1.0 GPL |
| Theme version |
26.50.3 |
| Apache version |
2.4.66 |
| Package updates |
2 package updates are available |
I found this issue, summarize using CHatGPT:
DKIM configuration appears broken after migration to Ubuntu 26.04 / Virtualmin 8.1
Hello,
I’m experiencing a DKIM issue after migrating my Virtualmin server from an older VPS.
Environment
This server was migrated from a previous Virtualmin installation running Ubuntu 22.04.
Problem
Outgoing mail is rejected by Gmail with:
550-5.7.26 Your email has been blocked because the sender is unauthenticated.
DKIM = did not pass
SPF = did not pass
SPF is being corrected separately, but DKIM appears not to be working at all.
OpenDKIM status
OpenDKIM is installed and running correctly.
ii opendkim
ii opendkim-tools
ii libopendkim11
systemctl status opendkim
returns:
Active: active (running)
Socket configured in:
Socket inet:8891@127.0.0.1
Postfix configuration
Postfix is configured with IPv4 only.
postconf inet_protocols
inet_protocols = ipv4
However:
postconf | grep milter
shows:
smtpd_milters =
non_smtpd_milters =
No milter is configured.
Virtualmin configuration
Global configuration:
grep dkim_enabled /etc/webmin/virtual-server/config
returns
dkim_enabled=0
However, individual domains report DKIM enabled.
Example:
grep dkim_enabled /etc/webmin/virtual-server/domains/168386005070117
returns
dkim_enabled=1
So the global configuration says DKIM is disabled, while domains indicate it is enabled.
DKIM commands
The command exists:
virtualmin get-command --command set-dkim
Output shows:
set-dkim
with parameters:
-
--enable
-
--disable
-
--select
-
--size
-
etc.
However,
virtualmin set-dkim --enable
does not generate any DKIM keys.
No errors are displayed.
Missing DKIM files
The following do NOT exist:
/etc/domainkeys
No domain private keys exist anywhere:
find /etc -name "*.private"
returns nothing related to DKIM.
Likewise:
find /home -name "*.private"
returns nothing.
The only key present is:
/etc/dkim.key
which is referenced from
/etc/opendkim.conf
and
/etc/dkim-domains.txt
contains only:
vmi3436560.contaboserver.net
No hosted domains are listed there.
DNS
Example:
dig TXT mail._domainkey.ajedrezdata.com
returns
NXDOMAIN
No DKIM TXT record exists.
Domain information
Virtualmin correctly reports for the migrated domains:
-
SPF enabled
-
Mail enabled
-
SSL enabled
-
DNS local
Everything else appears normal.
Additional observations
The server contains approximately 16 migrated Virtual Servers.
Every migrated domain appears to have:
dkim_enabled=1
but:
Questions
-
Is this a known migration issue from Ubuntu 22.04 / Virtualmin 7.x to Ubuntu 26.04 / Virtualmin 8.1?
-
Should virtualmin set-dkim --enable regenerate DKIM keys for all existing domains?
-
Is there a command to rebuild the complete DKIM configuration for all migrated Virtual Servers?
-
Is the global setting
dkim_enabled=0
preventing DKIM generation?
- Is there any migration step required to rebuild the OpenDKIM configuration after restoring Virtualmin backups?
Any guidance would be greatly appreciated.
Thank you.