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)

Devices 09-15-2005 10:15 PM

This time i get this error

Code:

Warning: preg_match(): Delimiter must not be alphanumeric or backslash in \includes\cron\vbouncer-collect.php on line 103

Devices 09-15-2005 10:34 PM

This seems to work

Code:

email_regex = "/^undeliverable to (\S+@\S+)/mi";
I based it on the first block in the INC file. Does it look okay to continue using ?

Freezerator 09-21-2005 12:45 PM

Great hack, installed and works! thanks!

tamarian 09-21-2005 03:06 PM

Quote:

Originally Posted by Devices
This seems to work

Code:

email_regex = "/^undeliverable to (\S+@\S+)/mi";
I based it on the first block in the INC file. Does it look okay to continue using ?

Sure, the inc filter is harmless. If anything goes wrong, it will just abort :)

firas 09-23-2005 08:23 PM

hi...does it work with 3.0.9?

tamarian 09-24-2005 01:52 AM

Quote:

Originally Posted by firas
hi...does it work with 3.0.9?

It should work fine. I haven't upgraded, but the 3.0.9 changes should not affect it.

firas 09-26-2005 09:41 AM

hi..

i've just installed it on my 3.0.9 but after doing so, my VB is not sending emails any more. even the activation emails...i tried sending an email to mysefl from it but it never came.

When i re-edit the mail.php, everything returned to normal

any clue?

Freezerator 09-26-2005 10:45 AM

Quote:

Originally Posted by firas
hi..

i've just installed it on my 3.0.9 but after doing so, my VB is not sending emails any more. even the activation emails...i tried sending an email to mysefl from it but it never came.

When i re-edit the mail.php, everything returned to normal

any clue?

Well, check if you are really editting mail.php the right way. It should work without problems.

firas 09-26-2005 12:40 PM

i did so. i just copied and pasted....:(

tamarian 09-26-2005 12:45 PM

Quote:

Originally Posted by firas
i did so. i just copied and pasted....:(

Restore the mail file from original 3.0.9, and test from the admin cp mail debug. Then apply the changes, and test, see what the vB mail debug message tells you.

Dave-ahfb 10-12-2005 03:09 PM

Is there a way to make this work with the community bulletin hack? Currently bounced emails bounce to the root email address. I changed the settings(temp) to collect from the root mailbox and it only forund 16 out of over 2000 bounced emails.

1- need to make comm-bull bounce to the specified bounce addy
2- need to make it recognize comm-bull bounces

Dave

tamarian 10-12-2005 03:37 PM

Quote:

Originally Posted by Dave-ahfb
Is there a way to make this work with the community bulletin hack? Currently bounced emails bounce to the root email address. I changed the settings(temp) to collect from the root mailbox and it only forund 16 out of over 2000 bounced emails.

1- need to make comm-bull bounce to the specified bounce addy
2- need to make it recognize comm-bull bounces

Dave

Just took a look, and I think it can be done this way (you need to test it to make sure, just send to a new group with bogus emails)

Find these two lines:
PHP Code:

mail($user[email],$subject,$HTML_mailbody,$htmlEmailHeader);

mail($user[email],$subject,$mailbody,"From: \"$bbtitle Mailer\"<$webmasteremail>"); 

Replace each respective line with:
PHP Code:

mail($user[email],$subject,$HTML_mailbody,$htmlEmailHeader'-f' $vboptions['vbouncer_spool_account']);

mail($user[email],$subject,$mailbody,"From: \"$bbtitle Mailer\"<$webmasteremail>"'-f' $vboptions['vbouncer_spool_account']); 


buro9 10-12-2005 05:05 PM

Don't you need a space between -f and the email address? Just a minor point.

tamarian 10-12-2005 05:24 PM

Quote:

Originally Posted by buro9
Don't you need a space between -f and the email address? Just a minor point.

I don't think so. I've been doing it this way since 2.x with no problems :)

buro9 10-12-2005 07:31 PM

Quote:

Originally Posted by tamarian
I don't think so. I've been doing it this way since 2.x with no problems :)

That's good :) I'm never sure but thought as the devil is always in the detail I should ask.

Ho hum...

* wanders off *

Eagle Creek 10-16-2005 09:10 AM

