Email #2383
Replies: 4 comments 5 replies
-
I just ran into a related scenario: our institution used to whitelist internal servers so that mail sent from postfix would be delivered to institutional addresses, but they recently stopped allowing this, so I've been working on getting our WW server to use the University's smtp server. The issue is that the smtp server requires authentication, and it will only send messages where the "from" address is the authenticated user. That means that I need something similar to what @Alex-Jordan describes, except instead of the "from" address being "Stu Student stu.student@myschool.edu" I need it to be "Stu Student generic.account@myschool.edu", where "generic.account" is the username of the account used to authenticate with the smtp server. I'm assuming that there are still WW servers that are able to use postfix to send mail with the appropriate "from" address (particularly if they don't let students change their email address), so I think having the current behaviour as an option is probably still desired. |
Beta Was this translation helpful? Give feedback.
-
If it's helpful to anyone, the patches I have for this are the following, with four new things in I think I haven't contributed it because it would take more work to make it configurable.
|
Beta Was this translation helpful? Give feedback.
-
Currently the Instructor Email form has a field for "Reply-To:" which gets pre-populated with the current user's name and email address, but this information isn't actually included in the message that is sent by the minion process. In implementing what @Alex-Jordan included above I need to set the "Reply-to:" header in the message if Options:
|
Beta Was this translation helpful? Give feedback.
-
I am currently working on migrating WeBWorK's email functionality to integrate with our university's Azure-based email system using Microsoft Graph API. By registering an Azure app and utilizing the Graph API, we can handle email communication while ensuring compliance with security standards like SPF, DKIM, and DMARC, thus providing a more reliable and secure solution for sending emails. One of the key advantages of using the Graph API is the ability to send emails with a Reply-To address. This allows emails to be sent from a verified domain (e.g., no-reply@university.edu), while replies are directed to the appropriate user, such as a student's or instructor’s personal or institutional email. This ensures that the email's origin remains trusted, mitigating potential issues with email deliverability or rejection by external mail services. By moving WeBWorK's email handling to Azure through the Graph API, we can simplify mail management for institutions that do not have their own email servers or are using external systems like Postfix. This also helps improve email deliverability, particularly when sending to services like Gmail or Yahoo, which have strict requirements for email authenticity and validation. Additionally, it's worth considering support for Microsoft Graph API in future versions of WeBWorK. As more institutions move to cloud-based systems like Azure, supporting Graph API will ensure seamless integration with modern infrastructures, reducing maintenance overhead for email services and providing a standardized, secure way to handle emails. This could enhance the flexibility and adaptability of WeBWorK in various deployment environments. |
Beta Was this translation helpful? Give feedback.
-
I sat down to revise how we do email, but I realized a decision needs to be made by the community. [Somewhere in the past few months there was a thread about this, but I cannot find it.]
The issues around this are off-radar for typical installations. A "typical installation" is at an institution where the WW server uses a subdomain of the institution, and uses the institution's own mail server.
The issues are:
With the RS server, I'm in that second category. I changed how emails go out. If Stu Student uses the Email Instructor button, the reply-to address in the email is still Stu's actual email address. But the "from" address is something like "Stu Student <stu.student@webwork-hosting.runestone.academy>". I can set up email things (postfix, DKIM, DMARC, SPF) so that the email is signed as honestly coming from webwork-hosting.runestone.academy. Then the email reaches recipients and is not blocked as potential spam.
So I could take this approach to a PR for the distribution. But would it annoy people at "typical installations" to do this? Should it be configurable, so you can leave the "from" address as the sender's actual email address? Note that if we do that, and a person's email address in WeBWorK ends up as something outside of the institution's domain, they can end up with problems. So if we do that, do we also need to enforce that emails only come from some list of approved domains?
Beta Was this translation helpful? Give feedback.
All reactions