Invalid (No DKIM key found in DNS server)

SYSTEM INFORMATION
OS type and version Debian Linux 12
Usermin version 2.400
Virtualmin version 7.40.0
Theme version 25.01
Nginx version 1.22.1
Package updates All installed packages are up to date

just moved an Ubuntu VM to Debian 12. (don’t ask) benn a bit of a nightmare :yawning_face:

loaded key VS domains from backups

all appeared to be good.

sent out some test emails.

all either bounced (from gmail accounts)
or had the above dkim message.

so checked Virtualmin -> DNS settings -> DNS DKIM Record it seems ok and was included as TXT record at the external DNS
but regenerated anyway and updated the DNS with new TXT

still gives same result.

Create a new top level virtual server on a new domain or subdomain of existing domain.

Does mail from it get delivered to gmail successfully?

added sub-domain of parent and a new user in that domain sent mail from Usermin → same result same message (but sent message is listed in “Sent”

No. But mail from a user whose account is on gmail arrives at the same user@domain so am concluding it is just a rejection by gmail and potentially others. (hotmail/…/etc)

using intodns only shows one warning:
SOA Warning

which was updated with a 1 hour retry value over an hour ago but is not reflected yet (a propagation issue - perhaps?)

I have also used the tool at DNSViz
but find the output extraordinarily confusing.
“the server appears to support DNS Cookies but did not return a cookie option.” :confused:

DKIM check:

Seems DKIM Syntax Check The record is not valid as well as No DMARC Record found

the DKIM was found and as given in Virtualmin -> DNS Settings -> DNS DKIM Record

DMARC ???