Register Members List Search Today's Posts Mark Forums Read

Reply
 
Mod Options
Bounced email handler Details »
Bounced email handler
Mod Version: 1.1, by rebelde (Member) rebelde is offline
Developer Last Online: May 2015 I like it Show Printable Version Email this Page

vB Version: 4.2.x Rating: (5 votes - 4.60 average) Installs: 32
Released: 31 Mar 2014 Last Update: Never Downloads: 219
Not Supported DB Changes Uses Plugins Additional Files Re-usable Code Translations Is in Beta Stage  

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

Only licensed members can download files, Click Here for more information.

Show Your Support

  • To receive notifications regarding updates -> Click to Mark as Installed.
  • This modification may not be copied, reproduced or published elsewhere without author's permission.
Similar Mod
Mod Developer Type Replies Last Post
Add-On Releases Poor Man's Bounced Email Handler rebelde Modification Graveyard 24 02 Apr 2014 02:01

  #16  
Old 25 Apr 2014, 01:27
Chadi's Avatar
Chadi Chadi is offline
 
Join Date: May 2004
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?
__________________
...............................
Talk Jesus Forums: Christian Chat
games . chat . gallery . bible . videos
Reply With Quote
  #17  
Old 27 Apr 2014, 04:03
rebelde rebelde is offline
 
Join Date: Jun 2008
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
  #18  
Old 23 Aug 2014, 14:18
nick-harper nick-harper is offline
 
Join Date: Jun 2008
How do I make bounce backs go to a different address?
__________________
Coventry City Forum
Reply With Quote
  #19  
Old 25 Aug 2014, 13:48
rebelde rebelde is offline
 
Join Date: Jun 2008
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
  #20  
Old 25 Aug 2014, 15:31
tpearl5's Avatar
tpearl5 tpearl5 is offline
 
Join Date: Nov 2001
Real name: John
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?
__________________
John
Reply With Quote
  #21  
Old 25 Aug 2014, 15:58
rebelde rebelde is offline
 
Join Date: Jun 2008
My experience is that Gmail and Yahoo just send your emails to the Spam folder and don't bother sending any sort of notification. Of course, different email providers can do different things, but this isn't a problem that I have run across.

If it did happen, fixing it is a simple as running the right UPDATE on the table.

UPDATE beh_users SET deliverflag = 0 WHERE email like '%@gmail.com';

Or something like that.
Reply With Quote
  #22  
Old 15 Nov 2014, 14:53
dknelson dknelson is offline
 
Join Date: Oct 2004
I used this to send emails to all the "waiting email confirmations" user group. I don't know what I did but I ended up pruning a lot of them. There are now only 44 left in that user group. Half of those though when I click on them, it says "invalid user". I can't figure out how to remove those invalid users from the user group as when I click on "delete" for that user, I get the invalid user screen. How do I remove them for the primary user list in my AdminCP?
Reply With Quote
  #23  
Old 17 Nov 2014, 12:37
rebelde rebelde is offline
 
Join Date: Jun 2008
Originally Posted by dknelson View Post
I used this to send emails to all the "waiting email confirmations" user group. I don't know what I did but I ended up pruning a lot of them. There are now only 44 left in that user group. Half of those though when I click on them, it says "invalid user". I can't figure out how to remove those invalid users from the user group as when I click on "delete" for that user, I get the invalid user screen. How do I remove them for the primary user list in my AdminCP?
This really is beyond the scope of what this modification is trying to do. I would suggest that you try the tools in AdminCP > Maintenance > General Update Tools. One of them might fix it.
Reply With Quote
  #24  
Old 08 Mar 2015, 16:39
thunderclap82 thunderclap82 is offline
 
Join Date: Dec 2008
Is it possible to add a way to auto move a user to a usergroup if their email bounces back?
Reply With Quote
  #25  
Old 09 Mar 2015, 14:10
rebelde rebelde is offline
 
Join Date: Jun 2008
Originally Posted by thunderclap82 View Post
Is it possible to add a way to auto move a user to a usergroup if their email bounces back?
I can't help you, sorry, but you can edit the code if you want.
Reply With Quote
  #26  
Old 29 Apr 2015, 15:42
phriek phriek is offline
 
Join Date: Mar 2010
I installed this mod but i use mandrill as mailprovider. I enabled an option in mandrill, which sends the bounced mails to a specific address, which works great,
But: The mails, which will be collected by the Bounced-Script via imap are only deleted and not saved to the database.

the message text of my bounced mail looks like this:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

in beh_maillist.php i found:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

This should collect the email from the mail body, right? but why it doesn't work with mine?

Thanks alot!

//EDIT

Got it to work for me. If you get the bounced mail forwarded as shown above, change the code in forum/includes/cron/beh_maillist to this:

around line 174

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

around line 186

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.


Last edited by phriek; 19 May 2015 at 13:29.
Reply With Quote
  #27  
Old 30 Apr 2015, 16:29
rebelde rebelde is offline
 
Join Date: Jun 2008
IMPORTANT:
I improved the plugin to do a much better job, but haven't had time to publish it here. Now, I will no longer be using vBulletin, so I'm giving you all the current code, in the hopes that one of you will take over this plugin and create a new version based on it.

Originally Posted by phriek View Post
The mails, which will be collected by the Bounced-Script via imap are only deleted and not saved to the database.
I suggest testing different things with the code to see what works. You might also want to test the code attached to this post.
Attached Files
File Type: zip bounced_email_handler.zip (3.5 KB, 30 views)
Reply With Quote
  #28  
Old 25 Sep 2015, 03:52
dartho dartho is offline
 
Join Date: Sep 2005
The following may be useful to someone...

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

http://www.vbulletin.org/forum/showthread.php?t=297249
Reply With Quote
  #29  
Old 26 Sep 2015, 19:49
ndahiya ndahiya is offline
 
Join Date: Aug 2004
Wink

Alternatively (or in addition), the following code will change the usergroup to users awaiting email confirmation.


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.


ndahiya
Reply With Quote
  #30  
Old 29 Sep 2015, 16:37
sevenmix's Avatar
sevenmix sevenmix is offline
 
Join Date: Apr 2009
Sorry but... where could i find the pm text?

The one that starts something like this:
"The notification emails that the forum sends you"

Greetings
__________________
ForoBeta - Comunidad de bloggers en espaņol.
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Mod Options

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


New To Site? Need Help?

All times are GMT. The time now is 09:39.

Layout Options | Width: Wide Color: