vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   vBouncer (PHP): reduce server load by unsubscribing bouncing members from threads (https://vborg.vbsupport.ru/showthread.php?t=91119)

tamarian 07-14-2005 06:02 PM

Quote:

Originally Posted by Fallback
I have this installed but it will not display any bounced emails in the stats screen and the

"Last run with results" portion of the same screen shows "19:00, 31st Dec 1969" as the last run date even though I ran the cron script myself manually in the admincp to test it. Im using the IMAP mode. What could be set wrong?

The 1969 date implies it was not run, or failed the run.

1. What does the vBouncer diagnostic page show?
2. What does the scheduled task log show?

Fallback 07-14-2005 06:17 PM

The diagnostic page has everything Passed. (the vBouncer Spool File Diagnostics are all failed which im not using because im using IMAP)

The scheduled task log shows....

Bouncer Collect 14:30, 14th Jul 2005 Status:
Processed 0 emails No bounced emails found.

-----------------------

vBounce Clean 11:54, 14th Jul 2005 Status:

tamarian 07-14-2005 07:02 PM

Quote:

Originally Posted by Fallback
The diagnostic page has everything Passed. (the vBouncer Spool File Diagnostics are all failed which im not using because im using IMAP)

The scheduled task log shows....

Bouncer Collect 14:30, 14th Jul 2005 Status:
Processed 0 emails No bounced emails found.

-----------------------

vBounce Clean 11:54, 14th Jul 2005 Status:

O.k. so it looks like it found no bounced emails.

Are you sure there were bounced emails in there? It will ignore any other type of emails, like spam or regular email.

Fallback 07-14-2005 11:19 PM

I found the issue. When I installed the hack began to use the exim spool file method but decided to use the IMAP service because its easier to get going. based on your tip I realized that no emails were being delivered to the account and that was odd because we were getting tons of bounces up until the minute I added the hack. I then remembered that I changed the setting in my exim.conf file as indicated below and when I just changed it back to its normal state the bounce emails resumed delivery to the email account set up to collect bounces.


Quote:

Exim+cPanel: (thanks to Paul M for this tip)
In the exim config file ( /etc/exim.conf ), near the bottom is a section that begins with virtual_userdelivery: - in that section is a line which says mode = 0660 - change this to mode = 0666
I changed it back to '0660' and it works.

Thanks!

Is there any advantage in using the spool method over IMAP or POP?

Paul M 07-14-2005 11:25 PM

Quote:

Originally Posted by Fallback
I found the issue. When I installed the hack began to use the exim spool file method but decided to use the IMAP service because its easier to get going. based on your tip I realized that no emails were being delivered to the account and that was odd because we were getting tons of bounces up until the minute I added the hack. I then remembered that I changed the setting in my exim.conf file as indicated below and when I just changed it back to its normal state the bounce emails resumed delivery to the email account set up to collect bounces.

I changed it back to '0660' and it works.

Thanks!

Is there any advantage in using the spool method over IMAP or POP?

If you change the exim config to 0666 you must CHMOD the file to match, if one mismatches the other then it will fail.

The spool method would be faster I would think, but I can't think of any other real major advantage.

tamarian 07-14-2005 11:46 PM

Quote:

Originally Posted by Fallback
Is there any advantage in using the spool method over IMAP or POP?

Not really, use whichever you like.

Using the file is faster, but speed doesn't really matter, since you only run it once or twice a day. Because IMAP is slighter slower, it may offer a slight advantage by buffering the queries to match email addresses to members. But the differences are slight. IMAP is particularly useful to those who run multiple servers, where the mail server is remote, and the file spool would be inaccessable.

Fallback 07-15-2005 02:13 AM

Quote:

Originally Posted by Paul M
If you change the exim config to 0666 you must CHMOD the file to match, if one mismatches the other then it will fail.
.


When I initially changed the exim config 0666 I did not CHMOD anything. Should anything be changed now that I have changed it back to 0660?

Paul M 07-15-2005 04:40 AM

Quote:

Originally Posted by Fallback
When I initially changed the exim config 0666 I did not CHMOD anything. Should anything be changed now that I have changed it back to 0660?

No, you should be fine now.

Before you changed anything, the file was 660 and the config was 660 - because you only changed the config to 666, there was a mismatch and it stopped. Had you then changed the file to 666 it would have been okay as they would have matched again (both 666). You have fixed the mismatch by putting the config back, so they are now both 660 again. :)

