vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   vBouncer: reduce server load by unsubscribing bouncing members from threads (https://vborg.vbsupport.ru/showthread.php?t=83486)

buro9 06-26-2005 09:38 PM

Quote:

Originally Posted by tamarian
Paul, buro9 and 7thgen:

Are you guys on similar setups? CPanel+Exim?

If so, there might be an alternative solution. Exim allows forwarding through .forward file and can use pipe the emails to the shell. So if the symlink for some reason doesn't work, you might be able to capture the emails to an alternative file within your public_html space.

Yeah, Cpanel + Exim here :)

tamarian 06-26-2005 09:46 PM

Quote:

Originally Posted by Paul M
The reject headers are ;

Paul, I'd like you to do a little test for me. Send several test emails from the vB diagnostics in the admin panel. Send them to bogus83y4ds (something not likely to be a real email) @ aol, comcast and hotmail, and show me the full content of the bounce file afterward, including the attachments (by PM if you prefer).

The header you showed will not be picked up by vBouncer since it's not RFC compliant, I think. Exim maybe re-writing them. If AOL, Comcast and hotmail result are in the same format, then Exim on your server might be intefering, since those ISP's do send (most of the time) RFC compliant non-delivery.

Paul M 06-26-2005 09:53 PM

Sure - I'll PM you the results.

tamarian 06-26-2005 10:27 PM

vBouncer 0.4 now works as a plugin, without code changes. (Thanks to Paul M)

To upgrade from 0.2 or 0.3, simply delete the old plugin and replace with the new one.

Christine 06-27-2005 12:37 AM

Thanks tamarian!

I am also on cPanel/Exim. Will be upgrading my server to a new box this month, but I anticipate that will be the same as I believe this is core cPanel behaviour on mail handling -- I don't think it is an option?

I will gladly help with testing as well. Just let me know what you would like done.

Paul M 06-27-2005 01:02 AM

Well, with a few bits of suitably placed sticky tape - I have a working system on cpanel / exim. I think tamarian will be producing an update later.

tamarian 06-27-2005 01:07 AM

Quote:

Originally Posted by Christine
Thanks tamarian!

I am also on cPanel/Exim. Will be upgrading my server to a new box this month, but I anticipate that will be the same as I believe this is core cPanel behaviour on mail handling -- I don't think it is an option?

I will gladly help with testing as well. Just let me know what you would like done.

For now, there's a temporary solution to access the mail spool file, which Paul has posted. A cron script to copy the file to the public_html area, then reset the original.

A better solution, IMHO, is to use the dot-forward file method (a feature available on all these mail packages, including Exim) to directly pipe the file to another in the public_html area. I'm still looking for the correct format, but if anyone knows, please share.

Another problem with Exim, is re-writing the headers for the bounced files, which will be missed by the current log collector. I'll release an updated version to capture those.

Does the CPanel/Exim show an option to forward to a file?

merk 06-27-2005 02:12 AM

The PHP restriction you speak of, would it happen to be open_basedir?

I use this extensivly across my enviroment.

All you have to do is add a single path to the directory block of the vBouncer files that allows php to access the path to the spool file.

If it isnt open_basedir, im not sure :)

tamarian 06-27-2005 02:17 AM

Quote:

Originally Posted by merk
The PHP restriction you speak of, would it happen to be open_basedir?

I use this extensivly across my enviroment.

All you have to do is add a single path to the directory block of the vBouncer files that allows php to access the path to the spool file.

If it isnt open_basedir, im not sure :)

What do you mean by "add a single path to the directory block"?

I suspect CPanel might be chrooting the seperate systems, but I'm not sure, since I don't use it. But I can try to override the php.ini to see if that helps.

merk 06-27-2005 02:21 AM

Quote:

Originally Posted by tamarian
What do you mean by "add a single path to the directory block"?

I suspect CPanel might be chrooting the seperate systems, but I'm not sure, since I don't use it. But I can try to override the php.ini to see if that helps.

PHP has a "safe mode" system called open_basedir, it restricts PHP from going areas it isnt allowed to go into. It is controlled via php.ini, httpd.conf or .htaccess.

I do my modifications for each virtual site on my system in httpd.conf (using php_admin_value so that it cant be overridden by .htaccess).

Something like the following will allow PHP scripts to access /www/sitename, /tmp and /var/spool/mail (and outside of these paths will result in an error):

Code:

<Directory /www/sitename>
php_admin_value open_basedir "/www/sitename:/tmp:/var/spool/mail/"
</Directory>

Now, you'd have to be careful, and probably put subscriber_notify in its own directory.

Oh, and this wont help you if you're in a chroot enviroment :)


All times are GMT. The time now is 09:30 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.01220 seconds
  • Memory Usage 1,746KB
  • 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
  • (1)bbcode_code_printable
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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