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

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

    XMLWordPrintable

Details

    • MOODLE_28_STABLE
    • MOODLE_29_STABLE
    • MDL-48080_master
    • 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.

    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

              pferre22 Pau Ferrer
              pferre22 Pau Ferrer
              Dan Poltawski Dan Poltawski
              Andrew Lyons Andrew Lyons
              Frédéric Massart Frédéric Massart
              David Woloszyn, Huong Nguyen, Jake Dallimore, Meirza, Michael Hawkins, Raquel Ortega, Safat Shahin, Stevani Andolo
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                11/May/15