• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

Issue Webmail Stopped Working After Plesk Update

apaunovski

Basic Pleskian
So, the other day I saw that PLESK has updated itself, and now webmail (RoundCube) isn't working anymore.

When I try to access webmail.domain.com it throws 403 error at me.

I am using the LiteSpeed extension if this makes any difference. Sites work fine. Webmail does not.

I am not even sure what logs to look at so I can understand better where the error is coming from.

Please help!
 
Code:
tail -fn0 /var/log/plesk/panel.log
For Plesk Onyx 17.5, install the latest Plesk micro-updates .

For Plesk Onyx 17.0 and earlier Plesk versions, consider upgrading to the latest Plesk version .

If the upgrade is not acceptable, apply a workaround:

via GUI:

Go to Plesk > Tools & Settings > Website Preview, select Default Quick Preview and click OK.

via CLI:

1. Login to Plesk via SSH
2. Identify server IP addresses:
Code:
# ip a
Code:
# echo "server_ip" >> /etc/sw-cp-server/conf.d/trusted_ips.inc
 
Code:
tail -fn0 /var/log/plesk/panel.log

Does not output anything.

I ran
Code:
plesk installer update
to install all PLESK updates and it went smoothly without any problems.

Still, the situation with Roundcube didn't change.

Code:
echo "MY.SERV.ER.IP" >> /etc/sw-cp-server/conf.d/trusted_ips.inc
didn't do anything and the issue still persists.
 
Please change webmail to horde, than change back to roundcube, my this will fix your problem.

I would like to help but without an error_log it will be difficult.
 
Code:
aleksandar@vel:~$ sudo plesk repair fs paunovsky.com -y

Checking virtual hosts' file system

  There are incorrect permissions on some items in the system         
  directory for the domain 'paunovsky.com' .......................... [ERROR]
  To see more details, run the command in the verbose mode: plesk repair fs -verbose
    Repairing incorrect permissions ................................. [FIXED]

  There are files or directories with suspicious permissions in the   
  root directory of the domain 'paunovsky.com' ...................... [WARNING]
  To see more details, run the command in the verbose mode: plesk repair fs -verbose

Error messages: 1; Warnings: 1; Errors resolved: 1

Above is the output of the command. Webmail.paunovsky.com still throws an error 403.
 
