View Single Post
  #8  
Old 11th December 2010, 08:52
ByteMe Networking ByteMe Networking is offline
Junior Member
 
Join Date: Dec 2010
Location: Virginia Beach VA.
Posts: 24
Thanks: 7
Thanked 7 Times in 3 Posts
Thumbs up 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 , One Day!) 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
Reply With Quote