DKIM through PHPMailer in 3.10 always produces "FAIL"

DKIM through PHPMailer in 3.10 always produces "FAIL"

by Adam Jenkins -
Number of replies: 2
Picture of Particularly helpful Moodlers Picture of Plugin developers

Hi All,

Seeing the new feature to allow DKIM signing through PHPMailer, I was intrigued and thought I'd give it a try. I have configured DKIM on Postfix and Sendmail several times in the past (a chore that always causes some irritation) and so was hopeful this would make DKIM signing easier. I followed the instructions below.

https://docs.moodle.org/dev/User:Brendan_Heywood/DKIM

Yet, my DKIM always fails. I have tried removing the header/footer from the private key file, changing permissions, but no success. The emails are signed, and the TXT record is both present and valid, but DKIM still isn't passing. Thinking maybe a typo in the keys, I have remade and re-checked the keys multiple times even grabbing an online key generator's keys for one trial.

In short, I have eliminated the usual suspects, but am still left scratching my head. Anyone actually succeed in getting a DKIM pass?

Env: Moodle 3.10.2 on Nginx with Postgres Tried both Postfix and Sendmail as MTA (no DKIM configured in them)

Average of ratings: -
In reply to Adam Jenkins

Re: DKIM through PHPMailer in 3.10 always produces "FAIL"

by Howard Miller -
Picture of Core developers Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers
My immediate reaction is that Moodle is definitely *not* the place to be doing this. That's a job for the MTA.
Average of ratings: Useful (1)
In reply to Howard Miller

Re: DKIM through PHPMailer in 3.10 always produces "FAIL"

by Adam Jenkins -
Picture of Particularly helpful Moodlers Picture of Plugin developers
Well, as I understand it PHPMailer is supposed to be doing the heavy lifting here... Which also has me wondering if I'm asking the question in the right place.

I can imagine this feature making server migrations easier though, so although Moodle might not be the best place for it, it's nice to have.