Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 2 > Installation/Configuration

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 6th March 2009, 09:03
robilaur robilaur is offline
Member
 
Join Date: Sep 2007
Location: Romania
Posts: 86
Thanks: 4
Thanked 12 Times in 9 Posts
Send a message via Yahoo to robilaur
Post Simple rezolution to domain.tld/webmail to mail.domain.tld

Hello

Many of u ar tryng to change the domain.tld/webmail to webmail.domain.tld.
So I have tryed for adout a week to come up fith something so...here ar the results.

After installing squirrlemail there is a comand line in the how to install ISPConfi 3 tutorial and namely this
Code:
ln -s /usr/share/squirrelmail/ /var/www/webmail
. ok u can make that comand and configure you mail client. After that make a new client in ISPConfig with a new site and the domain webmail.domain.tld.
After this the folder /var/clients/client(nr)/web(nr)/web is creted "where nr is number".
Now....
Code:
ln -s /usr/share/squirrelmail/* /var/clients/client(nr)/web(nr)/web
Now seting permisions
Code:
chmod +x /var/lib/squirrelmail/*
Code:
chown -R web(nr) /var/lib/squirrelmail
So thats about it.


Hope it works for u to.

If this works send some feedback or thanx

Last edited by robilaur; 13th March 2009 at 08:55.
Reply With Quote
The Following 2 Users Say Thank You to robilaur For This Useful Post:
falko (7th March 2009), Up2NoGood (7th March 2009)
Sponsored Links
  #2  
Old 7th March 2009, 21:54
Up2NoGood Up2NoGood is offline
Junior Member
 
Join Date: Feb 2009
Posts: 4
Thanks: 3
Thanked 0 Times in 0 Posts
Default Some additions

Hi All

Firstly thank you Robilaur for this great post, I have been trying for a while to sort this. I hope you do not mind but may I make some additions to your post that may help others that are trying to achieve this and also enable Squirrelmail over HTTPS.

firstly I have posted my system spec so that if any one has similar then they will now that this works:

Debian 5 Lenny
ISPConfig 3 RC2
Squirrelmail
Falkos (Perfect server setup for the above operating system)


I followed Robilaurs instructions but just to clarify some things.

Code:
ln -s /usr/share/squirrelmail/* :/var/clients/client(nr)/web(nr)/web
On a Dabian system you have to include /www in the symlink.

e.g.
Code:
ln -s /usr/share/squirrelmail/* :/var/www/clients/client(nr)/web(nr)/web
Also following Squirellmail's recommendations the command:
Code:
chmod +x /var/lib/squirrelmail/*
Should be:
Code:
chmod 775 /var/lib/squirrelmail/
And you should also change the permissions of the users .pref folder otherwise you will get an error when trying to log in

So change the .pref folder to:
Code:
chmod 664 user@usersdomain.co.uk.pref
Now if you enable a site to have SSL then create an SSL certificate for it.

now create a redirect by selecting redirect type (R) and redirecting to Https://webmail.yourdomain.co.uk. This means that if a user types in Http by accident it will auto direct to Https.

You can now delete the old /webmail folder as it is no longer used.
Code:
rm -r /var/www/webmail
That's it.... just for cleanliness sake only, restart Apache just to be on the safe side
Code:
/etc/init.d/apache2 restart
I hope this clarifies a few things and also helps out others in the same boat.

Up2NoGood
Reply With Quote
  #3  
Old 8th March 2009, 13:30
Antennipasi Antennipasi is offline
ISPConfig Developer
 
Join Date: Dec 2008
Location: Finland
Posts: 67
Thanks: 6
Thanked 13 Times in 12 Posts
Default

Quote:
Originally Posted by Up2NoGood View Post
Code:
ln -s /usr/share/squirrelmail/* :/var/clients/client(nr)/web(nr)/web
On a Dabian system you have to include /www in the symlink.

e.g.
Code:
ln -s /usr/share/squirrelmail/* :/var/www/clients/client(nr)/web(nr)/web
this is due recent change of default webfolder location.
change was made 02-Mar-2009. if one has not updated from SVN after that, Robilaur's original symlink works.
Reply With Quote
The Following User Says Thank You to Antennipasi For This Useful Post:
Up2NoGood (8th March 2009)
  #4  
Old 9th March 2009, 07:42
robilaur robilaur is offline
Member
 
Join Date: Sep 2007
Location: Romania
Posts: 86
Thanks: 4
Thanked 12 Times in 9 Posts
Send a message via Yahoo to robilaur
Default

Hy all..... well thanx for the addition that u made...i was hoping that some of u whould come with additions so ve can make this work as good as it can.
Thanx again
Reply With Quote
  #5  
Old 9th March 2009, 15:38
id10t id10t is offline
Senior Member
 
Join Date: Nov 2008
Posts: 240
Thanks: 2
Thanked 22 Times in 22 Posts
 
Default

Even better would be a rewrite rule on the webserver level -

Code:
RewriteEngine on
RewriteCond    %{REQUEST_FILENAME}  -d
RewriteRule    ^(.+[^/])$           $1/  [R]
RewriteRule   ^/webmail/  http://webmail.example.com [R,L]
Stick this in the "optional" section at the bottom of the site page in ispconfig and it will take all requests to a directory with no trailing / (this converts /webmail to /webmail/), and then takes /webmail/, and /webmail/* and redirects them to http://webmail.example.com.

Last edited by id10t; 9th March 2009 at 15:48.
Reply With Quote
Reply

Bookmarks

Tags
https, mail, squirrelmail, webmail

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Need help getting started simple simple shell script dhonnoll78 Programming/Scripts 1 18th December 2007 12:05
2 Simple features wpwood3 Feature Requests 0 28th October 2007 22:46


All times are GMT +2. The time now is 12:18.


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