Roundcube
  • Logs
    • Error log: /var/log/plesk-roundcube/errors
  • No service control (works via the Apache web-server)
  • Configuration
    • /etc/psa-webmail/roundcube/*
    • /usr/share/psa-roundcube/config/defaults.inc.php
Could you please post the output of the error-log?
 
Code:
root@vel:/home/aleksandar# tail -n10 /var/log/plesk-roundcube/errors
[15-Sep-2018 19:03:51 UTC] PHP Warning:  Use of undefined constant IDNA_DEFAULT - assumed 'IDNA_DEFAULT' (this will throw an Error in a future version of PHP) in /usr/share/psa-roundcube/program/lib/Roundcube/rcube_utils.php on line 908
[15-Sep-2018 19:03:51 UTC] PHP Warning:  Use of undefined constant IDNA_DEFAULT - assumed 'IDNA_DEFAULT' (this will throw an Error in a future version of PHP) in /usr/share/psa-roundcube/program/lib/Roundcube/rcube_utils.php on line 908
[15-Sep-2018 19:03:51 UTC] PHP Warning:  Use of undefined constant IDNA_DEFAULT - assumed 'IDNA_DEFAULT' (this will throw an Error in a future version of PHP) in /usr/share/psa-roundcube/program/lib/Roundcube/rcube_utils.php on line 908
[15-Sep-2018 19:03:51 UTC] PHP Warning:  Use of undefined constant IDNA_DEFAULT - assumed 'IDNA_DEFAULT' (this will throw an Error in a future version of PHP) in /usr/share/psa-roundcube/program/lib/Roundcube/rcube_utils.php on line 908
[15-Sep-2018 19:03:51 UTC] PHP Warning:  Use of undefined constant IDNA_DEFAULT - assumed 'IDNA_DEFAULT' (this will throw an Error in a future version of PHP) in /usr/share/psa-roundcube/program/lib/Roundcube/rcube_utils.php on line 908
[15-Sep-2018 19:03:51 UTC] PHP Warning:  Use of undefined constant IDNA_DEFAULT - assumed 'IDNA_DEFAULT' (this will throw an Error in a future version of PHP) in /usr/share/psa-roundcube/program/lib/Roundcube/rcube_utils.php on line 908
[15-Sep-2018 19:03:51 UTC] PHP Warning:  Use of undefined constant IDNA_DEFAULT - assumed 'IDNA_DEFAULT' (this will throw an Error in a future version of PHP) in /usr/share/psa-roundcube/program/lib/Roundcube/rcube_utils.php on line 908
[15-Sep-2018 19:03:51 UTC] PHP Warning:  Use of undefined constant IDNA_DEFAULT - assumed 'IDNA_DEFAULT' (this will throw an Error in a future version of PHP) in /usr/share/psa-roundcube/program/lib/Roundcube/rcube_utils.php on line 908
[15-Sep-2018 19:03:51 UTC] PHP Warning:  Use of undefined constant IDNA_DEFAULT - assumed 'IDNA_DEFAULT' (this will throw an Error in a future version of PHP) in /usr/share/psa-roundcube/program/lib/Roundcube/rcube_utils.php on line 908
[15-Sep-2018 19:03:51 UTC] PHP Warning:  Use of undefined constant IDNA_DEFAULT - assumed 'IDNA_DEFAULT' (this will throw an Error in a future version of PHP) in /usr/share/psa-roundcube/program/lib/Roundcube/rcube_utils.php on line 908
 
Thank you, however, this is not the error I am getting, and besides, if I switch to HORDE, I keep getting the same error when I access webmail.domain.com.
 
Symptoms
When trying to send e-mail following error appears:

I am not trying to send email. The very second I try to access webmail.paunovsky.com (this is my domain, however it's valid for ALL DOMAINS on the server) I get an error 403!

Apache's ERROR LOG looks like this:

Code:
root@vel:/home/aleksandar# tail -n10 /var/log/apache2/error.log
2018-09-18 13:13:33.002586 [NOTICE] Memory size is: 3706704KB.
2018-09-18 13:13:32.867497 [NOTICE] [Child: 4159] Setup swapping space...
2018-09-18 13:13:32.867540 [NOTICE] [child: 4159] Successfully change current user to www-data
2018-09-18 13:13:32.867549 [NOTICE] [Child: 4159] Core dump is enabled.
2018-09-18 13:13:32.867772 [ALERT] [Child: 4159] LiteSpeed/5.2.8 Enterprise starts successfully!
2018-09-18 13:13:32.868208 [NOTICE] [Child: 4160] Setup swapping space...
2018-09-18 13:13:32.868279 [NOTICE] [child: 4160] Successfully change current user to www-data
2018-09-18 13:13:32.868289 [NOTICE] [Child: 4160] Core dump is enabled.
2018-09-18 13:13:32.868509 [ALERT] [Child: 4160] LiteSpeed/5.2.8 Enterprise starts successfully!
2018-09-18 13:13:33.610350 [INFO] [LICENSE] License is OK.

The other logs either contain nothing or simply have no information related to RoundCube, ModSecurity, Webmail.Domain.Com, or anything remotely related to the problem.

Here is the output from the command you posted.

Code:
root@vel:/home/aleksandar# plesk repair all paunovsky.com -y

Checking virtual hosts' file system

  There are files or directories with suspicious permissions in the   
  root directory of the domain 'paunovsky.com' ...................... [WARNING]
  To see more details, run the command in the verbose mode: plesk repair fs -verbose

Repairing web server configuration
    Repairing web server configuration for the domain paunovsky.com . [OK]

Repairing the mail server configuration
    Reconfiguring the settings of domains: paunovsky.com ............ [OK]
    Reconfiguring the mailboxes ..................................... [OK]

Checking the DNS configuration file ................................. [OK]

Restoring DNS server configuration
    Synchronizing DNS zones with the DNS server ..................... [OK]

Checking MySQL database servers ..................................... [OK]

Repair databases on available servers ............................... [OK]

Repair database users on available servers .......................... [OK]

Error messages: 0; Warnings: 1; Errors resolved: 0
 
This is the output of plesk repair fs -verbose
Code:
root@vel:/home/aleksandar# plesk repair fs -verbose

Checking Linux system files

  There are incorrect permissions on some items:                    
  /opt/psa/admin/sbin/mod_wrapper ................................... [ERROR]
    - Incorrect permissions on /opt/psa/admin/sbin/mod_wrapper.
      Expected: one of 04510. Actual: 04511.
  Do you want to repair incorrect permissions? [Y/n] Y
    Repairing incorrect permissions ................................. [FIXED]

Checking virtual hosts' file system

  There are incorrect permissions on some items in the system        
  directory for the domain 'vel.host' ............................... [ERROR]
    - Incorrect permissions on /var/www/vhosts/system/vel.host/logs:
      expected is one of 0700, actual is 0701
  Do you want to repair incorrect permissions? [Y/n] Y
    Repairing incorrect permissions ................................. [FIXED]

  There are files or directories with suspicious permissions in the  
  root directory of the domain 'vel.host' ........................... [WARNING]
    - /var/www/vhosts/vel.host/httpdocs/whmcs/configuration.php //This one is OK. I have personally set up the permissions as per the Manual.

  There are incorrect permissions on some items in the system        
  directory for the domain 'paunovsky.com' .......................... [ERROR]
    - Incorrect permissions on
      /var/www/vhosts/system/paunovsky.com/logs: expected is one of
      0700, actual is 0701
  Do you want to repair incorrect permissions? [Y/n] Y
    Repairing incorrect permissions ................................. [FIXED]

  There are files or directories with suspicious permissions in the  
  root directory of the domain 'paunovsky.com' ...................... [WARNING]
    - /var/www/vhosts/paunovsky.com/httpdocs/wp-content/cache/scripts

  There are incorrect permissions on some items in the system        
  directory for the domain 'icatalog.info' .......................... [ERROR]
    - Incorrect permissions on
      /var/www/vhosts/system/icatalog.info/logs: expected is one of
      0700, actual is 0701
  Do you want to repair incorrect permissions? [Y/n] Y
    Repairing incorrect permissions ................................. [FIXED]

  There are files or directories with suspicious permissions in the  
  root directory of the domain 'icatalog.info' ...................... [WARNING]
    - /var/www/vhosts/icatalog.info/httpdocs/analytics/tmp/assets/matomo_option-bddfa0321a931e3ddb5c6f035d0ff1bd.csv
    - /var/www/vhosts/icatalog.info/httpdocs/analytics/tmp/assets/matomo_option-3d2459989d9d8ca5845b03f77602e249.csv
    - /var/www/vhosts/icatalog.info/httpdocs/analytics/tmp/assets/matomo_option-54a861fd74c7d659602d0e7c7230e7fc.csv
    - /var/www/vhosts/icatalog.info/httpdocs/analytics/tmp/assets/matomo_option-42cf3ab188515a43370ddd0da2ebe9c0.csv
    - /var/www/vhosts/icatalog.info/httpdocs/analytics/tmp/assets/matomo_option-d69a35eda492886cf8f2967de57f9f98.csv
    - /var/www/vhosts/icatalog.info/httpdocs/analytics/tmp/assets/matomo_option-d6e8a3924fa9c5e602c44aeed7f0c497.csv
    - /var/www/vhosts/icatalog.info/httpdocs/analytics/tmp/assets/matomo_option-111dd5b725cdd1aa13d951b9bb7d1426.csv

  There are incorrect permissions on some items in the system        
  directory for the domain 'ayurvedaprodukti.com' ................... [ERROR]
    - Incorrect permissions on
      /var/www/vhosts/system/ayurvedaprodukti.com/logs: expected is
      one of 0700, actual is 0701
  Do you want to repair incorrect permissions? [Y/n] Y
    Repairing incorrect permissions ................................. [FIXED]

  There are incorrect permissions on some items in the system        
  directory for the domain 'rentgen-sofia.com' ...................... [ERROR]
    - Incorrect permissions on
      /var/www/vhosts/system/rentgen-sofia.com/logs: expected is one
      of 0700, actual is 0701
  Do you want to repair incorrect permissions? [Y/n] Y
    Repairing incorrect permissions ................................. [FIXED]

  There are incorrect permissions on some items in the system        
  directory for the domain 'paunovski.pro' .......................... [ERROR]
    - Incorrect permissions on
      /var/www/vhosts/system/paunovski.pro/logs: expected is one of
      0700, actual is 0701
  Do you want to repair incorrect permissions? [Y/n] Y
    Repairing incorrect permissions ................................. [FIXED]

  There are incorrect permissions on some items in the system        
  directory for the domain 'vel.design' ............................. [ERROR]
    - Incorrect permissions on
      /var/www/vhosts/system/vel.design/logs: expected is one of
      0700, actual is 0701
  Do you want to repair incorrect permissions? [Y/n] Y
    Repairing incorrect permissions ................................. [FIXED]

  There are incorrect permissions on some items in the system        
  directory for the domain 'gesop.bg' ............................... [ERROR]
    - Incorrect permissions on /var/www/vhosts/system/gesop.bg/logs:
      expected is one of 0700, actual is 0701
  Do you want to repair incorrect permissions? [Y/n] Y
    Repairing incorrect permissions ................................. [FIXED]

Error messages: 9; Warnings: 3; Errors resolved: 9

The problem still persists.
 
OK, so...

Switching back and forth between LiteSpeed and Apache showed that the problem happens only with LiteSpeed.

Just wanted to add that after upgrading LiteSpeed to v5.3, the error message changed to ERROR 500...
 
Last edited:
Back
Top