Back to vBulletin 3.6 Add-ons

Check E-mail Address Before Registration
Mod Version: 1.00, by echamberlain

This modification is in the archives.
vB Version: 3.6.5 Rating: (25 votes - 4.76 average) Installs: 265
Released: 11 Apr 2007 Last Update: 11 Apr 2007 Downloads: 1022
Not Supported Uses Plugins  

This mod checks that the user supplied e-mail address is a real address before allowing registration to continue.

Even though we use Verify Email address in Registration, I still get tired of cleaning up bad e-mail addresses.

This mod integrates with the user registration process and performs the following tasks:
  1. Syntax checking (configurable) to make sure what was entered is an e-mail address.
  2. Looks up the MX records for the e-mail address.
  3. Cycles through the mail servers by connecting to each mail server and tries to verify that the e-mail address is a valid address. The cycling stops as soon as a mail server returns a valid or invalid user.
Installation

Install the attached xml product file. The product is active at installation and most sites should run fine with the default settings.

If you run the default configuration, e-mail addresses will be rejected when:
  • Syntax doesn't look like an e-mail address
  • MX record or A record does not exist for the e-mail domain
  • A mail server reports that the e-mail address is invalid
If you run the default configuration, e-mail address will pass when:
  • Syntax looks like an e-mail address
  • MX record or A record exists for the e-mail domain
  • All mail servers timeout or a mail server reports that the e-mail address is valid.
Configuration

This mod is managed from the vBulletin Options -> User Registration Options page. The following options are added to the page:
  • Validate Registration E-mail Addresses - Enter a regular expression to use when validating e-mail addresses. Leave the field blank to disable validation. The recommendation is to use the default value.
  • Treat E-mail Address As Valid If All Mail Hosts Timeout - If all the mail hosts timeout, should the e-mail address be treated as valid?

    NOTE: Changing this to no will reject valid users when your hosting provider doesn't allow fsockopen calls or when the timeout value is too short. The SMTP RFC's allow for a connection request response wait time of up to minues, since this test is real-time with a waiting user, waiting minutes is impractical. Just because a host timesout doesn't mean the host is not there.
  • Mail Host Timeout Value (Seconds) - Length of time to wait when trying to open a session with a mail host.

    NOTE: Don't set this value too large, if a domain has more than one MX record, the user will have to wait for each connection attempt.
  • Does This Host Support fsockopen? - A PHP fsockopen call is used to try and connect to the remote mail servers. Some systems may not support or block these calls. With the value set to Yes, the connection attempts will timeout. GoDaddy's Shared Hosting is an example of a hosting provider that blocks outbound connection attempts.

    With this value set to no, the system will try to look up the MX records, but will not attempt to connect to each mail server.

Download

This modification is archived, downloads are still allowed.

File Type: %1$s os_validate_email_1.0.xml (7.5 KB, 1212 downloads)

Similar Mods

Custom Usergroup on Registration (via e-mail address). Modification Graveyard
AJAX: check for banned email on registration and changing mail vBulletin 3.0 Full Releases
IP address of new users in registration e-mail vBulletin 2.x Full Releases

vblts.ru supports vBulletin®, 2022-2024