HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (
-   Installation/Configuration (
-   -   Squiralmail - webmail alias not working ( 24th October 2010 07:29

Squiralmail - webmail alias not working

I installed ISPConfig 3.0.3 on ubuntu 10.04.

Everything is working fine except the link.

It shows a 404 not found record.

In /var/www i can see a symlink like this

lrwxrwxrwx 1 root root 24 Oct 23 03:56 webmail -> /usr/share/squirrelmail/

What could be the error?

Please suggest.


till 24th October 2010 13:44

This link will only work when the IP address that is used to access the server is not assigned to a website in ispconfig. There are several solutions:

1) dont assign the ip to a website and use * instead.
2) create a dedicated website for webmail e.g. and install a webmail client of your choice into that website. 24th October 2010 20:24

Hi Till,

Removing the IP address association from the website did the trick ...

Now I am facing a strange problem ...

My newly added websites are showing default web server page.

Any idea? My webserver stopped working suddenly and I restarted the apache using /etc/init.d/apache start

Please help ...

till 25th October 2010 12:33

Then your server requires it that you assign the IP addresses to the sites. In that case, you have to use the second method for webmail that I mentioned in my post. 25th October 2010 17:45
1 Attachment(s)

Thank you for your response..

I did the complete reinstall of ubuntu and ISPConfig 3 setup.

I added one domain, not assigned any IP address.

The domain name is

In web domain setup, my values are per attachment.

My DNS zone has entry for www record

What value should I have for Auto sub domain .. I tried the *, www combinations but it does not work :(

till 25th October 2010 17:53

Select the IP address in the IP address field and select www for auto subdomain. By the way, why did you reinstall? 25th October 2010 18:02


I am using linode VPS, so reinstall was just few minutes.

If I assign the IP, then the webmail is not working for sure.

Now ... is going to default page is going to ISPConfig page not working is working ..

If I assign www subdomain in domain setup, then website works with www, but webmail does not working...

umm .. this is getting confusing :(

Please contact me at richard a-t


ByteMe Networking 11th December 2010 09:52

Maby this will help.
I remember in cAnal when you added a new domain to your account, if setup properly it would automatically add a webmail.your.tld subdomain and would also allow your.tld/webmail to access webmail options.

I too have been looking for the best way to do this and I am by no means an expert (like Till or Falko :eek:, One Day!:rolleyes:) but I have found a solution that worked for me.

The following will allow all domains, subdomains, and alias domains to access webmail using (as an example) http://your.tld/webmail

NOTE: I picked this up from some other post after hours of searching and did not bookmark the page but kept notes.

Step one: Make your symlink for webmail (taken from Step 17 of that link)

ln -s /usr/share/squirrelmail/ /var/www/webmail
Step two: Add global link for all sites
I use nano but you can use what you want:

nano /etc/apache2/conf.d/apache2-doc
Step three: Go to end of file and add

Alias /webmail /var/www/webmail/

<Directory "/var/www/webmail/">
Options Indexes FollowSymlinks
AllowOverride None
Order allow,deny
Allow from all
AddDefaultCharset off

This will work with a successful install of ISPConfig running on Debian.
Also if you have installed using the recommended install docs on the ISPConfig website you could choose to install SquirrelMail differently by changing the folder in Step one.
By doing so you can ultimately setup your /webmail to provide more than one webmail client.
EX: here

If you checked out the example you can see I offer more than just SquirrelMail but Horde and Roundcube.

Here is the concept:
If you follow Falko's "Perfect Setup guide" you will get to Step one (depending on your install) from the above post.

Insted of:

ln -s /usr/share/squirrelmail/ /var/www/webmail

ln -s /usr/share/squirrelmail/ /var/www/webmail/squirrelmail
In doing so you link squirrelmail to /webmail/squirrelmail allowing yourself to add more than one webmail client to your /webmail link.
With some simple code you can create an index page that can point to your different webmail clients.

EX. (If your symlinks are setup correctly)

<!DOCTYPE html>
<html lang="en">
          <li><a href="/webmail/horde">Horde</a></li>
          <li><a href="/webmail/roundcube">Roundcube</a></li>
          <li><a href="/webmail/squirrelmail">SquirrelMail</a></li>

If your looking for help on how to do that please use the following link.

With that I hope this helped. If not please let me know if I can update this post.

Falko, Till.... I just what to say thanks for the time, effort, and charity.


rocker2344 10th March 2011 22:36 < it tries and downlaods the file i want it to work like when i go to http://ip/webmail

falko 11th March 2011 16:54

Did you enable PHP for the web site?

All times are GMT +2. The time now is 11:07.

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