Eagle Creek 07-20-2005 04:06 PM

P-E-R-F-E-C-T!!!

Exactly what I'm looking for!!

(http://www.vbulletin.com/forum/showthread.php?p=920939)

Is there also a vB 3.5 version? My boards are still running 3.0.6 and 3.0.4 but when we want to upgrade?

tamarian 07-20-2005 05:35 PM

Quote:

Originally Posted by Eagle Creek
Is there also a vB 3.5 version? My boards are still running 3.0.6 and 3.0.4 but when we want to upgrade?

Yes, there is. Clcik on my profile and it should be listed there.

Eagle Creek 07-20-2005 05:46 PM

Quote:

Originally Posted by tamarian
Yes, there is. Clcik on my profile and it should be listed there.


Very cool Very cool Very cool, I love you!

I'm searching for a thing like this for ages.

Eagle Creek 07-24-2005 10:03 AM

Quote:

Originally Posted by tamarian
Another request for Cpanel+Exim users. I'm writing a POP maodule as an option instead of reading files. I'll need to test my code (from my home server) with your bouncer email box. If you'd like to volunteer :) please PM me the new account's (subscriber_notify) POP username and password.

Untouchable usergroups

Do I need to add spaces, comma's between??

And:

My mails are still sent from the webmasters address?

tamarian 07-24-2005 12:37 PM

Quote:

Do I need to add spaces, comma's between??
Use commas. I can't beleive the description doesn't say that..

Quote:

My mails are still sent from the webmasters address?
Check the header of email notifications you get, if there's a "Return-Path" header with the new email account you created, then you're ready to go.

Eagle Creek 07-24-2005 12:43 PM

Owh.. I didn't saw it; honestly.

X-Authentication-Warning: srv1.soccerquest.nl: soccerquest set sender to notify soccerquest using -f
X-MailScanner-From: notify soccerquest nl

I guess that's is it?

tamarian 07-24-2005 01:34 PM

Quote:

Originally Posted by Eagle Creek
X-Authentication-Warning: srv1.soccerquest.nl: soccerquest set sender to notify soccerquest using -f
X-MailScanner-From: notify soccerquest nl

I guess that's is it?

No, it doesn't show a "Return-Path" header. Generate a reply notification email, and view the full headers of that email.

Eagle Creek 07-24-2005 01:53 PM

Quote:

Return-Path: <notify@soccerquest.nl>
Received: from mwinf6008.wanadoo.nl (mwinf6008.wanadoo.nl)
by mwinb6006 (SMTP Server) with LMTP; Sun, 24 Jul 2005 16:50:56 +0200
X-Sieve: Server Sieve 2.2
Received: from me-wanadoo.net (localhost [127.0.0.1])
by mwinf6008.wanadoo.nl (SMTP Server) with ESMTP id 3CA612400089
for <wnl000000000000000108688945@back60-mail02-03.me-wanadoo.net>; Sun, 24 Jul 2005 16:50:56 +0200 (CEST)
Received: from srv1.soccerquest.nl (unknown [195.85.134.27])
by mwinf6008.wanadoo.nl (SMTP Server) with ESMTP id 2845C2400088
for <*my e-mail address*>; Sun, 24 Jul 2005 16:50:56 +0200 (CEST)
X-ME-UUID: 20050724145056165.2845C2400088@mwinf6008.wanadoo.n l
X-ClientAddr: 127.0.0.1
Received: from soccerquest.nl (localhost.localdomain [127.0.0.1])
by srv1.soccerquest.nl (8.12.11/8.12.11) with ESMTP id j6OEowYQ032206
for <*my e-mail address*>; Sun, 24 Jul 2005 16:50:58 +0200
Received: (from soccerquest@localhost)
by soccerquest.nl (8.12.11/8.12.11/Submit) id j6OEow4e019057;
Sun, 24 Jul 2005 16:50:58 +0200
Date: Sun, 24 Jul 2005 16:50:58 +0200
X-Authentication-Warning: srv1.soccerquest.nl: soccerquest set sender to notify AT soccerquest.nl using -f
To: *my e-mail address*
Subject: Reactie op post 'Reply test'
From: "SoccerQuest Mailer" <soccerquest AT soccerquest.nl>
Message-ID: <200507241458.ebeec4288039@www.soccerquest.nl>
X-Priority: 3
X-Mailer: vBulletin Mail via PHP
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-soccerquest-MailScanner-Information: Please contact the ISP for more information
X-soccerquest-MailScanner: Found to be clean
X-MailScanner-From: notify AT soccerquest.nl

This?

tamarian 07-24-2005 01:58 PM

Quote:

Originally Posted by Eagle Creek
This?

Yes, this line:

Code:

Return-Path: <notify@soccerquest.nl>
Shows that it is sending the proper header to trap the bounced emails.

mcyates 08-02-2005 09:56 PM

This isn't sending out pms to warn people.

Auto processing mode: Yes
Bounce limit: 10
Bounce limit period: 7
Send Notification PM: Yes
PM Sender ID: 1
PM Sender Username: boro_boy
Send PM warning: Yes
Warning Limit: 5
Punish Any Unknown Emails: No

Those are my settings, why isn't it sending pms out?

My stats for bounced emails are as follows:

User 1: 25 bounced emails
User 2: 22 bounced emails
User 3: 9 bounced emails
User 4: 6 bounced emails
User 5: 4 bounced emails

So the first 4 users should have got a warning via pm but they didn't. Weird!!!

tamarian 08-02-2005 10:09 PM

Quote:

Originally Posted by mcyates
This isn't sending out pms to warn people.

Auto processing mode: Yes
Bounce limit: 10
Bounce limit period: 7
Send Notification PM: Yes
PM Sender ID: 1
PM Sender Username: boro_boy
Send PM warning: Yes
Warning Limit: 5
Punish Any Unknown Emails: No

Those are my settings, why isn't it sending pms out?

My stats for bounced emails are as follows:

User 1: 25 bounced emails
User 2: 22 bounced emails
User 3: 9 bounced emails
User 4: 6 bounced emails
User 5: 4 bounced emails

So the first 4 users should have got a warning via pm but they didn't. Weird!!!


The PM's will be sent the next time the vbouncer-clean.php task is run. When the vbouncer-collect.php task is run, it just collects the info and generates the stats. If the stats show that some members are due for a warning or auto-processing, those actions will be taken when on the next clean run.

You can make sure of this by just running the -clean task from the task manager, and it will take the required actions now. Check the -clean task logs to make sure the actions were taken.

Eagle Creek 08-02-2005 10:56 PM

It worked perfect!

From more then 300 bounces EVERT DAY I now get not more then 2 :D

G-man 08-10-2005 04:52 AM

Quote:

In the exim config file ( /etc/exim.conf ), near the bottom is a section that begins with virtual_userdelivery: - in that section is a line which says mode = 0660 - change this to mode = 0666
I changed this setting and vbounce worked great then I noticed today it brought down my entire email delevery system by switching the the email permissions on all the domain accounts on my server causing denial of emailsfor the entire day until it click I was the one that screwed up the system with that setting. I ahve switched it back.

Help! Please!

tamarian 08-10-2005 07:07 AM

Quote:

Originally Posted by G-man
I changed this setting and vbounce worked great then I noticed today it brought down my entire email delevery system by switching the the email permissions on all the domain accounts on my server causing denial of emailsfor the entire day until it click I was the one that screwed up the system with that setting. I ahve switched it back.

Help! Please!

Not sure about the exim stuff since I've never used it. But you're saying that you switched it back and now the email works fine, but not vBouncer? Why not try the IMAP/POP method, since it will require no changes to Exim.

G-man 08-10-2005 01:30 PM

Quote:

Originally Posted by tamarian
Not sure about the exim stuff since I've never used it. But you're saying that you switched it back and now the email works fine, but not vBouncer? Why not try the IMAP/POP method, since it will require no changes to Exim.

Correct. Evidentily that setting made all local email boxes on the server where they were chmod to block incoming emails.

tamarian 08-10-2005 08:12 PM

Quote:

Originally Posted by G-man
Correct. Evidentily that setting made all local email boxes on the server where they were chmod to block incoming emails.

I've updated the instruction to warn about this problem, and simply recommended IMAP/POP :)

G-man 08-10-2005 09:02 PM

Tamarian,
Thank you. I have yet to get the IMAP/POP to work. Can anyone point out how they are doing it with Exim>?

tamarian 08-10-2005 10:00 PM

Quote:

Originally Posted by G-man
Can anyone point out how they are doing it with Exim>?

I have never used Exim, but it should be no different than any other POP mail account. If you already have created an account for vBouncer, then use the vBouncer setting in the vBulletin Options to enter the POP username and password for that account.

PING1434a 08-13-2005 01:09 AM

Ok, isntalled this hack, seems to working fine. Just one question though, when i run the vbounce collect and vbounce clean up , is it supposed to clear/purge the stats page? Because my stats just stay there...

tamarian 08-13-2005 01:51 AM

Quote:

Originally Posted by PING1434a
Ok, isntalled this hack, seems to working fine. Just one question though, when i run the vbounce collect and vbounce clean up , is it supposed to clear/purge the stats page? Because my stats just stay there...

The stats are cleared when the defined period is over. So if you minitir bounces within the last 7 days, it will clear stats that are older than 7 days on the next run of the clean script. It will also clear each member's stats if they exced the defined period, and are "processed", to avoid penalizing them for the same bounces.

Don't forget to click install :)

G-man 08-13-2005 02:50 AM

I am now getting:

Vbounce

Fatal error: Call to undefined function: imap_open() in boards/includes/cron/vbouncer-collect.php on line 163

tamarian 08-13-2005 03:06 AM

Quote:

Originally Posted by G-man
I am now getting:

Vbounce


Fatal error: Call to undefined function: imap_open() in boards/includes/cron/vbouncer-collect.php on line 163

This means that your server's PHP installation was not compiled with IMAP support.

Eagle Creek 08-23-2005 02:47 PM

Is there a 3.5?

tamarian 08-23-2005 02:57 PM

Quote:

Originally Posted by Eagle Creek
Is there a 3.5?

Yes, click on my profile and it should be linked there.

Eagle Creek 08-23-2005 03:04 PM

Thx dude!!

https://vborg.vbsupport.ru/showthrea...threadid=83486

gbechtel 08-29-2005 03:11 AM

When trying to run vbouncer-clean.php via the Scheduled Task Manager I get the following....

Database error in vBulletin 3.0.8:

Invalid SQL: DELETE FROM vb3_vbouncer WHERE vbouncer.dateline < 1124683668
mysql error: Unknown table 'vbouncer' in where clause

mysql error number: 1109

Can someone point me in the right direction on what to edit to cure this?

Thanks,
Gil

tamarian 08-29-2005 03:28 AM

Quote:

Originally Posted by gbechtel
When trying to run vbouncer-clean.php via the Scheduled Task Manager I get the following....


Database error in vBulletin 3.0.8:

Invalid SQL: DELETE FROM vb3_vbouncer WHERE vbouncer.dateline < 1124683668
mysql error: Unknown table 'vbouncer' in where clause

mysql error number: 1109


Can someone point me in the right direction on what to edit to cure this?

Thanks,
Gil

In vbouncer-clean.php find:

PHP Code:

$DB_site->query("DELETE FROM " TABLE_PREFIX "vbouncer WHERE vbouncer.dateline < $TestPeriod"); 

Replace with:

PHP Code:

$DB_site->query("DELETE FROM " TABLE_PREFIX "vbouncer WHERE  dateline < $TestPeriod"); 


gbechtel 08-29-2005 04:06 AM

Thank you that did the trick...

Gil

Devices 09-15-2005 08:38 PM

Hi

This is a great hack. Thanks for your good work :)

