![]() |
|
Mod Options |
![]() |
|||||||||||||||||||||||||||||||
vBouncer : Unsubscribe threads for members with bouncing emails
![]() Developer Last Online: Mar 2016 ![]() ![]() ![]() This modification is in the archives.
What vBouncer does
vBouncer will reduce your server load, bandwidth, and your forum admin in-box, by unsubscribing members who keep bouncing their emails back to your forum admin email, which may bomb your mail box if you have a busy forum with many members who subscribe to many threads, but their emails are either invalid, in box full, or have ISP problems. Screen shots None, this is a command line script, with some changes in functions.php Who may want to use this? 1. Very busy sites, with thousands of notifications a day. 2. Your admin box gets too many bouncing emails 3. You use sendmail. I'm not sure how this works on other mail servers. Caution This may drive some of your members mad ![]() Use at your own risk. I'm sharing this since some indicated interest at vBulletin.com in this thread: http://www.vbulletin.com/forum/showt...threadid=71496 I'd be glad to help answer questions, but as with most hacks, it is your responsibility.... Installation 1. Create a unique email address on your server, dedicated to catch bouncing emails. Do not use adminemail, or any other existing email that you want to receive through a POP account. This email will be used only to catch bouncing emails. Recommended name (makes for less editing): subscriber_notify 2. Edit functions.php Find:
Replace with:
Find:
Replace with: replace [email protected] with your domain name)
3. Copy vBouncer.pl.txt to a directory on your server. vBouncer.pl.txt is attached below. Rename it to vBouncer.pl by typing: mv vBounver.pl.txt vBouncer.pl Make it executable by typing: chmod +x vBouncer.pl 4. Edit the configuation section of vBouncer.pl
5. Once a week or so, you can run the scropt manually, or through a cron job. When done, you have to clear the email file, otherwise it will keep unsubscribing members whos emails no longer bounce. To run the script in test mode, type: ./vBounver.pl To run the script in bouncer mode, type: ./vBounver.pl -bouncer To clear the mail box, use: cat /dev/null > subscriber_notify 6. Optional bonus: If you have very long threads, you can queue emails until the server load is acceptable. Edit /etc/sendmail.cf Find: # load average at which we just queue messages #O QueueLA=5 Change to: # load average at which we just queue messages O QueueLA=3 This basically means sendmail will not attempt to deliver the email if your server is at load average of 3 or greater, it will place it in the mail queue for later delivery. You can change this number to suit your needs. Planned enhancments (will wait for vB 3.0) 1. Instead of unsubscribing members threads, suspend notification by making a copy of their subscriptions, and copying them back when emails no longer bounce. 2. Track bounce history through admin panel,. This is similar to the old eGroup bouncing history. 3. Automatically PM members re their bounced emails. 4. Offer an option to admin to disable email notification to bouncing members, but keep the subscription. Similar to vB 3.0's daily and weekly notification, but adding a "no emails" option. This is also planned to be a seperate hack. If someone already has access to vB3.0, feel free to use this idea ![]() Attached file is dated June 1st, 2003 Download Now Only licensed members can download files, Click Here for more information. Show Your Support
No members have liked this post.
|
![]() |
||||
Mod | Developer | Type | Replies | Last Post |
vBouncer: reduce server load by unsubscribing bouncing members from threads | tamarian | vBulletin 3.5 Add-ons | 389 | 14 Jan 2013 10:06 |
vBouncer (PHP): reduce server load by unsubscribing bouncing members from threads | tamarian | vBulletin 3.0 Full Releases | 160 | 15 Nov 2008 22:54 |
vBouncer : Change thread subscribtion options for members with bouncing emails | tamarian | vBulletin 3.0 Full Releases | 81 | 27 Jun 2005 13:40 |
Comments |
#2
|
|||
|
|||
Nice.
![]() Will have to give it a try. ![]()
__________________
![]() No members have liked this post.
|
#3
|
||||
|
||||
just so u know.. its agood idea to attach hacks in a txt or zip file so unlicensed users cant get a hold of them.. just thought id beat the mods too it lol soz
No members have liked this post.
|
#4
|
|||
|
|||
It is attached as a text file..... ![]() No members have liked this post.
|
#5
|
|||
|
|||
What I like most about this script, is the copyright notice! I'm surprised no one remarked on it....
![]() No members have liked this post.
|
#6
|
||||
|
||||
How very cool! I love this idea... shall look into this further when I get home...
No members have liked this post.
|
#7
|
||||
|
||||
EXCELLENT! Thanks so much for the hack. I'm using a modified 2.2.9 and since the mail routines were changed going to 2.3.0, it did not install as described. I couldn't get the mail to bounce back to a new handle, so I'm just pulling it from the normal bounce pile.
Thanks again.. licks install... this ought to save me a few thousand emails a week.
__________________
Marijuana Growing Magazine - since vB 1.1 No members have liked this post.
|
#8
|
||||||||
|
||||||||
In functions.php, find:
Replace with:
If anyone trys this one and it works ![]() Edit: Modified for an enhancement mentioned 3 posts below. No members have liked this post.
Last edited by tamarian; 03 Jun 2003 at 23:41. |
#9
|
||||||||
|
||||||||
__________________
PowWows.com No members have liked this post.
|
#10
|
||||
|
||||
Looks like that made it send all emails to that address and not just those that bounce.
__________________
PowWows.com No members have liked this post.
|
#11
|
|||
|
|||
In that case, yes, it will go to that address. I didn't consider this a problem, but I will edit my 2.2.9 code to avoid that. In that case is will go to the admin email. If it arrives to outlook express, you might have missed some steps. I any of the steps have been missed, or not folowed exactly as written, please let me know which ones. Do you use sendmail? Did you create a new email account (subscriber_notify)? To receive it through Oulook or any POP client , you need to set up your email client for that email address. For this vBouncer to work, you should not set it up as a POP client for the vBouncer dedicated email account, just leave it on the server to collect bounced emails. If you did not set a POP client, then it is possible you are getting the emails forwarded to the "catch-all" account, if the email was misspelled. Hope this helps No members have liked this post.
|
#12
|
|||
|
|||
Works marvellously! Clicks install!
No members have liked this post.
|
#13
|
|||
|
|||
I have noticed that regardless of whether -bouncer was specified or not, it ran in test mode. To correct this, make the following changes:
line 65: change: $bouncemode =0; to: $bouncemode = 1; It seems in some versions of perl (or indeed all?) it's similar to php - setting a variable with a 0 (zero) in effect wipes that variable, changing it to a 1 sets it so that the if($bouncemode) works correctly. No members have liked this post.
|
#14
|
|||
|
|||
It's more like lack of coffee ![]() File updated, thanks for the correction. No members have liked this post.
|
#15
|
|||
|
|||
Pleasure! I'm just glad it was something that simple
![]() No members have liked this post.
|
![]() |
«
Previous Mod
|
Next Mod
»
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Mod Options | |
|
|
New To Site? | Need Help? |
All times are GMT. The time now is 19:08.