Skip navigation

Squirrelmail issue

2221 Views 7 Replies Latest reply: Oct 21, 2011 9:18 AM by Douggo RSS
kret123 Calculating status...
Currently Being Moderated
Oct 17, 2011 6:02 AM

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

  • Douggo Level 4 Level 4 (2,730 points)
    Currently Being Moderated
    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

  • Douggo Level 4 Level 4 (2,730 points)
    Currently Being Moderated
    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

  • Douggo Level 4 Level 4 (2,730 points)
    Currently Being Moderated
    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

  • Douggo Level 4 Level 4 (2,730 points)
    Currently Being Moderated
    Oct 21, 2011 9:18 AM (in response to kret123)

    Ya know, I had wondered if FMS had torked something in httpd... Disabling PHP is going to create a problem with Squirrelmail!

     

    Glad that you got it sorted out.

     

    -Doug

Actions

More Like This

  • Retrieving data ...

Bookmarked By (0)

Legend

  • This solved my question - 10 points
  • This helped me - 5 points
This site contains user submitted content, comments and opinions and is for informational purposes only. Apple disclaims any and all liability for the acts, omissions and conduct of any third parties in connection with or related to your use of the site. All postings and use of the content on this site are subject to the Apple Support Communities Terms of Use.