Hello guys,
I can't do anything with this error:
"SMTP Error ($code): Message size exceeds server limit"
Exim message size server limit is 15Mb, all other limits seems to be ok.. Error is shown when i try to send message with attachment bigger than 11 Mb.
Maby problem somwhere in code here:
roundcube/program/lib/Net/SMTP.php ?
/* RFC 1870, section 3, subsection 3 states "a value of zero indicates
* that no fixed maximum message size is in force". Furthermore, it
* says that if "the parameter is omitted no information is conveyed
* about the server's fixed maximum message size". */
$limit = (isset($this->_esmtp['SIZE'])) ? $this->_esmtp['SIZE'] : 0;
if ($limit > 0 && $size >= $limit) {
$this->disconnect();
return PEAR::raiseError('Message size exceeds server limit');
}
Hi!
Maybe you take a look at your php.ini and .htaccess.
Have a nice day!
That's sounds about right... most likely it is a php configuration or a webserver configuration
Check your php.ini as mentioned in the previous post
Look and define the size desired:
upload_max_filesize = 10M
post_max_size = 10M
Attachments in mail message are encoded using base64, it means they are ca. 0.33% bigger. So, 11MB => 15 MB.
Quote from: alec on June 17, 2012, 02:04:53 AM
Attachments in mail message are encoded using base64, it means they are ca. 0.33% bigger. So, 11MB => 15 MB.
Hi!
You mean ~30%, right?
;)
Rgds.
Quote from: Yoni on June 16, 2012, 07:40:59 PM
That's sounds about right... most likely it is a php configuration or a webserver configuration
Check your php.ini as mentioned in the previous post
Look and define the size desired:
upload_max_filesize = 10M
post_max_size = 10M
Have you i.e. test it with a "20M" config?
Rgds.
Thank you for answers,
i double checked my php.ini config and set:
Configuration File (php.ini) Path => /etc/php5/cli
Loaded Configuration File => /etc/php5/cli/php.ini
/etc/php5/cli/php.ini
upload_max_filesize = 30M
post_max_size = 30M
and .htaccess in roundcube folder:
php_value upload_max_filesize 30M
php_value post_max_size 30M
But this still not helps. I even increase exim4 letter size limit from 15M to 30M, without no result.
Any ideas?
Quote from: dkorzhevin on June 18, 2012, 04:38:42 AM
But this still not helps. I even increase exim4 letter size limit from 15M to 30M, without no result.
Are you sure? Enable sql_debug in Roundcube and you'll see what size limit really is there. The error message is from SMTP communication.
smtp_debug of course not sql_debug.
I get:
[18-Jun-2012 13:59:42 +0300]: Send:
.
[18-Jun-2012 13:59:42 +0300]: Recv: 250 OK id=1SgZgN-0000nE-PL
[18-Jun-2012 13:59:42 +0300]: Recv: 220 SMTP Server
[18-Jun-2012 13:59:42 +0300]: Send: EHLO mail.myserver.net
[18-Jun-2012 13:59:42 +0300]: Recv: 250-mail.myserver.net Hello roundcube.myserver.net [89.184.64.121]
[18-Jun-2012 13:59:42 +0300]: Recv: 250-SIZE 15728640
[18-Jun-2012 13:59:42 +0300]: Recv: 250-8BITMIME
[18-Jun-2012 13:59:42 +0300]: Recv: 250-PIPELINING
[18-Jun-2012 13:59:42 +0300]: Recv: 250-AUTH LOGIN PLAIN
[18-Jun-2012 13:59:42 +0300]: Recv: 250-STARTTLS
[18-Jun-2012 13:59:42 +0300]: Recv: 250 HELP
[18-Jun-2012 13:59:42 +0300]: Send: AUTH LOGIN
[18-Jun-2012 13:59:42 +0300]: Recv: 334 VXNlcm5hbWU6
[18-Jun-2012 13:59:42 +0300]: Send: dGVzdEBtYWRzYW5pdHkua2lldi51YQ==
[18-Jun-2012 13:59:42 +0300]: Recv: 334 UGFzc3dvcmQ6
[18-Jun-2012 13:59:42 +0300]: Send: cjc1NjFPMmc=
[18-Jun-2012 13:59:42 +0300]: Send: QUIT
[18-Jun-2012 13:59:42 +0300]: Recv: 235 Authentication succeeded
[18-Jun-2012 13:59:42 +0300]: Send: MAIL FROM:<[email protected]>
[18-Jun-2012 13:59:42 +0300]: Recv: 221 mail.myserver.net closing connection
[18-Jun-2012 13:59:42 +0300]: Recv: 250 OK
[18-Jun-2012 13:59:42 +0300]: Send: RCPT TO:<[email protected]>
[18-Jun-2012 13:59:42 +0300]: Recv: 250 Accepted
[18-Jun-2012 13:59:42 +0300]: Send: QUIT
[18-Jun-2012 13:59:42 +0300]: Recv: 221 mail.myserver.net closing connection
[18-Jun-2012 13:59:42 +0300]: Send: RSET
[18-Jun-2012 13:59:42 +0300]: Send: QUIT
Thank you guys! Problem was in 'message_size_limit' directive of exim4. Problem solved.