Thanks, but I create the subdomain. And I set the A DNS for it. And still dont work. The same... every site domain.tld on server goes on the squirrelmail exept the subdomain.domain.tld there is the default web. Any other ideas?

meaby I dont understant... What you think with "create subdomain that will pointing to your webmail" I will pointing with CNAME to domain.tld/webmail?

From what I gather, you want to create a subdomain, e.g., webmail.example.com, via which your webmail software is accessible.

Further, you want webmail.example.com to remain in the browser's address field, even though the "actual" location of the webmail software may reside elsewhere, whether within Apache's document root or not.

Correct?

There is an important proviso mentioned in the step of the tutorial to which you refer: "Also make sure that the vhost webmail.example.com does not exist in ISPConfig [emphasis mine] (otherwise both vhosts will interfere with each other!)."

You don't need to create a redirect in ISPConfig, either.

Either you need to follow the tutorial exactly (don't create the subdomain in ISPConfig) or, if you'd rather manage the subdomain in ISPConfig, you need to:

1.) Create the domain (not subdomain, as those are simply aliases) in ISPConfig, e.g., webmail.example.com. Again, do not specify a redirect of any kind for the domain.

2.) Create an A-record for webmail.example.com in your DNS configuration, wherever that might reside, and point it to your server's IP address.

Yes, that's correct; you should be entering the Apache directives in webmail.example.com, not example.com. I apologize for the typo and have corrected my previous post.

Given that you are indeed receiving permission denied errors, your configuration is correct thus far.

The issue now is the permissions on the /usr/share/squirrelmail directory. More specifically, the user with whose credentials the webserver is running lacks sufficient access.

So, you need to set appropriate permissions on the /usr/share/squirrelmail directory. To be able to do this correctly and securely, we need to know which PHP implementation are you using? Mod-PHP, Fast-CGI, SuPHP, etc.

Also, what are the current permissions on this directory? List out the parent directory's contents:

Code:

# ls -lah /usr/share

I'm looking for something like this:

Code:

drwxr-xr-x 4 root root 4.0K Aug 12 07:05 squirrelmail

It would also be helpful if you list the contents of the directory, too, e.g.:

After installing SquirrelMail myself and examining the Apache logs concerning the message that you now receive in the browser, "Forbidden: You don't have permission to access / on this server", I found the following:

These messages indicate that the permission denial is happening at the Apache level (not the filesystem level), which is good. Also, your permissions on the /usr/share/squirrelmail directory are correct, so no need to change those. (As a side note, it is undesirable to change the default permissions on files/directories created via package installers. Doing so should always be a last resort.)

To allow access to that directory, it is necessary to add something similar to the following to your Apache configuration (ignore the first [Alias] line if you've already added that):

I should mention also that the method for accessing SquirrelMail at webmail.example.com, as described in the tutorial, does work. (Before attempting it, however, please see my posts in this related thread for common pitfalls regarding the cited tutorial: http://www.howtoforge.com/forums/showthread.php?t=52042&page=4 .)

That said, a more robust implementation would be to create a copy of the default SquirrelMail configuration file for Apache (these instructions are Debian-specific [which includes Ubuntu], so adapt accordingly)