Yes indeed! Changing the sender name to Matrix Authentication Service @ <my_homeserver> works, with successful dkim: pass.
From original source:
Authentication-Results: mx.google.com;
dkim=pass [...]
[...]
From: "Matrix Authentication Service @ <my_homeserver>" <matrix@matrix.<my_homeserver>>
Reply-To: "Matrix Authentication Service @ <my_homeserver>" <matrix@matrix.<my_homeserver>>
So sending mails with quoted names that do not have to be quoted leads to DKIM failures at gmail.
Nice idea!
Interesting, thanks for reporting back.
I went to the config and changed my sender to
Matrix Authentication Systemagain, without @.It works, I have a DKIM pass now. As seen, the quotes are still stripped:
Authentication-Results: mx.google.com; dkim=pass [...] From: Matrix Authentication Service <matrix@matrix.<homeserver>> Reply-To: Matrix Authentication Service <matrix@matrix.<homeserver>>I did not touch my setup otherwise; I'm sure it failed the DKIM check before at gmail. Given the DMARC and SPF checks passed, I also don't think it was a DNS issue.
I'm sure it was not my setup, I manually copied the gmail-processed source and verified the DKIM cert manually, with and without re-adding the quotes. I was only able to verify locally with the quotes added. This, and DKIM consistently passing at other mail servers leads me to believe it actually was an issue at google side.
So either they fixed the issue in light-speed, or I was loosing my mind, which of course is possible as well. Will update the original post and github issues.