Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > Installation/Configuration

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 14th June 2010, 18:58
Drex56 Drex56 is offline
Junior Member
 
Join Date: May 2010
Posts: 16
Thanks: 0
Thanked 2 Times in 2 Posts
Default 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
Reply With Quote
Sponsored Links
  #2  
Old 15th June 2010, 13:19
Drex56 Drex56 is offline
Junior Member
 
Join Date: May 2010
Posts: 16
Thanks: 0
Thanked 2 Times in 2 Posts
Default

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
Reply With Quote
  #3  
Old 15th June 2010, 15:49
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,751 Times in 2,581 Posts
Default

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.
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #4  
Old 15th June 2010, 23:44
Drex56 Drex56 is offline
Junior Member
 
Join Date: May 2010
Posts: 16
Thanks: 0
Thanked 2 Times in 2 Posts
 
Default

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
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Centos 5.2 + ISPConfig 3 tutorial - Problem with email tanakskool Server Operation 1 3rd June 2009 17:22
Problem with Mailwatch and Mailscanner on CentOS 5 how to jakev383 HOWTO-Related Questions 8 9th May 2008 23:22
Virtual Users And Domains With Postfix, MailScanner, Mailwatch Cent 5.1 help jakev383 HOWTO-Related Questions 1 19th April 2008 21:00
Virtual Users And Domains With Postfix, MailScanner, Mailwatch & MySQL On CentOS 5.1 dellock HOWTO-Related Questions 1 28th March 2008 15:45
Virtual Users With Postfix, PostfixAdmin, Courier, Mailscanner, ClamAV On CentOS monster HOWTO-Related Questions 5 21st May 2007 13:40


All times are GMT +2. The time now is 16:40.


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