PDA

View Full Version : keep getting 404 error with ISPconfig webmail


Heeter
6th July 2009, 16:59
Hi all,

I am trying to figure out why I keep getting 404 error when I type in my domain address "www.mydomain.com/webmail"

This is both inside and outside the network. When I type in the IP address inside the network "192.168.1.100/webmail" squirrelmail does come up.

This is for ISPConfig3/Debian5

Thanks

Heeter
________
WHOLESALE VAPORIZER (http://vaporizerwholesaler.com)

Rescue9
6th July 2009, 18:20
REMOVED: I didn't properly read the question. My answer was in error.

till
6th July 2009, 20:25
Thats easy as you can not connect to webmail trough the domain as there is no directory named webmail in the website www.mydomain.com. You can either make a symlink inside the website directory that points to the sources of the webmail application (works only for mod_php oe cgi /fcgi php without suexec) or you create a nwe website like webmail.yourdomain.com and install a webmail client of your choice in it.

Heeter
6th July 2009, 22:08
Hi Till,

How does the domain go about answering email from outside the network without installing their own webmail?

Will a package be made available to install like ISPConfig2?

Thanks again,

Heeter
________
Jaguar xjr-15 history (http://www.ford-wiki.com/wiki/Jaguar_XJR-15)

Mark_NL
7th July 2009, 13:00
Can' you just add an Alias + some directory directives to you apache2.conf
did that and works fine on all domains, patched roundcube so it autom. picks up the correct domain for initial user setup .. et voila

Heeter
7th July 2009, 16:34
Great Idea, MarkNL

Wold you be able to give a little more detail on that setup? That would be much appreciated.

Thanks

Heeter
________
Ultimate fighter (http://ultimatefighters.org/)

Mark_NL
7th July 2009, 17:20
I wanted all new and existing customers have:
www.domain.tld/phpmyadmin
www.domain.tld/webmail

So i installed phpmyadmin and roundcube in /var/www/sharedip (this way it's also reachable through http://serverip/...

/var/www/sharedip/_phpmyadmin
/var/www/sharedip/_webmail

(i put _ infront to distinguish normal folders from alias-ed dirs)

- Make a extra.conf in /etc/apache2
Alias /phpmyadmin/ /var/www/sharedip/_phpmyadmin/
Alias /webmail/ /var/www/sharedip/_webmail/
<Directory "/var/www/sharedip/">
AddType application/x-httpd-php .php
AllowOverride Options Limit FileInfo
</Directory>

The AllowOverride is there for roundcube to work correctly (with it's .htaccess)

Add the following line at the END of your /etc/apache2/apache2.conf:
Include /etc/apache2/extra.conf

Now install roundcube as normal, just follow the instructions and use the test at the end to see if everything works.

Now open main.inc.php and go to line 76. It should say:
$rcmail_config['username_domain'] = '';
change that to:

preg_match('/.*?\.(.*)/', $_SERVER['SERVER_NAME'], $aMatches);
$rcmail_config['username_domain'] = $aMatches[1];

It's probably not watertight, but it works :)