PDA

View Full Version : www.yourdomain.com/webmail option


The General
28th June 2011, 19:38
Hi everyone, I have noticed that there seems to be quite a few people that would like to have the option of putting a /webmail symlink for the access to squirrelmail login screen.

I have tried the "fix" changing the apache2-doc file and it doesn't work for me!

Is there someway that there can be a checkbox for this option to be enabled so that to enable www.yourdomain.com/webmail you just click a checkbox in the mail domain setup screen?

HyperAtom
30th June 2011, 17:22
Yep, cool idea will save people creating Alias manually which I have done for ages.

Toucan
4th July 2011, 01:33
I also normally do this manually without problems. ... but I know there have been issues from previous conversations with Falko. By running shared applications under different users it can create problems. Example could be one user having elevated rights using by running squirrel mail under his own user - could potentially give more rights than that of the default owner.

Also, some applications won't run properly unless under the correct user.

If I remember right, for these reasons there are no plans to add this feature.

Allytech
2nd September 2011, 20:49
just put:

Sites -> options -> " Apache directives"

RewriteEngine on
RewriteRule ^/webmail(.*) http://%{SERVER_ADDR}/webmail [R,L]

theWeird
5th September 2011, 09:55
you can also use this in apache directives:

Alias /webmail /var/www/webmail
(in this example /var/www/webmail is the absolute path to your webmail installation)

If you want to enable this folder alias for all customers on the server, create a file /etc/apache2/conf.d/webmail with the above line as content.
After a /etc/init.d/apache2 reload the alias is used by ALL websites.

lordcalin
3rd January 2012, 19:30
I guess I went about the solve for this the opposite way of everyone else.

Instead of allowing /webmail to certain sites, I created a global site alias for webmail.* (or just mail.* on some installations) and then on sites that should have webmail, I just make sure the webmail subdomain is added to the DNS ... keeps the webmail running as the special made webmail user for security, and since it is installed as it's own website, and still allows me to pick and choose who gets it.