-
Improvement
-
Resolution: Fixed
-
Major
-
2.6.1, 2.9.5, 3.2
-
MOODLE_26_STABLE, MOODLE_29_STABLE, MOODLE_32_STABLE
-
MOODLE_32_STABLE
-
wip-
MDL-44467-master -
-
3.2 Sprint 7
The way the "Return-Path" is set seems to have change lately. This cause us some problem since we have decided to disable Moodle messaging in favor of direct email.
What happens is that Return-Path is set to the support email address when a teacher sends an email to students. So if for some reason the email can not be delivered, the non-delivery message is sent to support instead of being sent back to the teacher.
When no support email is set, it uses the email address of the main administrator, which doesn't help.
In short, when users send email, Return-Path should be set to the sender's email.
Summary of issue.
- Return path is set to the no reply address (noreplyaddress).
- By default the "From" field of outgoing email uses the no reply address.
- Outgoing mail "From" field contains "via
{moodle site}
" to help with Outlook / Outlook express / Other mail clients saving the no reply address and users having no knowledge that they are replying to a no reply address.
- The "Allowed email domains" setting takes a list of domains under the control of the institution for sending email. It accepts a wildcard for conveniently adding a lot of domains (*.example.com - tim@first.example.com), or a strict match (example.com - tim@example.com).
- If allowed domains are set then the user's email address will be used in the "From" and "Reply to" field only in the following situations.
- The email matches the allowed domains, and the user's setting is to display their email address to everyone.
- The email matches the allowed domains, and the user's setting is to display their email only to course members, and the email is to be delivered to a course member.
- All other situations use the no reply address.
Other changes
- Email settings related to outgoing email have been moved to "Site administration > Server > Email > Outgoing mail configuration".
- General notice emails are now sent from the no reply user rather than the support user.
- Forum setting $CFG->forum_replytouser has been removed and now global $CFG->noreplyaddress is applied also in forum mails.