Quote:

Originally Posted by buro9
That's good :) I'm never sure but thought as the devil is always in the detail I should ask.

Ho hum...

* wanders off *

Is there a 3.5 version :$?

Quote:

Screenshots from 3.5 beta, but it looks the same on 3.0.7...

tamarian 10-16-2005 04:17 PM

Quote:

Originally Posted by Eagle Creek
Is there a 3.5 version :$?

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

Spinball 12-03-2005 11:53 AM

Installed as per the instructions and got
Quote:

Parse error: parse error, unexpected T_CLASS, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /home/sites/avforums/public_html/forums/includes/mail.php on line 79
Noticed that my existing (working) version of the hack didn't have the
Quote:

if ($vboptions['vbouncer_header_return_key'])
$headers .= 'X-Return-ID: ' . md5($vboptions['vbouncer_header_return_key'] . $toemail) . "\n";
bit in it, so I took it out.
Are you aware that your code is broken? And what do the extra 2 lines do? Are they important?

tamarian 12-03-2005 12:41 PM

Quote:

Originally Posted by Spinball
Noticed that my existing (working) version of the hack didn't have the

bit in it, so I took it out.
Are you aware that your code is broken? And what do the extra 2 lines do? Are they important?

Not broken, but you may have ran the old installation script with the new code, so you have a mismatch and you're missing a couple of settings in the admincp. Download the zip, run uninstall from the new installation script, then re-install.

Spinball 12-03-2005 06:13 PM

Uninstalled and reinstalled and still got the same problem.
The error is indicative of a missing '}'.
E.g.
Quote:

global $vboptions;
if (is_valid_email($vboptions['vbouncer_spool_account'])) {
if ($vboptions['vbouncer_header_return_key'])
$headers .= 'X-Return-ID: ' . md5($vboptions['vbouncer_header_return_key'] . $toemail) . "\n";
$this->success = @mail($toemail, $subject, $message, trim($headers), '-f' . $vboptions['vbouncer_spool_account']);
}
else
$this->success = @mail($toemail, $subject, $message, trim($headers), "-f $fromemail");
should be
Quote:

global $vboptions;
if (is_valid_email($vboptions['vbouncer_spool_account'])) {
if ($vboptions['vbouncer_header_return_key']) {
$headers .= 'X-Return-ID: ' . md5($vboptions['vbouncer_header_return_key'] . $toemail) . "\n";
}
$this->success = @mail($toemail, $subject, $message, trim($headers), '-f' . $vboptions['vbouncer_spool_account']);
} else {
$this->success = @mail($toemail, $subject, $message, trim($headers), "-f $fromemail");
}
don't see how the code could work otherwise. Very confused.

tamarian 12-03-2005 06:31 PM

Quote:

Originally Posted by Spinball
Uninstalled and reinstalled and still got the same problem.
The error is indicative of a missing '}'.
E.g. should be

don't see how the code could work otherwise. Very confused.

The code you posted is identical. The only difference is adding an opening and closing {}. So if one caused an error, they other one should as well.

If unsure, use a freash copy of mail.php, then apply the changes to it, as it may have errors from previous edits.

Codeman05 12-10-2005 01:45 PM

Hi,

I am having a problem getting VBouncer to connect to my IMAP/POP server.
I'm using Cyrus with Virtual Domains...meaning that my username for the account is a full email address (xxxx@domain.com). Could that be causing the problem? Otherwise, I have no idea...I am able to log into the "subscription_notify" address I created with squirrelmail, so the account itself is working fine

Codeman05 12-10-2005 01:56 PM

Quote:

Originally Posted by Codeman05
Hi,

I am having a problem getting VBouncer to connect to my IMAP/POP server.
I'm using Cyrus with Virtual Domains...meaning that my username for the account is a full email address (xxxx@domain.com). Could that be causing the problem? Otherwise, I have no idea...I am able to log into the "subscription_notify" address I created with squirrelmail, so the account itself is working fine

ok, found the solution, adding the /imap/notls flag got it to work.
example: {localhost:143/imap/notls}

David Bott 12-14-2005 10:16 PM

Great Hack...Installed on AVSForum and will be on TiVo Community.

Question...

The bar graph does not show for me for I call my images from another server.

