Squirrelmail issue

Hi Guys,


I am fairly new to OSX Server. Have recently had to set up a Mac Mini server that has primary been used for the past 4 years as a FileMaker Pro ticketing software server. I have been requested to it set up as a mail server, and its working fine for the most part, IMAP connecting and mail flowing normally, the issue is with webmail. From the Apple manuals, it seems as though as soon as you create a site under Web services and enable webmail, you should be able to browse to http://your-site.com/webmail and get the login screen. This is just not happening for me. On connecting to the website, a file called 'webmail' is downloaded and thats all, no html code is executed.

The file contains the following..


<?php

/**
* index.php
*
* Redirects to the login page.
*
* @copyright 1999-2010 The SquirrelMail Project Team
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
* @version $Id: index.php 13893 2010-01-25 02:47:41Z pdontthink $
* @package squirrelmail
*/

// Are we configured yet?
if( ! file_exists ( 'config/config.php' ) ) {
echo '<html><body><p><strong>ERROR:</strong> Config file ' .
'&quot;<tt>config/config.php</tt>&quot; not found. You need to ' .
'configure SquirrelMail before you can use it.</p></body></html>';
exit;
}

// If we are, go ahead to the login page.
header('Location: src/login.php');

?>



Am i missing something, or is there some corruption somewhere?

Thanks, Andrew

Posted on Oct 17, 2011 6:02 AM

Reply
7 replies

Oct 17, 2011 12:27 PM in response to kret123

Yes, something is buggy and I don't have an answer for you as to how to fix it so that it operates as it should.


I know that you can create an alternate website, like webmail.example.com, and point it to /usr/share/webmail and that will give you access to webmail. Just add the matching alias entry in DNS for the domain and it works a charm.


-Doug

Oct 18, 2011 5:37 AM in response to Douggo

Thanks Doug,


I have had a look, and there doesnt seem to be a /usr/share/webmail folder. There is however a /usr/share/squirrelmail folder, is this what i should be looking for? Although there doesnt seem to be any index.html files within.


As I said, im a noob with this stuff at present, so your suggestions im not sure how to implement.

Oct 18, 2011 9:14 AM in response to kret123

Sorry, my bad - yes, /usr/share/squirrelmail is the proper directory. It does contain an index.php file that is the root for the webmail interface as well as all the support files for it.


As for getting my suggestion configured, create a new site (webmail.example.com or somesuch that is a subdomain of your FQDN) in Server Admin and point it to /usr/share/squirrelmail. Don't enable any other services for the site. Add an alias (CNAME) record in your DNS that points to the FQDN of your server hosting your email. That should be all it takes to have webmail accessible until you can sort out why the standard method isn't working.


-Doug

Oct 19, 2011 3:03 AM in response to Douggo

I have followed your suggestion, but am getting the page

No Start Page

Could not display this Web Site as no Start Page has been configured. To configure a default starting page, set one of your Web Pages to be the Start Page. Please contact your Administrator for more information"


Do you think i need to start poking around in httpd.conf files? although the thought of this daunts me

Oct 19, 2011 9:30 AM in response to kret123

By all counts and measures, your config should work either way. Squirrelmail should have a default config that will open the login page when accessed. That should point to /usr/share/squirrelmail/login.php


Are you totally sure that webmail is enabled for the website, and have you rebooted or restarted the Apache service since enabling webmail?


-Doug

Oct 21, 2011 5:44 AM in response to Douggo

Thanks Doug. I ended up fixing the problem. It seems File Maker Server had added bits to the etc/apache2/http.conf file, which had commented out the php module, so php server wasnt working.

Was showing up as..

#FMI_Configuration_V1 LoadModule php5_module libexec/apache2/libphp5.so

Just had to delete the #FMI_Configuration_V1 part and now webmail is working as it should!


Anyway thanks for your help

Andrew..

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Squirrelmail issue

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.