Email does not work tab

Discussion in 'Installation/Configuration' started by zdenek_vz800, Jan 12, 2015.

  1. zdenek_vz800

    zdenek_vz800 New Member

    Ubuntu 14.04 on everything works with isp config latest version in order. But if you click on the tab email appears only a blank page, and if you click on any subheading, and nothing set. Until recently, everything worked fine
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    Most likely you addeca alias /mail somewhere in your apache config. Find this alias and rename it to e.g. /webmail and restart apache.
     
  3. zdenek_vz800

    zdenek_vz800 New Member

    it's not that - webmail it works ok- directly in the administration www.domain.ltd: 8080 Bookmark Email does not work, and all others as Vserver, configuration, monitoring, etc. work fine
     
  4. till

    till Super Moderator Staff Member ISPConfig Developer

    I'am not talking about webmil, I talked about a misconfiguration in your apache config. run:

    grep -r mail /etc/apache2
     
  5. zdenek_vz800

    zdenek_vz800 New Member


    I understand - apache is fine - other tabs work
     

    Attached Files:

  6. till

    till Super Moderator Staff Member ISPConfig Developer

    Please post the output of the command:

    grep -r mail /etc/apache2
     
  7. zdenek_vz800

    zdenek_vz800 New Member

    root@rack:~# grep -r mail /etc/apache2
    /etc/apache2/magic:# mail.news: file(1) magic for mail and news
    /etc/apache2/magic:# There are tests to ascmagic.c to cope with mail and news.
    /etc/apache2/magic:# see http://lists.gnupg.org/pipermail/gnupg-devel/1999-September/016052.html
    /etc/apache2/conf-available/localized-error-pages.conf:# ServerAdmin email address regardless of the setting of ServerSignature.
    /etc/apache2/conf-available/security.conf:# Set to "EMail" to also include a mailto: link to the ServerAdmin.
    /etc/apache2/sites-available/www.xx.xx.vhost: ServerAlias mail.xx.xx
    /etc/apache2/sites-available/www.xx.xx.vhost: ServerAlias www.webmail.xx.xx webmail.xx.xx
    /etc/apache2/sites-available/www.xx.xx.vhost: RewriteCond %{HTTP_HOST} ^mail\.xx\.cz$ [NC]
    /etc/apache2/sites-available/www.xx.xx.vhost: RewriteCond %{REQUEST_URI} !^/sluzby/mail/
    /etc/apache2/sites-available/www.xx.xx.vhost: RewriteRule ^/(.*)$ /sluzby/mail/$1
    /etc/apache2/sites-available/www.xx.xx.vhost: RewriteCond %{HTTP_HOST} ^webmail\.xx\.cz$ [NC]
    /etc/apache2/sites-available/www.xx.xx.vhost: RewriteCond %{REQUEST_URI} !^/sluzby/webmail/
    /etc/apache2/sites-available/www.xx.xx.vhost: RewriteRule ^/(.*)$ /sluzby/webmail/$1
    /etc/apache2/sites-available/www.xx.xx.vhost: RewriteCond %{HTTP_HOST} ^www\.webmail\.xx\.cz$ [NC]
    /etc/apache2/sites-available/www.xx.xx.vhost: RewriteCond %{REQUEST_URI} !^/sluzby/webmail/
    /etc/apache2/sites-available/www.xx.xx.vhost: RewriteRule ^/(.*)$ /sluzby/webmail/$1
    /etc/apache2/sites-available/xxx.xxx.cz.vhost: php_admin_value sendmail_path "/usr/sbin/sendmail -t -i [email protected]"
    /etc/apache2/sites-available/ispconfig.conf:<Directory /usr/share/squirrelmail>
    /etc/apache2/sites-available/ispconfig.conf:# Allow access to mailman on OpenSuSE
    /etc/apache2/sites-available/ispconfig.conf:<Directory /usr/lib/mailman/cgi-bin>
    /etc/apache2/sites-available/ispconfig.conf:<Directory /usr/lib/mailman/icons>
    /etc/apache2/sites-available/ispconfig.conf:<Directory /var/lib/mailman/archives/>
    root@rack:~#
    after clicking on the tab in the email window remains open penultimate tab
     
    Last edited: Jan 12, 2015
  8. till

    till Super Moderator Staff Member ISPConfig Developer

    The above output is ok so far. The symptom you have happens when there is an alias for /mail somehere in the apache config or another kind of rewrite that globally redirects url's that starts with /mail/ to another website ir directory. Please take a look at the global apache error.log if you see any errors there when you try to reach the content of the mail tab.
     
  9. zdenek_vz800

    zdenek_vz800 New Member

    /var/log/apache2/error.log

    [Mon Jan 12 22:00:16.454393 2015] [:error] [pid 5438] [client 86.49.19.162:50545] script '/usr/share/squirrelmail/mail_domain_list.php' not found or unable to stat, referer: https://xx.xx.cz:8080/index.php#
    [Mon Jan 12 22:00:19.749984 2015] [:error] [pid 2573] [client 86.49.19.162:50551] script '/usr/share/squirrelmail/mail_domain_list.php' not found or unable to stat, referer: https://xx.xx.cz:8080/index.php#
    [Mon Jan 12 22:00:20.781713 2015] [:error] [pid 2573] [client 86.49.19.162:50551] script '/usr/share/squirrelmail/mail_alias_list.php' not found or unable to stat, referer: https://xx.xx.cz:8080/index.php#
     
    Last edited: Jan 12, 2015
  10. till

    till Super Moderator Staff Member ISPConfig Developer

    Ok, so there is a redirect to squirrelmail for all /mail URL somewhere like I guessed. Normally it should have shown up in the grep command. Please post the apache squirrelmail.conf file.
     
  11. zdenek_vz800

    zdenek_vz800 New Member

    /etc/apache2/conf-enabled/squirremail.conf - shortcuts

    Alias /squirrelmail /usr/share/squirrelmail
    Alias /mail /usr/share/squirrelmail
    <Directory /usr/share/squirrelmail>
    Options FollowSymLinks
    <IfModule mod_php5.c>
    AddType application/x-httpd-php .php
    php_flag magic_quotes_gpc Off
    php_flag track_vars On
    php_admin_flag allow_url_fopen Off
    php_value include_path .
    php_admin_value upload_tmp_dir /var/lib/squirrelmail/tmp
    php_admin_value open_basedir /usr/share/squirrelmail:/etc/squirrelmail:/var/lib/squirrelmail:/etc/hostname:/etc/mailname
    php_flag register_globals off
    </IfModule>
    <IfModule mod_dir.c>
    DirectoryIndex index.php
    </IfModule>
    # access to configtest is limited by default to prevent information leak
    <Files configtest.php>
    order deny,allow
    deny from all
    allow from 127.0.0.1
    </Files>
    </Directory>
    # users will prefer a simple URL like http://webmail.example.com
    #<VirtualHost 1.2.3.4>
    # DocumentRoot /usr/share/squirrelmail
    # ServerName webmail.example.com
    #</VirtualHost>
    # redirect to https when available (thanks [email protected])
    #
    # Note: There are multiple ways to do this, and which one is suitable for
    # your site's configuration depends. Consult the apache documentation if
    # you're unsure, as this example might not work everywhere.
    #
    #<IfModule mod_rewrite.c>
    # <IfModule mod_ssl.c>
    # <Location /squirrelmail>
    # RewriteEngine on
    # RewriteCond %{HTTPS} !^on$ [NC]
    # RewriteRule . https://%{HTTP_HOST}%{REQUEST_URI} [L]
    # </Location>
    # </IfModule>
    #</IfModule>
     
    Last edited: Jan 12, 2015
  12. till

    till Super Moderator Staff Member ISPConfig Developer

    Remove this line:

    Alias /mail /usr/share/squirrelmail

    and restart apache.
     
  13. zdenek_vz800

    zdenek_vz800 New Member

    wooow - THANKS - I'm still looking at the configuration ISPConfig and attacked me wrong alias in squirremail ...
     

Share This Page