In the page source I see...

img src="../http://URLremoved/images/polls/bar3.gif"

Note the ../ in front of the image call.

Where can I correct this in the code for it seems to assume local graphic files.

Thank you kindly.

tamarian 12-15-2005 10:47 AM

Quote:

Originally Posted by David Bott
Great Hack...Installed on AVSForum and will be on TiVo Community.

Question...

The bar graph does not show for me for I call my images from another server.

In the page source I see...

img src="../http://URLremoved/images/polls/bar3.gif"

Note the ../ in front of the image call.

Where can I correct this in the code for it seems to assume local graphic files.

Thank you kindly.

Do you use vb advanced or another hack that re-writes url's. Or does your style use absolute paths for image directory variables?

David Bott 12-15-2005 11:54 AM

Hello...

"Or does your style use absolute paths for image directory variables?"

Yes, we set the path for the images to be the URL of the server, not a directory.

David Bott 12-15-2005 01:11 PM

Also...I notice that the system sends a warning PM each time it runs to the users over the warning limit. Thus if I have the cleaner program set to run each hour, they get the notice every hour.

Please advise.

Thank you.

David Bott 12-15-2005 01:45 PM

Ah!!! I have a great idea. (I think)

Ok, you have the option to act fully on a 5.0.0/550, or what have you, on the first bounce of a mail, Why this can make for an issue as you know, it gave me an idea. (Look at the log, a lot of them are 5.0.0/550.

In any case....here is the thought. Have the option to look at the Last Activity date where you can set..."If have not visited in X days, assume dead e-mail" and then act on it.

So they get a 5.0.0/550 bounce. When the cleaner runs the system looks up the address in the user database, and also pulls the last activity date for that user and says..."is the last activity date that older than X days" If yes, run the full clean options.

You see, looking at some of the users that have bounced, they have not been back to the site in some time, thus it would be great to act on them why it may not be good to act on some others with a 5.0.0/550.

Thoughts?

tamarian 12-16-2005 12:58 PM

Quote:

Originally Posted by David Bott
Hello...

"Or does your style use absolute paths for image directory variables?"

Yes, we set the path for the images to be the URL of the server, not a directory.

You can edit the images in the vbouncer.php file in admincp, this line:
PHP Code:

                        echo '<td width="80%" align="left" nowrap="nowrap"><img src="' $imgpath '/bar3-l.gif" height="10" /><img src="' $imgpath '/bar3.gif" width="' $width '%" height="10" /><img src="' $imgpath "/bar3-r.gif\" height=\"10\" /></td>\n"


tamarian 12-16-2005 01:00 PM

Quote:

Originally Posted by David Bott
Also...I notice that the system sends a warning PM each time it runs to the users over the warning limit. Thus if I have the cleaner program set to run each hour, they get the notice every hour.

Please advise.

Thank you.

Not a good idea to run it hourly, as there are no actions to perform until the end of the period. As stated in step #5 "vbouncer-clean.php (weekly, equal to Bounce limit period)"

tamarian 12-16-2005 01:04 PM

Quote:

Originally Posted by David Bott
Ah!!! I have a great idea. (I think)

Ok, you have the option to act fully on a 5.0.0/550, or what have you, on the first bounce of a mail, Why this can make for an issue as you know, it gave me an idea. (Look at the log, a lot of them are 5.0.0/550.

In any case....here is the thought. Have the option to look at the Last Activity date where you can set..."If have not visited in X days, assume dead e-mail" and then act on it.

So they get a 5.0.0/550 bounce. When the cleaner runs the system looks up the address in the user database, and also pulls the last activity date for that user and says..."is the last activity date that older than X days" If yes, run the full clean options.

You see, looking at some of the users that have bounced, they have not been back to the site in some time, thus it would be great to act on them why it may not be good to act on some others with a 5.0.0/550.

Thoughts?

95+% of the mail performance issues are due to instant notifications. Those are only sent once per thread, until the member's next visit. If they don't visit often, they will not generate instant notifications, so adding more code for those who have not visited lately will have little impact.

David Bott 12-16-2005 02:24 PM

Thanks for th note.

Maybe you do not know my site and thus do not see the same concerns. (Not that you would know the site.)

We see over 65,000 unique people a day with over 3000 showing as on-line most of the day. Over 190,000 register with about 250-300 new registrations a day based on what is going on. Over 6.5 millions posts and under 4000 in Alexa. :)

Running the clean once a week does not work. In 3 days we could have someone already over the other limit and thus to late for any warning notice for it would have already taken action. The site is very, very active and a lot of mail goes out.

I mentioned the idea to check the last visit date because looking at some of the users that have bounced mail, they have not been to the site in over 6 months. You see, we have threads that are active still for years.

Oh, the image path. Ys, I had seen that line but would not know what edit out to stop the ../ part.

Thanks

tamarian 12-16-2005 07:48 PM

Quote:

Originally Posted by David Bott
Maybe you do not know my site and thus do not see the same concerns. (Not that you would know the site.)

We see over 65,000 unique people a day with over 3000 showing as on-line most of the day. Over 190,000 register with about 250-300 new registrations a day based on what is going on. Over 6.5 millions posts and under 4000 in Alexa. :)

