Webmail

Discussion in 'Installation/Configuration' started by warlock, Mar 16, 2010.

  1. warlock

    warlock Member

    I have setup ISPC3 with Squirell mail and all works fine,
    eg.
    http://www.example.com/webmail

    As soon as I add a site for example.com I can't connect to to the /webmail

    I assume I need directives added, can someone help me here
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    Webmail is installed on the default vhost of the server. If you add a website that overrides the default vhost, you van not access webmail anymore.

    I recommend that you create a nwe website like webmail.example.com and install a webmail application of your choice into this new website.
     
  3. warlock

    warlock Member

    What if I symlink webmail --> /usr/share/squirrelmail

    I tried this but get a permision denided
    how can I work arond that ?
     
  4. till

    till Super Moderator Staff Member ISPConfig Developer

    See my post above for the solution. You can not access webmail by creating a symlink.
     
  5. warlock

    warlock Member

    The webmail package is installed via apt. so we don't have a choice on were it goes to.

    What is the reason I can't create a symlink out to the correct location of the webmail package ?
     
  6. warlock

    warlock Member

    Ok I got it working, quite simple actually,

    vi /etc/apache2/conf.d/squirrelmail.conf
    Code:
    # Squirrelmail default Apache configuration
    
    Alias /webmail /usr/share/squirrelmail
    
    <Directory /usr/share/squirrelmail>
            Options Indexes FollowSymLinks
            DirectoryIndex index.php
    
            <IfModule mod_php5.c>
                    AddType application/x-httpd-php .php
    
                    php_flag magic_quotes_gpc Off
                    php_flag track_vars On
                    php_flag register_globals Off
                    php_value include_path .
            </IfModule>
    
    </Directory>
    
    restart apache and this should now work for all sites

    http://www.example.com/webmail
     
  7. fordwrench

    fordwrench Member

    This should be a Sticky!!!!
     
  8. warlock

    warlock Member

    The above mentioned works for any website you are trying to install globally,
    I have this for awstats, roundcube, Maia Mailguard just to mention a few.
     

Share This Page