HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   Installation/Configuration (http://www.howtoforge.com/forums/forumdisplay.php?f=27)
-   -   Squiralmail - webmail alias not working (http://www.howtoforge.com/forums/showthread.php?t=49618)

florix.net 24th October 2010 06:29

Squiralmail - webmail alias not working
 
Hi,

I installed ISPConfig 3.0.3 on ubuntu 10.04.

Everything is working fine except the http://www.domain.com/webmail 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.

Richard

till 24th October 2010 12: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. webmail.yourdomain.com and install a webmail client of your choice into that website.

florix.net 24th October 2010 19: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 11: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.

florix.net 25th October 2010 16:45

Florix.net
 
1 Attachment(s)
Hi,

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 customsurveyor.com

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 16:53

Select the IP address in the IP address field and select www for auto subdomain. By the way, why did you reinstall?

florix.net 25th October 2010 17:02

Hi,

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

http://www.customsurveyor.com/ is going to default page
http://customsurveyor.com/ is going to ISPConfig page

http://customsurveyor.com/webmail not working
http://www.customsurveyor.com/webmail 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 florix.net


Thanks
Richard

ByteMe Networking 11th December 2010 08: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)
Code:

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

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

Alias /webmail /var/www/webmail/

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

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

ln -s /usr/share/squirrelmail/ /var/www/webmail
Do
Code:

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)
Code:

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

If your looking for help on how to do that please use the following link.
http://lmgtfy.com/?q=how+to+write+html+code

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

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

Thanks,
Casey

rocker2344 10th March 2011 21:36

http://aditlfai.com/webmail/index.php < it tries and downlaods the file i want it to work like when i go to http://ip/webmail

falko 11th March 2011 15:54

Did you enable PHP for the aditlfai.com web site?


All times are GMT +2. The time now is 06:02.

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