http://xxx:81/webmail -> http://mail.xxx

Discussion in 'Installation/Configuration' started by VMartins, Oct 7, 2006.

  1. VMartins

    VMartins New Member

    Hey All,

    I'm here again... :eek:

    I install the Uebimaiu in my ISCConfig Server, but the port 81 in not accessible in many places, like in my work place.

    I want to access my mail in the simple way, like: http://mail.domain. Actually I access in http://domain:81/webmail.

    I read others posts about this issue, but many is so confused to me. I don't want the redirect solution, because I think in the places where uncommom ports 81 is not accessible.

    Antecipated Thanks,

    Vinicius
    Sao Paulo - Brasil
     
  2. Hans

    Hans Moderator ISPConfig Developer

    Last edited: Oct 7, 2006
  3. VMartins

    VMartins New Member

    Another question...

    Hello Hans,

    I will try RoundCube, the tutorial is very clear! :)

    Are there another tutorial to setup http://domain:81 to http://admin.domain?

    This mode is very helpful outsite my server network.

    Thanks,

    Vinicius
     
  4. falko

    falko Super Moderator ISPConfig Developer

  5. VMartins

    VMartins New Member

    I followed the RoudCube Tutorial, is very simple and clear.

    But, I have some one quention:

    I already have a www.domain entry, I want to use RoundCube Mail for this domain. I add a co-domain webmail.domain forward to /webmail. I install the RoundCube Mail in /var/www/domain/web/webmail. When I access http://webmail.domain nothing happend, but when I access http://www.domain/webmail everything is good!

    Is the problem in the main.inc.php? Or is in the forward or DNS Entry?

    Thanks All,

    Vinicius
    Sao Paulo - Brasil
     
  6. till

    till Super Moderator Staff Member ISPConfig Developer

    Did you create a DNS A-Record for webmail.domain.com pointing to the same IP address then the domain domain.com?
     
  7. VMartins

    VMartins New Member

    Thanks Till,

    I learned a lot of things in only one week.

    I hope contribute in the short future helping other members...

    Regards,

    Vinicius
     
  8. interprb

    interprb New Member

    Along the same lines...

    Hi all, I am new to the forums. I had the same problem and it was a dns issue, not creating my webmail.domain.com record to point to https//domain.domain.com:81/xxx/xxx fixed 99% of it. However, I now have a very small problem. The forward / at the end of the address keeps it from working. Take it away and good to go. I tried both ways in co-domain setup forward but no luck. ANy ideas?

    thanks Interprb
     
  9. Hans

    Hans Moderator ISPConfig Developer

    In the DNS-rescords of your domainname (at your DNS-provider), there is a A-record which points to your server.
    Let's say: www.mydomain.tld points to your IP-address.
    Make sure that webmail.mydomain.tld points to your IP-address as well.
     
  10. interprb

    interprb New Member

    Thanks Hans for your help. The dns records are ok. I error happens when a / is placed at the end of the address. It seems that the domain forward might add this. ?? I also noticed that redirect.php is added to the end
    ex. https://domain.domain.tld:81/squirrelmail/src/webmail/login.php/ causes the error. You only get a login with no logo pic and can't log in. Take the / off the end and it works. Maybe in the ispconf co-domain script that adds the / ? I really don't know.

    Thanks again.
     
  11. VMartins

    VMartins New Member

    Problem saving RoundCube Personal Settings

    Hans,

    I followed your RoundCube Guide, was very easy. But, I don't get save my Personal Settings. I configure Time Zone, Identity and others things, and save. I logoff and after I login this configs is missing.

    I check the pormissions of all files, all have the www-data.

    I don't know what happen.

    Thanks,

    Vinicius
     
  12. Hans

    Hans Moderator ISPConfig Developer

    Hi,

    I have read about "saving identities" problem in RoundCube before.
    I had the same problem when i used the .pkg package provided by ISPConfig.

    I do not have these problems, since i've setup and use RoundCube according my Howto.

    The only thing is that i still have to remove the .@www. within the emailaddress.

    I've also read in RoundCube forums that it might help if you set your emailaccount to "default" within the RoundCube identities screen.

    I would say, give this option a try.

    Let me know your experience about this.
     
  13. VMartins

    VMartins New Member

    Hi Hans,

    I find a way to manage this problem. First I erase all registers in the MySQL database with PHPMyAdmin, erase the table sessions and identities from Roundcube Database. After that, I login with the ISPConfig user like webx_AAAAA, I change and save my personal settings. And when I relogin my settings is correct...

    I don't agree with my solution, but is functional.... I found in the Google, RoundCube User List, something like a patch, but I couldn't download it.

    This my experience....
     
  14. Hans

    Hans Moderator ISPConfig Developer

    I did not have your problems, but your solution sounds great.
    I'm happy that it works now for you.

    RoundCube is getting better and better, we must not forget that it is still in beta.
    However, the current version works really nice on my server.
     
  15. falko

    falko Super Moderator ISPConfig Developer

    Check your Vhosts_ispconfig.conf. You should find a rewrite rule there that does the forwarding. What does it look like?
     
  16. jfruano

    jfruano New Member

    Hi

    I have installed following the instrucciones of this how to, but the following error appear in the login : DB error: Couldn't access users table (Unknown column 'id' in 'field list')

    They can help me?

    Thank you
     
  17. Ovidiu

    Ovidiu Active Member

    I would sugest the easiest solution, I use at the moment:

    create a manual vhost for mail.* which forwards everzone of zour hosted domains to a single installation of zour favorite webemail client.

    in mz case I have installed squirrelmail and roundcube (you can use the tutorials of hans) into /var/www/webmail/web/squirrelmail and /var/www/webmail/web/roundcube
    my /var/www/webmail/web/index.html is just a simple page which lets you choose between those 2 webmailers.
    then I created the mail.* vhost pointing to /var/www/webmail/web/ and created mail.hosteddoamins.com DNS entries for all my hosted domains.
    you need no redirect, the mail.* vhost will catch every access to mail subdomain of each of your domains....

    I hope I made myself clear about this.
     
  18. 3cwired_com

    3cwired_com New Member

    I am sorry, can you break it down a little more for me please.
     
  19. meekish

    meekish New Member

    I am having this problem as well. If I curl http://webmail.mydomain.com, it works just fine, but if I try to pull it up in a browser, forward slash is added and I get a page not found error. My webmail vhost entry looks like this:

    Code:
    #
    #
    #
    ######################################
    # Vhost: webmail.reformationstudios.com:80
    ######################################
    #
    #
    <VirtualHost 64.79.199.117:80>
    ServerName webmail.reformationstudios.com:80
    ServerAdmin [email protected]
    DocumentRoot /var/www/web11/web
    DirectoryIndex index.html index.htm index.php index.php5 index.php4 index.php3 index.shtml index.cgi index.pl index.jsp Default.htm default.htm
    ScriptAlias  /cgi-bin/ /var/www/web11/cgi-bin/
    AddHandler cgi-script .cgi
    AddHandler cgi-script .pl
    ErrorLog /var/www/web11/log/error.log
    AddType application/x-httpd-php .php .php3 .php4 .php5
    <Files *.php>
        SetOutputFilter PHP
        SetInputFilter PHP
    </Files>
    <Files *.php3>
        SetOutputFilter PHP
        SetInputFilter PHP
    </Files>
    <Files *.php4>
        SetOutputFilter PHP
        SetInputFilter PHP
    </Files>
    <Files *.php5>
        SetOutputFilter PHP
        SetInputFilter PHP
    </Files>
    php_admin_flag safe_mode Off
    Alias /error/ "/var/www/web11/web/error/"
    ErrorDocument 400 /error/invalidSyntax.html
    ErrorDocument 401 /error/authorizationRequired.html
    ErrorDocument 403 /error/forbidden.html
    ErrorDocument 404 /error/fileNotFound.html
    ErrorDocument 405 /error/methodNotAllowed.html
    ErrorDocument 500 /error/internalServerError.html
    ErrorDocument 503 /error/overloaded.html
    AliasMatch ^/~([^/]+)(/(.*))? /var/www/web11/user/$1/web/$3
    AliasMatch ^/users/([^/]+)(/(.*))? /var/www/web11/user/$1/web/$3
    </VirtualHost>
    #
    #
    
    And the vhost entry for the main domain:

    Code:
    ######################################
    # Vhost: www.reformationstudios.com:80
    ######################################
    #
    #
    <VirtualHost 64.79.199.117:80>
    RewriteEngine On
    RewriteRule ^/(.*) http://127.0.0.1:8000/$1 [P]
    <Location /> 
      Order deny,allow 
      Allow from All 
    </Location>
    ServerName www.reformationstudios.com:80
    ServerAdmin [email protected]
    DocumentRoot /var/www/web10/web
    ServerAlias reformationstudios.com
    DirectoryIndex index.html index.htm index.php index.php5 index.php4 index.php3 index.shtml index.cgi index.pl index.jsp Default.htm default.htm
    ScriptAlias  /cgi-bin/ /var/www/web10/cgi-bin/
    AddHandler cgi-script .cgi
    AddHandler cgi-script .pl
    ErrorLog /var/www/web10/log/error.log
    AddType application/x-httpd-php .php .php3 .php4 .php5
    <Files *.php>
        SetOutputFilter PHP
        SetInputFilter PHP
    </Files>
    <Files *.php3>
        SetOutputFilter PHP
        SetInputFilter PHP
    </Files>
    <Files *.php4>
        SetOutputFilter PHP
        SetInputFilter PHP
    </Files>
    <Files *.php5>
        SetOutputFilter PHP
        SetInputFilter PHP
    </Files>
    php_admin_flag safe_mode Off
    Alias /error/ "/var/www/web10/web/error/"
    ErrorDocument 400 /error/invalidSyntax.html
    ErrorDocument 401 /error/authorizationRequired.html
    ErrorDocument 403 /error/forbidden.html
    ErrorDocument 404 /error/fileNotFound.html
    ErrorDocument 405 /error/methodNotAllowed.html
    ErrorDocument 500 /error/internalServerError.html
    ErrorDocument 503 /error/overloaded.html
    AliasMatch ^/~([^/]+)(/(.*))? /var/www/web10/user/$1/web/$3
    AliasMatch ^/users/([^/]+)(/(.*))? /var/www/web10/user/$1/web/$3
    </VirtualHost>
    #
    #
    #
    
     
    Last edited: Nov 7, 2006
  20. till

    till Super Moderator Staff Member ISPConfig Developer

    In the vhost webmail.reformationstudios.com is no forward. Please post the vhost where you entered the forwarding code that shall forward to webmail.reformationstudios.com.
     

Share This Page