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

Do not even try to send mail to domains ending in .invalid

    XMLWordPrintable

    Details

    • Testing Instructions:
      Hide
      1. Add a user with an email user@whatever.invalid
      2. Send a message to this user
      3. Run cron and see that this mail is not sended

      You can also see the mail server log to see if it is sending or not.

      Show
      Add a user with an email user@whatever.invalid Send a message to this user Run cron and see that this mail is not sended You can also see the mail server log to see if it is sending or not.
    • Affected Branches:
      MOODLE_28_STABLE
    • Fixed Branches:
      MOODLE_29_STABLE
    • Pull Master Branch:
      MDL-48080_master

      Description

      There are several TLDs reserved but .invalid is specifically reserved for invalid domain names. I purpose to add an exception to email_to_user function that doesn't send and returns true in this cases.

      http://tools.ietf.org/html/rfc2606#section-2

      This improvement will give admins the feature of disable mails for this users.

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Fix Release Date:
                  11/May/15