Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 3 > General

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 29th June 2009, 05:48
jbryner jbryner is offline
Junior Member
 
Join Date: May 2009
Posts: 17
Thanks: 0
Thanked 2 Times in 2 Posts
Default HELP with symlink to webmail

This might be a completely backwards way of going about it, but I was trying to get set up so that the users could get to webmail by going to www.theirdomain.com/webmail

So, I created a link in the users web directory that points to /var/www/webmail/

Now here's the catch I run into.

I have 5 domains set up, and some work with www.domain1.com/webmail

there are 2 domains that won't load the login for squirrel mail, they return a 403, forbidden error page.

This seems really odd to me, and I haven't been able to track it down, as the domains are set up identically except for name, and it wouldn't seem that the permissions would foul up one, and not the other.

Any help would be greatly appreciated, as the domains that wont load the webmail sections are for my "high maintenance" clients. It figures I suppose.

I really want to be off the windows server I have been running up til now, and a solution for this one will allow me to get away from Bill and hte gang..

Thanks guys.
Reply With Quote
Sponsored Links
  #2  
Old 29th June 2009, 08:43
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 35,981
Thanks: 825
Thanked 5,371 Times in 4,218 Posts
Default

You can use symlinks only on webspaces were you use either mod_php or php-cgi / fcgi without suexec. Otherwise you will get a permission error as the security settings in suphp and suexec prevent the execution of code that is outside of a website.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #3  
Old 30th June 2009, 05:17
jbryner jbryner is offline
Junior Member
 
Join Date: May 2009
Posts: 17
Thanks: 0
Thanked 2 Times in 2 Posts
Default Thanks Till

Makes sense, and after testing works like a charm. I did come up with another solution in searching, and it is found in this thread

http://www.howtoforge.com/forums/showthread.php?t=34571

Near the end of the first page of the thread, fastgrav explains that adding the following

Hi,

add the following lines in /etc/apache2/conf.d/apache2-doc

Alias /webmail /usr/share/squirrelmail/

<Directory "/usr/share/squirrelmail/">
Options Indexes FollowSymlinks
AllowOverride None
Order allow,deny
Allow from all
AddDefaultCharset off
</Directory>

and every virtual domain will have a www.virt-domain.com/webmail

and it works great without relying on having to worry too much about the settings per domain.
Reply With Quote
  #4  
Old 30th June 2009, 09:34
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 35,981
Thanks: 825
Thanked 5,371 Times in 4,218 Posts
Default

But this has the same limitations then the other solution. It wont work with suphp and it wornt work with suexec as it relys on the settings of the domain were you call it trough.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #5  
Old 5th July 2009, 12:20
voidzero voidzero is offline
HowtoForge Supporter
 
Join Date: Mar 2009
Posts: 63
Thanks: 11
Thanked 3 Times in 3 Posts
 
Talking

My solution is this:
  • The maildomain (MX) is mail.somehost.com
  • When this domain is opened you normally get /var/www/index.html saying 'It Works!'
  • So I added this .htaccess file and set the default config to AllowOverride All (since it's only editable by root anyway):
Code:
RewriteEngine On
RewriteBase /
Options +FollowSymlinks
RewriteCond %{HTTP_HOST} ^mail\. [NC]
RewriteRule .* http://my-main-ispconfig-url/webmail/src/login.php [R=301,L]

Redirect /mail http://my-main-ispconfig-url/webmail/src/login.php
Now people can open the URL at http://mail.somehost.com and also, unconfigured but working domains can be opened at http://somehost.com/mail

Hope this helps!
Reply With Quote
Reply

Bookmarks

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
Webmail on ISPConfig 3 Master One Installation/Configuration 8 6th June 2013 09:27
Webmail Symlink purechaos Installation/Configuration 8 25th June 2009 17:43
Pointing Webmail and Postfix Mail Server to Static IP Address need_a_linux_brain Installation/Configuration 0 12th May 2009 22:28
RoundCube Webmail "AllowOverride Options" Location fdsg72-lux Installation/Configuration 1 13th November 2008 12:25
Webmail alias aethiolas HOWTO-Related Questions 2 21st November 2005 18:21


All times are GMT +2. The time now is 19:35.


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