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

Reply
 
Thread Tools
Bounced email handler Details »»
Bounced email handler
Version: 1.1, by rebelde rebelde is offline
Developer Last Online: May 2015 Show Printable Version Email this Page

Category: Administrative and Maintenance Tools - Version: 4.2.x Rating:
Released: 03-30-2014 Last Update: Never Installs: 33
DB Changes Uses Plugins
Re-useable Code Additional Files Translations Is in Beta Stage  
No support by the author.

What does the bounced email handler do?
It stops sending emails to addresses that are no longer valid. This helps keep your email from being marked as spam, and helps get your legitimate emails through spam filters as a result.

More technically:
  1. It collects emails that "bounce" (are returned to you, the sender),
  2. Counts them and marks those accounts with lots of bounces.
  3. It stops sending "new post" notifications to those addresses.
To install:
  1. Set up a separate email address to handle bounces, such as bounce@yourdomain.com.
    (Do not use your normal email address. This modification will delete your other emails if you do!)
  2. Upload the PHP file.
  3. Install this plugin.
  4. AdminCP > Settings > Options > Email Options: Set "Bounce email address" to the address in step 1.
  5. AdminCP > Settings > Options > Bounced Email Handler: Fill in your settings
  6. Test it:
    - AdminCP > Scheduled Tasks > bounced_email_handler > Run Now to see if it is working.
    - Check the email account to make sure that it is deleting the emails that it has imported.
Areas of improvement:
  1. Find a way to stop sending other emails that shouldn't be sent such as forum subscription updates and birthday messages.
  2. Add switch to not send PMs.
  3. Add option to archive instead of delete emails for Gmail accounts.
Please fork this add-on for VB5 and other forum software. You have my permission!

Download Now

File Type: zip vB bounced email handler.zip (6.6 KB, 256 views)

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.
3 благодарности(ей) от:
puertoblack2003, RichieBoy67, SaN-DeeP

Comments
  #12  
Old 04-02-2014, 09:28 AM
ezak ezak is offline
 
Join Date: Nov 2004
Posts: 121
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

useful testing it
Reply With Quote
  #13  
Old 04-02-2014, 11:41 AM
ezak ezak is offline
 
Join Date: Nov 2004
Posts: 121
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I have faced some problem to make it working, I have to add bounce@mydomain.com to /root/.forward my my host, also disable the firewall

working well but I have some question and suggestions
1- I have now 27 user in beh_users, so one of them , I sent mail from my forum , and its sent because the reutun is come again, thats also the same when I see bounced_count is 2,3 ... ? is it send the mail to that mail or not, if not , why I recived the bounce return again ?

2- the users in beh_users, is there any update to see them in admincp, and have user details on it and able to edit his profile ?

3- I didn't recived PM with the reports as the option config
Reply With Quote
  #14  
Old 04-02-2014, 01:07 PM
rebelde rebelde is offline
 
Join Date: Jun 2008
Posts: 34
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ezak, I'm not sure that I understand you, but I can try to answer your questions.

1. The system only stops sending emails when the bounced_count = 5 or more. Users with a bounce_count of 3 will still receive email.

2. No, there is no way to see which users are blocked in the admincp, other than running the SQL query that I posted in post 8.

3. I'm not sure what PM you expected to receive. The only PMs sent are those sent to users with 5 bounces warning then that they will no longer receive emails unless they act.
Reply With Quote
  #15  
Old 04-02-2014, 02:57 PM
RichieBoy67's Avatar
RichieBoy67 RichieBoy67 is offline
 
Join Date: Apr 2004
Location: CT - Down in a hole..
Posts: 3,057
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
working well but I have some question and suggestions
1- I have now 27 user in beh_users, so one of them , I sent mail from my forum , and its sent because the reutun is come again, thats also the same when I see bounced_count is 2,3 ... ? is it send the mail to that mail or not, if not , why I recived the bounce return again ?
Nothing will change until those users have bounced 5 times or to the amount you choose. This is because occasionally people add a vacation response or something and you do not want to change those users.
Reply With Quote
  #16  
Old 04-04-2014, 06:04 AM
ezak ezak is offline
 
Join Date: Nov 2004
Posts: 121
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by rebelde View Post
Ezak, I'm not sure that I understand you, but I can try to answer your questions.

1. The system only stops sending emails when the bounced_count = 5 or more. Users with a bounce_count of 3 will still receive email.

2. No, there is no way to see which users are blocked in the admincp, other than running the SQL query that I posted in post 8.

3. I'm not sure what PM you expected to receive. The only PMs sent are those sent to users with 5 bounces warning then that they will no longer receive emails unless they act.
perfect mod thanks
Reply With Quote
  #17  
Old 04-25-2014, 12:27 AM
Chadi's Avatar
Chadi Chadi is offline
 
Join Date: May 2004
Location: USA
Posts: 2,043
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Can anyone explain how to go about cleaning over 1,000 "invalid" or "no recipient" here issues among various email services with this mod? I think 5 might be too high, maybe try at 1 or 2?

How does the mod determine what is considered a "bounce"? There are so many bounce codes to go by like 450, 451, 550, etc.

Any ideas?
Reply With Quote
  #18  
Old 04-27-2014, 03:03 AM
rebelde rebelde is offline
 
Join Date: Jun 2008
Posts: 34
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Chadi View Post
Can anyone explain how to go about cleaning over 1,000 "invalid" or "no recipient" here issues among various email services with this mod? I think 5 might be too high, maybe try at 1 or 2?

How does the mod determine what is considered a "bounce"? There are so many bounce codes to go by like 450, 451, 550, etc.
Right now, the method is crude (but somewhat effective). It just counts the bounced emails, as long as they are not bounces for temporary reasons.

The different bounce codes? The current code doesn't look at them. I am hoping that one of you will take this add-on to the next level by figuring out what to do according to the bounce code. For some codes, we would stop sending email after a single bounce, while we would wait longer for other codes. I wish I had the time to do it myself, but I don't.
Reply With Quote
  #19  
Old 08-23-2014, 01:18 PM
nick-harper nick-harper is offline
 
Join Date: Jun 2008
Posts: 163
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

How do I make bounce backs go to a different address?
Reply With Quote
  #20  
Old 08-25-2014, 12:48 PM
rebelde rebelde is offline
 
Join Date: Jun 2008
Posts: 34
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by nick-harper View Post
How do I make bounce backs go to a different address?
Admin CP > Options > Email options > Bounce Email address
Reply With Quote
  #21  
Old 08-25-2014, 02:31 PM
tpearl5's Avatar
tpearl5 tpearl5 is offline
 
Join Date: Nov 2001
Location: PA
Posts: 1,014
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by rebelde View Post
Right now, the method is crude (but somewhat effective). It just counts the bounced emails, as long as they are not bounces for temporary reasons.

The different bounce codes? The current code doesn't look at them. I am hoping that one of you will take this add-on to the next level by figuring out what to do according to the bounce code. For some codes, we would stop sending email after a single bounce, while we would wait longer for other codes. I wish I had the time to do it myself, but I don't.
Yeah, I see a potential issue when being blocked by an entire email provider. For example, if gmail blocks you then everyone with gmail will not get emails.

Maybe in the meantime a feature to clear blocks of certain email addresses?
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 04:19 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.04618 seconds
  • Memory Usage 2,340KB
  • Queries Executed 26 (?)
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
  • (5)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (11)post_thanks_box
  • (3)post_thanks_box_bit
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (1)postbit_attachment
  • (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
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete