Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-43669

Enable configuration so that mail comes only from noreply address

XMLWordPrintable

    • MOODLE_26_STABLE
    • MOODLE_26_STABLE, MOODLE_27_STABLE
    • Hide

      To test the patch:

      • Run the unit test test_email_to_user in moodlelib_test.php
      • Confirm that there are no failures

      To test the issue manually:

      1. Do something in Moodle which generates an email not from the noreply address (e.g. submit an assignment)
      2. Confirm that the email does not come from the noreply address
      3. In config.php, set $CFG->emailonlyfromnoreplyaddress = true
      4. Repeat the action from step 1 and confirm that the email now comes from the noreply address
      Show
      To test the patch: Run the unit test test_email_to_user in moodlelib_test.php Confirm that there are no failures To test the issue manually: Do something in Moodle which generates an email not from the noreply address (e.g. submit an assignment) Confirm that the email does not come from the noreply address In config.php, set $CFG->emailonlyfromnoreplyaddress = true Repeat the action from step 1 and confirm that the email now comes from the noreply address

      It would be useful to be able to prevent Moodle sending emails from users own email addresses and instead to send everything from the server's configured noreply address.

      One scenario where this would make sense is in a large institution which has a centralised mail relay hub which controls the outward email from all of the institution's web applications. Normally a service like this will not be configured to relay emails with arbitrary "from" addresses as this is often seen as a security risk.

      In addition, it could be argued that sending an email which appears to come from another email service is "spoofing" and that institutions should not do this without express permission of the user. (For the record, I don't necessarily agree with this statement but I know people who would argue along these lines!)

            maherne Michael Aherne
            maherne Michael Aherne
            Rex Lorenzo Rex Lorenzo
            Marina Glancy Marina Glancy
            John Okely John Okely
            Votes:
            21 Vote for this issue
            Watchers:
            32 Start watching this issue

              Created:
              Updated:
              Resolved:

                Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.