MailScanner / Mailwatch on CentOS

Discussion in 'Installation/Configuration' started by Drex56, Jun 14, 2010.

  1. Drex56

    Drex56 New Member

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

  2. Drex56

    Drex56 New Member

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


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


  3. falko

    falko Super Moderator ISPConfig Developer

    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.
  4. Drex56

    Drex56 New Member

    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.



Share This Page