Skip to main content

Can't access webmail

Comments

4 comments

  • luthfiset
    Problem solved. After a slightly change on httpd.conf
    ServerName mail.domain.com ServerAlias cpanel.* whm.* webmail.* webdisk.* cpcalendars.* cpcontacts.* DocumentRoot /var/www/html ServerAdmin email@domain.com suPHP_UserGroup nobody nobody SecRuleEngine Off RewriteEngine On RewriteCond %{HTTP_HOST} !^mail.domain.com$ RewriteCond %{HTTP_HOST} ^cpanel\. RewriteRule ^/(.*) http://127.0.0.1:2082/$1 [P] RewriteCond %{HTTP_HOST} !^mail.domain.com$ RewriteCond %{HTTP_HOST} ^webmail\. RewriteRule ^/(.*) http://127.0.0.1:2095/$1 [P]
    webmail port is wrong (2095), then I change it to 2096 and webmail.domain.com working again.
    0
  • cPanelMichael
    Hello, It looks like you may have been using custom a Apache virtual host entry for this domain name, or custom Apache templates in the /var/cpanel/templates/apache2_4 directory. Can you verify if that's the case? Thank you.
    0
  • luthfiset
    Hello, It looks like you may have been using custom a Apache virtual host entry for this domain name, or custom Apache templates in the /var/cpanel/templates/apache2_4 directory. Can you verify if that's the case? Thank you.

    We never edit cpanel template. This case hapen when we update WHM update. Here some line inside /var/cpanel/templates/apache2_4/ea4_main.default
    RewriteEngine On RewriteCond %{HTTP_HOST} !^[% wildcard_safe(servername) %]$ RewriteCond %{HTTP_HOST} ^cpanel\. RewriteRule ^/(.*) http://127.0.0.1:2082/$1 [P] RewriteCond %{HTTP_HOST} !^[% wildcard_safe(servername) %]$ RewriteCond %{HTTP_HOST} ^webmail\. RewriteRule ^/(.*) http://127.0.0.1:2095/$1 [P]
    On the template itself use port 2095 not 2096. Maybe it's a typo or somethin i don't know because we never edit those file.
    0
  • cPanelMichael
    Hello, Could you open a support ticket using the link in my signature so we can take a closer look at your system to see what's happening? Thank you.
    0

Please sign in to leave a comment.