Control Web Panel

WebPanel => CentOS 8 Problems => Topic started by: saqibbaig on April 05, 2023, 12:56:41 AM

Title: How to fix roundcube mail server 403 forbidden error
Post by: saqibbaig on April 05, 2023, 12:56:41 AM
Hello , I hope that you are all fine !? Can anybody or admin can fix my problem when I try to access my roundcube mail server I get error 403 forbidden error I have fixed many time user permissions and mode security is disabled but I'm still getting 403 forbidden error please tell me it's solution for fix this issue ??? Most thanks in advance ☺️🤠
Title: Re: How to fix roundcube mail server 403 forbidden error
Post by: overseer on May 13, 2023, 02:44:35 AM
Are you using the default .htaccess file?

Try this:
https://forum.howtoforge.com/threads/roundcube-gets-403-error-after-i-have-changed-its-default-webmail-url.87416/ (https://forum.howtoforge.com/threads/roundcube-gets-403-error-after-i-have-changed-its-default-webmail-url.87416/)
Title: Re: How to fix roundcube mail server 403 forbidden error
Post by: cyberspace on May 13, 2023, 09:44:59 PM
I recommend you to following:

Go to the document root of Roundcube (webmail):
Code: [Select]
cd /usr/local/cwpsrv/var/services/roundcubecreate a simple php file:
Code: [Select]
echo "<?php phpinfo(); ?>"  > aa.php
chown cwpsvc.cwpsvc aa.php
then try to access it over the web (in your browser):

http://hostname.com/webmail/aa.php

if you get the error 403 again then most likely the problem is caused by wrong user/group, access permissions or .htaccess file.

Make sure the folder of roundcube belongs to
Code: [Select]
cwpsvc:cwpsvcAll folders have access permissions 755 (rwx-rx-rx) and files 644 (-rw-r--r--) except config/config.inc.php 640 (rw-r-----)

If the access permissions (ownger:group, etc) are correct then rename .htaccess to something like .htaccess_backup and try to access the file aa.php over the web again. In case it can be accessed then investigate your .htaccess.

Don't forget to remove the file aa.php when all test are finished.
Title: Re: How to fix roundcube mail server 403 forbidden error
Post by: Namaste on November 16, 2023, 02:35:09 PM
I have had onging issues with RC for years.   A recurring issue is in certain email accounts, can not save to send box.  This is true in thunderbird and webmail both.  I get permission error in webmail.  But just for certain email accounts.  Never did figure it out.
Title: Re: How to fix roundcube mail server 403 forbidden error
Post by: saqibbaig on March 10, 2024, 12:06:47 PM
ok sir thanks