Bad RSA signature on DKIM

DKIM Information:
DKIM Signature

Message contains this DKIM Signature:
DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=nani.works; s=mail;
	t=1533552776; bh=g3zLYH4xKxcPrHOD18z9YfpQcnk/GaJedfustWU5uGs=;
	h=Date:From:To:Subject:From;
	b=EYbHBodUhyMNYH9R41b9svtlfgEmIUVMcOFoQCqG3/1uqEOC2/yC4pFk8LuyyRPYs
	 cLO63E9EYdfnvgDfGVesrk4klf7fwvDkpa5Fr1XHhrpt9JQDE4e7YPKJsVwHKM8YUf
	 zk40bv4kHc7DSkKy44nsD5yYLCTq9ty33zuNILs7x9xM5uWbGW3R31i4uAwAP0qNUi
	 W7Opqxds7YzHTXtbW3AEiz56xujMMkKHp+RCV0e1bL6jsQUMg8n01Iijo4rpuGXPF5
	 IkM1/J1WydQrplQ95gm+PiF63IAWVVVbF6DuzQPyt+Do8vTiFEleau6e/K+sQWkVHv
	 wmGZG8RFQncmg==


Signature Information:
v= Version:         1
a= Algorithm:       rsa-sha256
c= Method:          simple/simple
d= Domain:          nani.works
s= Selector:        mail
q= Protocol:        
bh=                 g3zLYH4xKxcPrHOD18z9YfpQcnk/GaJedfustWU5uGs=
h= Signed Headers:  Date:From:To:Subject:From
b= Data:            EYbHBodUhyMNYH9R41b9svtlfgEmIUVMcOFoQCqG3/1uqEOC2/yC4pFk8LuyyRPYs
	 cLO63E9EYdfnvgDfGVesrk4klf7fwvDkpa5Fr1XHhrpt9JQDE4e7YPKJsVwHKM8YUf
	 zk40bv4kHc7DSkKy44nsD5yYLCTq9ty33zuNILs7x9xM5uWbGW3R31i4uAwAP0qNUi
	 W7Opqxds7YzHTXtbW3AEiz56xujMMkKHp+RCV0e1bL6jsQUMg8n01Iijo4rpuGXPF5
	 IkM1/J1WydQrplQ95gm+PiF63IAWVVVbF6DuzQPyt+Do8vTiFEleau6e/K+sQWkVHv
	 wmGZG8RFQncmg==
Public Key DNS Lookup

Building DNS Query for mail._domainkey.nani.works
Retrieved this publickey from DNS: v=DKIM1; k=rsa; s=email; p=MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAvgnqU4sp+pGhE/uMzVoHLx0uixk2mnOz7PlsweXh8vjsBl/vHCQbxu5u3ct+LSZ4e1AIl4qNOL+56Q+tNhEmW2ZhhoPCqrJfIEuLkh4Bh6DnkPMdWnGl1bt/n81eRY+3HzpY8UYuNNWeAsfvk9+drdfA1diTGvjINh+5QzRRHRc7xQmOCRJLMc5rfGyO6yiw4IAcJF11IaJFNrlgqwrsgYM+7WeLXyXeF6nztIT5VDNpMyz0xDbjzJL9h8fiiYmSpg2AENYCCsm0dYkQUo5EhhYZJOzgQzKws6gPBSqCCC68vlmqbN7s6T7onVjaXFNfuS8hl20LbyB0YAP64wAe9wIDAQAB
Validating Signature

result = fail
Details: bad RSA signature

This is the result I get from http://dkimvalidator.com when I send an e-mail from Roundcube. I am using Cloudflare DNS since there are other things on that domain. I have copy/pasted the records exactly, but this issue constantly occurs.

Had a poke around the forum and found the same issue, but the provided solutions haven’t worked for me. The only one with cloudflare involved was that the record was there twice, but it’s only there once for me.

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.