OpenWebMail 2.50 & suExec issues.

modem

Verified User
Joined
Apr 7, 2004
Messages
355
Earlier today I was working on getting OpenWebMail to work with virtual domains so I modified the needed lines inside of httpd.conf to point /webmail2 /var/www/cgi-bin/openwebmail/openwebmail.pl/ I also made sure that other appropriate entries inside of httpd.conf were correct such as having openwebmail.pl to be a default loading index file as well as the *.pl being an executable cgi file.

Once I made sure all of that was in order, I then checked to make sure my permissions were correct as outlined in the README file. All of my permissions were fully correct.

Then I proceeded to load openwebmail from my IP address using the following URL:

http://69.64.171.88/cgi-bin/openwebmail/openwebmail.pl

And it worked great! I was able to log in and send/receive emails there just fine.

Then I decided to try a virtualdomain to see if it worked. I used the following URL for this:

http://www.modemnet.net/webmail2

When I did that I get a 500 Internal Server error:

*************************************************
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, [email protected] and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.


Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
*************************************************


So I went back and checked my logs in apache and noticed I was getting the following in the suExec log everytime someone tried to access openwebmail through a virtual domain:


*************************************************
[2005-01-30 11:28:43]: info: (target/actual) uid: (admin/admin) gid: (admin/admin) cmd: openwebmail.pl
[2005-01-30 11:28:43]: error: file is either setuid or setgid: (/var/www/cgi-bin/openwebmail/openwebmail.pl)
[2005-01-30 11:51:01]: info: (target/actual) uid: (admin/admin) gid: (admin/admin) cmd: openwebmail.pl
[2005-01-30 11:51:01]: error: file is either setuid or setgid: (/var/www/cgi-bin/openwebmail/openwebmail.pl)
[2005-01-30 11:52:03]: info: (target/actual) uid: (admin/admin) gid: (admin/admin) cmd: openwebmail.pl
[2005-01-30 11:52:03]: error: file is either setuid or setgid: (/var/www/cgi-bin/openwebmail/openwebmail.pl)
[2005-01-30 12:02:10]: info: (target/actual) uid: (admin/admin) gid: (admin/admin) cmd: openwebmail.pl
[2005-01-30 12:02:10]: error: file is either setuid or setgid: (/var/www/cgi-bin/openwebmail/openwebmail.pl)
*************************************************

It appears that when I try to load the page it's seeing that there *IS* a directory and file there, but it's having some sort of problem with suexec and or some permissions to do so. I checked and I do have suexec installed on my server and after doing a suexec -V and httpd -V commands it shows suexec installed propertly.

HELP!!!!!!!!!!!!!!!!

What do I need to do to get OpenWebMail to work properly under a virtual domain above??
 
It appears it's entirely an issue between openwebmail and suExec. I went into the admin/httpd.conf file and commented out the user/Group = Admin part and viola everything works.
 
I have this same problem with Miva Merchant. It may not be a good idea to comment out all user/groups in the httpd.conf
 
This is only a temporary solution for my main admin account at the moment. I've been emailing John at the DA support desk about implimenting OpenWebMail which would hopefully add a feature to DA that would allow suExec to be turned off or on accordingly to each account.
 
Would anyone here be interested in installing OpenWebmail for me. If so please PM me.
 
Back
Top