DKIM through PHPMailer in 3.10 always produces "FAIL"

DKIM through PHPMailer in 3.10 always produces "FAIL"

Adam Jenkins發表於
Number of replies: 2
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)

評比平均分數: -
In reply to Adam Jenkins

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

Howard Miller發表於
Core developers的相片 Documentation writers的相片 Particularly helpful Moodlers的相片 Peer reviewers的相片 Plugin developers的相片
My immediate reaction is that Moodle is definitely *not* the place to be doing this. That's a job for the MTA.
評比平均分數:Useful (1)
In reply to Howard Miller

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

Adam Jenkins發表於
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.