Running the clean once a week does not work. In 3 days we could have someone already over the other limit and thus to late for any warning notice for it would have already taken action. The site is very, very active and a lot of mail goes out.

vBouncer was written for large sites. Smaller sites have no use for it, so I'm aware of the load issues, that's why I wrote it :)

You don't need to run the "clean" cron once a week, but hourly is an overkill, and provides no benefits, unless your warning period is defined as hourly. The interval should be no less than your warning interval, can be 2 days, 3 days.

Users who have not visited for a month or more, will never get instant notification emails. It's either the daily digest, or the weekly digest. If you set your digests to run in the off hours, then 99% of the mail load damage is caused by instant notifications, which is done by active members only.

rstan 02-09-2006 09:40 PM

have i had to much crack today or does my vb have no email.php?

tamarian 02-10-2006 01:17 AM

Quote:

Originally Posted by rstan
have i had to much crack today or does my vb have no email.php?

mail.php, not email.php :)

David Bott 04-03-2006 10:59 PM

Hello...

I have been using this for some time now and it works great.

However I just moved my mail to a new mail server and I have run into an issue. Here is the error that is reported...

Failed to access email, please check vBouncer mail settings.
Last error: Certificate failure for mail.tivocommunity.com: self signed certificate: /C=US/ST=Unknown/L=Unknown/O=Unknown/OU=Unknown/CN=cambridge.micfo.com/emailAddress=ssl.net
Unable to clear bounced emails, exiting.

The question is, is their any way to ingnor this error and contiune on? The POP3 account does work just fine but it seems SSL is getting in the way for PHP is using IMAP.

Please help.

Thank you.

tamarian 05-04-2006 08:37 PM

Try adding "notls" into the connection string.

Quarterbore 10-10-2006 06:20 PM

Anybody up to trying to get this updated for 3.6.x?

sv1cec 11-25-2006 03:11 PM

Can you please fix code suggested for mail.php? Because as it is in the notes, there are some curly brackets missing, and since the time I did that suggested change, all email from my sites were stopped.

Also, if one of the guys/gals who posted in this, have installed this hack and it is working, can you please tell me how you modified your mail.php file?

One more thing. I am trying to use the file method for this hack. The file /var/spool/mail/rejects (or whatever you call the account name), is owned by rejects and the group is mail. The permissions are set to 666, but as soon as procmail delivers mail to it, it is reset to 600. Also, I do not see anything in my php configuration, regarding pop. All I see is :

mod_php4, mod_setenvif, mod_so, mod_auth, mod_access, mod_alias, mod_userdir, mod_actions, mod_imap, mod_asis, mod_cgi, mod_dir, mod_autoindex, mod_include, mod_status, mod_negotiation, mod_mime, mod_log_config, mod_env, http_core

Is mod_imap the required procedure to access the email account via POP3? If so, why do I get a Failed in diagnostics?

"Your PHP installation supports IMAP/POP Failed"

Thanks

sv1cec 02-14-2007 08:53 AM

Anyone can answer the above please??


All times are GMT. The time now is 09:15 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.01549 seconds
  • Memory Usage 1,860KB
  • 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
  • (3)bbcode_code_printable
  • (3)bbcode_php_printable
  • (23)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)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