-
-
Notifications
You must be signed in to change notification settings - Fork 165
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DKIM won't sign for arbitrary "From" address #2346
Comments
The issue here will sooner or later affect all WeBWorK servers that allow students to set their own email address. If a student sets their email address to See: https://postmarkapp.com/blog/2024-gmail-yahoo-email-requirements. Brad alerted me that this has been happening the past few months, and more and more universities (especially those that use Google for mail) have been affected. This explains why things were basically issue-free with the WW Runestone server and email the past year or so, but then suddenly for about a month or two I've had sporadic complaints of messages not getting through. |
Can others try an experiment? On a production server, create a course. Change your own email address to something like a gmail.com address that you own. (Anything that is clearly outside the scope of your university mail server.) Then go to a page and use Email Instructor to send yourself a message. When I do this, I get a page full of errors. It starts out as:
It seems my school's smtp server is (wisely) not going to send a message that is "From" a gmail.com address. We don't allow students to change their WW email address here, but nothing would stop an instructor from changing to a different address if they wanted to. Well, nothing except errors like this. I could also imagine a student in a course not having an email address, and typing it in at the time of sending their message. And typing their I'm not looking forward to this, but I think WW needs to redesign how it handles email. There are at least two models and we could try to support both, or just support the more versatile option.
I've found four places email goes out:
And I've been imagining (for a while now, with no action) email alerts to students about upcoming due dates on incomplete assignments, etc. Anyway, it will be a big project. I don't want to get started without consensus on what the problem is and what the right model is to address it. |
I have a situation with the RS server that many WW server admins would not run into. For most other installations, all user emails have the same
@domain.edu
, and it is a domain where the WW server is a subdomain. With the RS server, this is not the case.For some institutions, emails from the WW server are rejected if they are not DKIM signed. Normally, it's easy to sign because there is just one
domain.edu
to worry about, and it's actually a domain you have authority with. But when the "From" address is a student's[email protected]
then I can't (shouldn't?) set things up to give a DKIM signature for all the possibilities forwhatever.edu
.I've tested in a RS WW course, that if I set my email address to
[email protected]
and send a message to a mail testing service, it is not DKIM signed. But if I change my email to[email protected]
then it will be signed. This makes sense...opendkim
is configured to sign forwebwork-hosting.runestone.academy
:)So the issue is that I need the WW server to send emails from a
webwork-hosting.runestone.academy
address, but there are two immediate issues with that.[email protected]
instead of from the student. How confusing will this be for them?As I think about this, it starts to seem "wrong" that we send emails that are "from" an
institution.edu
address. Of course it's fine when you work at that institution and the institutional mail server is actually the mail server you are using, and the admin supports your cause. But RS is using postfix to send mail, and can't be the only WW server where this DKIM signing issue is an issue.Note that most RS subscribing schools have "low" standards and the emails do get through, even without a DKIM signature. It's a few (but growing number) that are bouncing the messages back.
Unless people have good ideas, I think I will have to alter the RS WW server to send from some generic
webwork-hosting.runestone.academy
address and make sure thereply-to
is the student address.The text was updated successfully, but these errors were encountered: