Topic: "SOLVED" Divided dkim from Cloudflare
==== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====
- iRedMail version (check /etc/iredmail-release): 1.0
- Deployed with iRedMail Easy or the downloadable installer? Installer
- Linux/BSD distribution name and version: Debian 10
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): MySQL
- 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.
====
I have created a 2048 bit key.
When I invoke amavisd-new showkeys, I get:
"v=DKIM1; p="
"MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAzrxVz5RqlA5VoR1uNaNN"
"A8bIcePEy9LhXAVtnL5XlqQORz6zNJa7gA1HEDTORmUM34Vk447OAs5fmhlJEn1F"
"zTI5bT852fZXLdkfBlCRgybZOvJOQifFNGxEPmpWgopT35b0ZakjaQEdf8THd8V9"
"9vsPCqnGodpk1KDe4vBgDTNwC73miEyWV9/ClnUpQWIES0On6VSs/YT8LlSQehjS"
"nlhgoaEBd9EeCYln7oNlZz14uiEmEKfa+Ot/uawdQFZlVfanAiNLucWEZEjLyv2G"
"2/y/1kRKI2VtwUMjAp30wk2sSm8KmSZ7GMOhUV/O/EtL3uyDEUDqAPvX4FV6fi0k"
"LwIDAQAB")
On nslookup I get:
Non-authoritative answer:
dkim._domainkey.myfirstdomain.com text = "v=DKIM1; p=MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAzrxVz5RqlA5VoR1uNaNNA8bIcePEy9LhXAVtnL5XlqQORz6zNJa7gA1HEDTORmUM34Vk447OAs5fmhlJEn1FzTI5bT852fZXLdkfBlCRgybZOvJOQifFNGxEPmpWgopT35b0ZakjaQEdf8THd8V99vsPCqnGodpk1KDe4vBgDTNwC73miEyWV9/ClnUpQWIES0On6VSs" "/YT8LlSQehjSnlhgoaEBd9EeCYln7oNlZz14uiEmEKfa+Ot/uawdQFZlVfanAiNLucWEZEjLyv2G2/y/1kRKI2VtwUMjAp30wk2sSm8KmSZ7GMOhUV/O/EtL3uyDEUDqAPvX4FV6fi0kLwIDAQAB"
As you can see Cloudflare will split TXT records into chunks of 255 characters.
On amavisd-new testkeys I get "invalid (public key: not available)"
Do you think the split is the reason for the key not being accepted by Amavis?
Can this be fixed, or do I have to use 1024 bit keys?
----
Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.