HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   Installation/Configuration (http://www.howtoforge.com/forums/forumdisplay.php?f=4)
-   -   MailScanner / Mailwatch on CentOS (http://www.howtoforge.com/forums/showthread.php?t=46541)

Drex56 14th June 2010 18:58

MailScanner / Mailwatch on CentOS
 
Hi All,

Wondering if any of you chaps can help me. Am installing Mailscanner/Mailwatch onto a CentOS 5.1 box. As far as I can see, I have configured everything correctly, Postfix, works and forwards mail. Mailscanner scans it correctly. All is fine.

My problem comes when I try and goto the MailWatch UI! I type the address in (http://<domain.com>/mailscanner/) and all I get in return is :

Cannot open MailScanner configuration file

Thing is, I can not see why it would not be able to read the file. I have checked that the apache user can read the config file (located here: /etc/MailScanner/MailScanner.conf). I have also edited the functions.php file to return the MailScanner config filename and location. Which now returns the error:

Cannot open MailScanner configuration file: /etc/MailScanner/MailScanner.conf

does anyone have any thoughts as to why MailWatch cannot read the MailScanner config file?

I know its probably going to be something simple but think it is the case of "can't see the wood for the trees!"

If you want any information from me regarding this, please let me know!

Kind regards

Drex

Drex56 15th June 2010 13:19

Hi All,

Just an update, seems it was something Obvious, seems my Apache is chrooted!

New Question:

How do i either,

A. Un-chroot my Apache (httpd)?

or

B. Add the /etc/MailScanner/ directory to the chrooted scope for apache(httpd)?

Thanks,

Drex

falko 15th June 2010 15:49

You can try this: remove or comment out the ChrootDir line and the LoadModule line for mod_chroot in your Apache configuration, then restart Apache.

Drex56 15th June 2010 23:44

Hi Falko,

Thanks for the suggestion. I couldn't find any reference to chroot anywhere in any of the conf files.

I ended up finding the problem, I used to have plesk installed on this box (Wasn't my choice, people we are renting it off of.) I have now removed it but it seems a lot of the old config files are still lurking around the system, more specfically one called "zz010.psa.httpd.conf" which, holds the solution to my problem! As it holds the config for the default site! Added in the /etc/MailScanner as an allowed path, made the other necessary changes and now have it working.

Thank you for the suggestion.

Regards

Drex


All times are GMT +2. The time now is 12:50.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.