Author Topic: Email upload not working  (Read 787 times)

0 Members and 2 Guests are viewing this topic.

Offline
*
Email upload not working
« on: April 29, 2025, 01:13:17 PM »
Hello,

I am experiencing an issue with file uploads through Roundcube.

When I log in with the root account and use the URL https://server.host.online/roundcube, I can upload large attachments (over 400KB) without any problem.

However, when regular email users log in through https://mail.website.com.br, they cannot upload attachments larger than approximately 400KB. The upload fails immediately.

Both domains (server.host.online and mail.website.com.br) resolve to the same IP address. No external proxy (such as Cloudflare) is used.

The PHP configuration (upload_max_filesize, post_max_size) and Postfix (message_size_limit) are properly set to allow large files.

Nginx configuration also has client_max_body_size correctly configured for both HTTP and HTTPS.

Roundcube configuration (config.inc.php) does not have any limits set for upload size.


Thank you very much for your help!

Offline
*
Re: Email upload not working
« Reply #1 on: April 29, 2025, 04:00:13 PM »
I did a test using the app on my cell phone and the attachment was sent. The problem must be with Roundcube....

Offline
*****
Re: Email upload not working
« Reply #2 on: April 29, 2025, 10:48:37 PM »
Are you editing the php parameters in /usr/local/cwp/php71/php.ini ?

Offline
*
Re: Email upload not working
« Reply #3 on: April 29, 2025, 11:23:55 PM »
Yes.

yes, besides that now php is gone and everything is working I don't understand.


https://ibb.co/5X6bs60m

Offline
*****
Re: Email upload not working
« Reply #4 on: April 29, 2025, 11:45:05 PM »
Your picture should indicate which version is selected for the main system PHP version using the PHP Switcher (or forced version). However, CWP uses its own dedicated version of PHP (/usr/local/cwp/php71) that can run undisturbed -- it is actually PHP 7.2 even though it is labeled as 7.1.

After editing PHP parameters that affect CWP Services (including Roundcube), restart CWP services:
Code: [Select]
service cwp-phpfpm restart
service cwpsrv restart

Offline
*
Re: Email upload not working
« Reply #5 on: April 30, 2025, 12:02:31 AM »
I installed them manually lol. It solved the problem, but the PHP selector doesn't work now. But I have a client running woocommerce with and it requires PHP 8. Very confusing lol  :'( :'(

Offline
*****
Re: Email upload not working
« Reply #6 on: April 30, 2025, 12:43:06 AM »
On my systems, I typically have 8.2 as the system PHP version (for CLI), There's nothing you can do about CWP using its internal PHP 7.2 version. After that, I use PHP-FPM as it is more performant and allows granular selection per-site. For example on one server, I have one customer using PHP 5.4 for a legacy site, several WordPress sites that need 7.4 for full extension compatibility, other WordPress sites running 8.1 (for the best mix of compatibility/modern features/security), and one Drupal site running 8.2. Each version has its own php.ini for customization.

Offline
*
Re: Email upload not working
« Reply #7 on: April 30, 2025, 12:47:40 AM »
not working.. noww.. nginx[131056]: nginx: [emerg] bind() to 192.168.0.159:80 failed (98: Address already in use) :X

Offline
*
Re: Email upload not working
« Reply #8 on: April 30, 2025, 12:49:31 AM »
WARNING! You are not running CWP Apache and this could cause that your domains do not work!

Offline
*****
Re: Email upload not working
« Reply #9 on: April 30, 2025, 03:01:08 AM »
Could you please advise of the following:

What 'errors' and/or 'messages' are being displayed in the logs?

What distro are you are you running CWP on?

CWP Free or CWPpro?

Public or NAT?

--

We are running CWP on AL9, using Thunderbird mail client without problems.

Offline
*
Re: Email upload not working
« Reply #10 on: April 30, 2025, 07:07:38 PM »
Thank you all, but I installed wp and everything is fine now. There must have been some error in the installation. I use cwp pro