LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-25-2019, 02:41 AM   #1
priit
LQ Newbie
 
Registered: Mar 2019
Posts: 18

Rep: Reputation: Disabled
roundcube webmail attach size limit


Hi.
I have mailserver with postfix, dovecot, mariadb, roudcube.

Some problems with roundcube webmail.
Cannot change size of attachement.
Already edited files

/var/www/html/roundcubemail/.htaccess
Code:
php_value   upload_max_filesize   20M
php_value   post_max_size         48M
php_value   memory_limit          128M

/etc/php.ini
Code:
post_max_size = 48M
upload_max_filesize = 20M
only thing that changed, web displays new size under attachement "20 MB" But technically no changes. It allows still no more than default 2MB"

Any helpful thoughts

Last edited by priit; 04-25-2019 at 02:43 AM.
 
Old 04-25-2019, 05:21 AM   #2
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
Hi,

You should clean your browser's cache (better close it and start it again), before testing. Or use a different browser.

If that doesn't work, make sure that you're editing the correct php.ini and/or apache reads .htaccess files.
For the former run from CLI:
Code:
php -i| egrep "upload_max_filesize|post_max_size"
For the latter check apache config file(s) for the proper AllowOveride directive.

Regards
 
Old 04-30-2019, 06:22 AM   #3
priit
LQ Newbie
 
Registered: Mar 2019
Posts: 18

Original Poster
Rep: Reputation: Disabled
Thats's the output.
Code:
# php -i| egrep "upload_max_filesize|post_max_size"
post_max_size => 48M => 48M
upload_max_filesize => 20M => 20M
Instead of apache I use nginx.
Is there some override settings what should be checked ?
 
Old 04-30-2019, 03:24 PM   #4
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
Quote:
Instead of apache I use nginx.
Is there some override settings what should be checked ?
You mentioned .htaccess that is an apache feature.
For nginx you should use the following notation if you want to override php settings:
Code:
fastcgi_param PHP_VALUE "post_max_size = 40M; upload_max_filesize = 20M;";
FYI
There is also this config file that you can add in php-fpm config (usually /etc/php5/fpm/php.ini)


Regards
 
Old 04-30-2019, 03:42 PM   #5
scasey
LQ Veteran
 
Registered: Feb 2013
Location: Tucson, AZ, USA
Distribution: CentOS 7.9.2009
Posts: 5,732

Rep: Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212
I find this on the roundcube wiki about config/defaults.inc.php
Code:
// Message size limit. Note that SMTP server(s) may use a different value.
// This limit is verified when user attaches files to a composed message.
// Size in bytes (possible unit suffix: K, M, G)
$config['max_message_size'] = '100M';
(emphasis added)
with a note that "Configuration files are pure PHP files and therefore strictly have to respect the PHP syntax. "
I note that is not the syntax you've posted.

Since you say that roundcube is reporting the new size limit, perhaps it's a postfix or dovecot issue?
(Just throwing out ideas...)

Last edited by scasey; 04-30-2019 at 03:44 PM.
 
Old 05-07-2019, 03:24 AM   #6
priit
LQ Newbie
 
Registered: Mar 2019
Posts: 18

Original Poster
Rep: Reputation: Disabled
...

Last edited by priit; 05-07-2019 at 05:49 AM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: My Hostgator e-mail setup: Roundcube webmail plus filtering in cPanel LXer Syndicated Linux News 0 01-04-2013 10:50 AM
Redirect "/roundcube" to "webmail." for all virtual domains? snowweb Linux - Server 2 08-13-2012 08:58 AM
LXer: An Easy Step-by-Step to Install and Running Roundcube Webmail on Ubuntu/Linux Mint LXer Syndicated Linux News 0 02-10-2012 09:20 PM
[SOLVED] Roundcube webmail Tarikc Linux - Software 4 07-21-2010 11:34 AM
IMAP User setup, mail servers, Roundcube webmail client, Receiving Emails CrimsonSkyZS Linux - Newbie 0 01-11-2006 04:55 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:04 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration