Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a freshly set up domain and server. The server is set up with squirrelmail and ISPConfig. When I refer to the server's IP I'm taken to the /var/www folder, however if I refer to the domain name I'm taken to /var/www/, which makes accessing /var/www/webmail impossible.

I'm wondering if the same error is the reason why sending mail to can't be done, even though addresses in ISPConfig is set up. For instance, the address is created in ISPConfig, but when I send a mail to that address I get an automated reply from saying "user "tomas" does not exist under"

I'm guessing I've done something wrong by adding the domain that hosts ISPConfig, under ISPConfig.

Could someone request additional information or shed some light on this quanandrum

share|improve this question

closed as off-topic by HopelessN00b Mar 8 '15 at 21:40

  • This question does not appear to be about server, networking, or related infrastructure administration within the scope defined in the help center.
If this question can be reworded to fit the rules in the help center, please edit the question.

up vote 0 down vote accepted

Your webserver is using "name based" virtual hosts, and has the DocumentRoot for the site named set to /var/www/ This sounds like something ISPConfig would do since it's a control panel for setting up hosted sites.

The obvious answer would be to move /var/www/webmail to /var/www/ (or to just use rather than your hostname).

As for the mail, there are two possibilities, either your mailserver wasn't configured by ISPConfig to use it's virtual user list, or your MX record for is pointing somewhere else, so mail gets delivered there instead of to you.

share|improve this answer

There is an another way for doing it.

edit your /etc/apache2/httpd.conf

Add the following line to it.

Alias /webmail /usr/share/squirrelmail

Replace the /usr/share/squirrelmail with the path of your mail (I haven't tested it with a document inside /var/www).

Restart apache by

service apache2 restart

You are ready to rock.

share|improve this answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.