How to fix roundcube mail server 403 forbidden error

Started by saqibbaig, April 05, 2023, 12:56:41 AM

Previous topic - Next topic

saqibbaig

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 ☺️🤠


cyberspace

#2
I recommend you to following:

Go to the document root of Roundcube (webmail):
cd /usr/local/cwpsrv/var/services/roundcube
create a simple php file:
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 cwpsvc:cwpsvc
All 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.

Namaste

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.
Listen to everything Pixelpadre says.