It all seemed to install ok and it does catch a few but most bounces are not caught. I expect i just need the definitons to go in the .inc file. So if some kind soul could help me out here is one that is not picked up.

Code:

X-Kaspersky: Checked
Date:    Thu, 15 Sep 2005 07:47:39 +0100
Message-Id: <10509150747.AA78381076@domain.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
From:    "Postmaster" <postmaster@domain.com>
Sender:  <postmaster@domain.com>
To:      <admin@domain.com>
Subject:  Undeliverable Mail
X-Mailer: <SMTP32 v8.00>
Status: U
X-PMFLAGS: 34078848 0 1 P32Z4HA0.CNM                       

undeliverable to username@myforums.com


Original message follows.

Received: from server [IP ADDRESS] by domain.com
  (SMTPD32-8.00) id AB25620110; Thu, 15 Sep 2005 03:23:33 +0100
Date: Thu, 15 Sep 2005 03:23:30 +0000
Subject: Reply to post
To: username@myforums.com
From: "My Forums" <support@myforums.com>
Return-Path: support@myforums.com
Message-ID: <200509150228.fd8e26864301@myforums.com>
X-Priority: 3
X-Mailer: vBulletin Mail via PHP
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Return-ID: [deleted ;o)]
X-Declude-Sender: admin@myforums.com [IP ADDRESS]
X-Note: This E-mail was scanned for spam.

