Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.6 > vBulletin 3.6 Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Check E-mail Address Before Registration Details »»
Check E-mail Address Before Registration
Version: 1.00, by echamberlain echamberlain is offline
Developer Last Online: Mar 2017 Show Printable Version Email this Page

Category: Miscellaneous Hacks - Version: 3.6.5 Rating:
Released: 04-10-2007 Last Update: 04-10-2007 Installs: 265
Uses Plugins
 
No support by the author.

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.

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #22  
Old 04-13-2007, 01:48 AM
pspcrazy pspcrazy is offline
 
Join Date: Apr 2005
Posts: 184
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

SWEET! I been all over for this , it is soooo great. I thank you from the bottom of my heart.
Reply With Quote
  #23  
Old 04-13-2007, 09:54 PM
FreshFroot's Avatar
FreshFroot FreshFroot is offline
 
Join Date: Jul 2005
Posts: 770
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

mabye you have your pop email set, so it sends all emails to the root username. Therefore it might think there is a valid email?
Reply With Quote
  #24  
Old 04-14-2007, 11:14 AM
Muellmann's Avatar
Muellmann Muellmann is offline
 
Join Date: Jun 2006
Location: near keyboard
Posts: 109
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I waited such hack, I guessed that "live-checking" of mailaddresses is possible via sockets.

Works fine for me in my older 3.6, but some big providers like "yahoo.com" report for every fantasy mail the status valid mailaddress unfortunately.

But however this hack stops most bots and reduces fake mail registrations and so
I installed and also nominated it as motm.
It's a real alternative to the activation mails. 80% of my users remained inactive with mail confirmation switched on, because they weren't able to click the mail verfication link somehow. So this hack is a real alternative to this and how someone already mentioned it, it should be a default build in feature of vbulletin.
Thank you very much for this clever hack.
Reply With Quote
  #25  
Old 04-14-2007, 04:16 PM
Neo_Angelo's Avatar
Neo_Angelo Neo_Angelo is offline
 
Join Date: Dec 2005
Location: Ober Dere!
Posts: 289
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

*neo clicks install* great pieces of kit i'll be using to prevent spam bots, thanks a bunch ^_^
Reply With Quote
  #26  
Old 04-14-2007, 06:14 PM
Mrdby Mrdby is offline
 
Join Date: Mar 2007
Location: Hades
Posts: 1,298
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

installed
Reply With Quote
  #27  
Old 04-15-2007, 04:39 AM
stwilson stwilson is offline
 
Join Date: Dec 2006
Location: USA
Posts: 209
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Sounds like a nice hack but I could not get it to reject anything for me. I'm not sure if my host supports fsockopen but it did not reject for me with the fsock setting set to yes or no. Wish I could use this.
Reply With Quote
  #28  
Old 04-17-2007, 10:14 PM
josiespencer josiespencer is offline
 
Join Date: Dec 2005
Posts: 100
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I searched this thread and could not find the answer. What port does this mod require for fsockopen, 25 or 80?
Reply With Quote
  #29  
Old 04-18-2007, 06:00 PM
echamberlain's Avatar
echamberlain echamberlain is offline
 
Join Date: Aug 2006
Location: San Francisco
Posts: 69
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

The mod connects via fsockopen to the mail servers on TCP port 25.
Reply With Quote
  #30  
Old 04-18-2007, 06:19 PM
rolfw1 rolfw1 is offline
 
Join Date: Nov 2005
Location: Berkshire, England
Posts: 133
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Great mod.

Installed, hopefully save a lot of weeding out time.

Thanks very much.
Reply With Quote
  #31  
Old 04-22-2007, 10:52 AM
Doug Nelson Doug Nelson is offline
 
Join Date: Nov 2001
Posts: 148
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It seems to work well. So far only one problem: a perfectly valid email address got the "We were unable to contact your e-mail server and verify that your e-mail address exists" message? I have the default settings. Ideas on what happened? If (as the message claims) it could not contact the server, it should have approved the address. So the server must have said the address was invalid, except that I know it is valid.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 07:09 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.05901 seconds
  • Memory Usage 2,308KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete