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

Enable configuration so that mail comes only from noreply address

    XMLWordPrintable

    Details

    • Testing Instructions:
      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
    • Affected Branches:
      MOODLE_26_STABLE
    • Fixed Branches:
      MOODLE_26_STABLE, MOODLE_27_STABLE
    • Pull Master Branch:

      Description

      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!)

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                21 Vote for this issue
                Watchers:
                36 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Fix Release Date:
                  14/Jul/14