If that what is needed i can post the others too.

Thank you.

tamarian 09-15-2005 09:04 PM

First, delete this line from your post "X-Return-ID:" No big deal, but you never know. :)

Quote:

Originally Posted by Devices
It all seemed to install ok and it does catch a few but most bounces are not caught. I expect i just need the definitons to go in the .inc file. So if some kind soul could help me out here is one that is not picked up.

Add this to the end of vbouncer.inc
Code:

[case_5]
email_regex = "undeliverable to /<(\S+@\S+)>/mis";
apply_email_regex_on_body = yes;
email_append_host = no;
email_append_host_regex = "";
apply_append_regex_on_body = yes;
consider_as_5_0_0_regex = "/This is a permanent error/mis";
consider_as_550_regex = "/(user unknown|said: 550|unknown recipient|domain not found|mailbox not found|Mailbox unavailable|invalid recipient)/mis";
forged_if_no_return_id = yes;


Devices 09-15-2005 09:21 PM

Quote:

Originally Posted by tamarian
First, delete this line from your post "X-Return-ID:" No big deal, but you never know. :)



Add this to the end of vbouncer.inc
Code:

[case_5]
email_regex = "^undeliverable to /<(\S+@\S+)>/mis";
apply_email_regex_on_body = yes;
email_append_host = no;
email_append_host_regex = "";
apply_append_regex_on_body = yes;
consider_as_5_0_0_regex = "/This is a permanent error/mis";
consider_as_550_regex = "/(user unknown|said: 550|unknown recipient|domain not found|mailbox not found|Mailbox unavailable|invalid recipient)/mis";
forged_if_no_return_id = yes;



Thank you for the fast reply.

I just added that and i got this error
Code:

Warning: preg_match(): No ending delimiter '^' found in \includes\cron\vbouncer-collect.php on line 103

tamarian 09-15-2005 10:03 PM

Try it again, I edited out the ^


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

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01691 seconds
  • Memory Usage 1,866KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (5)bbcode_code_printable
  • (2)bbcode_php_printable
  • (27)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete