vBulletin Mods

The Official vBulletin Modifications Site
https://www.vbulletin.org/forum/showthread.php?t=83486

Paul M 27 Jun 2005 02:02

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 27 Jun 2005 02:07

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 27 Jun 2005 03:12

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 27 Jun 2005 03:17

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 27 Jun 2005 03:21

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):


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

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 :)

tamarian 27 Jun 2005 03:26

Quote:

Originally Posted by merk
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):


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

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 :)

Good tip, Tim. Let's see if any of our CPanel+Exim users can test it. Should be fine security-wise since the spool has it's own directory:

/home/example/mail/example.com/subscription_bounces/inbox

merk 27 Jun 2005 04:04

Quote:

Originally Posted by tamarian
Good tip, Tim. Let's see if any of our CPanel+Exim users can test it. Should be fine security-wise since the spool has it's own directory:

/home/example/mail/example.com/subscription_bounces/inbox

The only issue is if cpanel is adding its own directories to the variable. Youll need /tmp or your equivilant temp directory otherwise attachments/avatars wont work.

buro9 27 Jun 2005 07:19

Quote:

Originally Posted by merk
The only issue is if cpanel is adding its own directories to the variable. Youll need /tmp or your equivilant temp directory otherwise attachments/avatars wont work.

I'd already disabled open_basedir so I don't think this is the problem.

I had disabled it ages ago because I needed a Wiki to use the system DIFF utility.

I'll give it a whirl and let you know though (the htaccess segment that is).

buro9 27 Jun 2005 07:23

The default open_basedir on cpanel is roughly:

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

It's applied per domain within the httpd.conf file.

I've added /home/EXAMPLE/mail to the value and will shortly check it :)

buro9 27 Jun 2005 07:24

Quote:

Originally Posted by buro9
The default open_basedir on cpanel is roughly:

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

It's applied per domain within the httpd.conf file.

I've added /home/EXAMPLE/mail to the value and will shortly check it :)

Nope... diagnostics still fail all three file tests.

It's not open_basedir :)

tamarian 27 Jun 2005 13:30

version 0.5 released: Option to use custom header strings to identify bouncers. (Example, some Exim users may need to enter 'X-Failed-Recipients:'.

To upgrade: uninstall, then re-install :)

tamarian 27 Jun 2005 13:43

I would like someone using Exim+Cpanel to test the .forward (dot-forward) file method :)

Here's how it works:

1. Create a file somewhere in your public_html directory /path/to/forum/admincp/subscriber_notify
this file should be readable/writable (666)

2.In your (subscriebr_notify) user home directory, create a .forward file. The .forward file should have one line in it:
/path/to/forum/admincp/subscriber_notify

The theory is that Exim will start forwarding emails to that file.

Not sure what Exim considers "home" directory, so you may need to try creating it in different directories for that user account (subscriber_notify) to test which directory is the right place for .forward

Send an email to subscriber_notify, and check if it was copied to that file. Exim manual states that this should work, so let's keep our fingers crossed. :)

tamarian 27 Jun 2005 17:27

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.

tamarian 27 Jun 2005 22:54

The next version will have a POP/IMAP option. This will be useful to those in chroot environments, or those on multiple servers, or using external mail servers.

I have it working, but I need some test volunteers. If you have a POP account for the subscriber_notify account, send me the POP access info by PM. (The worst I can do is delete a couple of bounced emails!) :)

I can't install Exim on my system, since I never used it, and would be time consuming for me.

merk 28 Jun 2005 01:05

Quote:

Originally Posted by tamarian
The next version will have a POP/IMAP option. This will be useful to those in chroot environments, or those on multiple servers, or using external mail servers.

I have it working, but I need some test volunteers. If you have a POP account for the subscriber_notify account, send me the POP access info by PM. (The worst I can do is delete a couple of bounced emails!) :)

I can't install Exim on my system, since I never used it, and would be time consuming for me.

Great :)

Does PHP need to be compiled with some extra support to connect to POP mailboxes?


All times are GMT. The time now is 13:51.

Powered by vBulletin® Version 3.8.14
Copyright © 2021, MH Sub I, LLC dba vBulletin. All Rights Reserved. vBulletin® is a registered trademark of MH Sub I, LLC
Copyright ©2001 - , vbulletin.org. All rights reserved.