Max Message (Send/Receive) Size

Ask questions about your setup or get help installing ZCS server (ZD section below).
Oswald-Kolle
Advanced member
Advanced member
Posts: 83
Joined: Fri Sep 12, 2014 10:11 pm

Max Message (Send/Receive) Size

Post by Oswald-Kolle »

Hey everybody,
I got a problem today - a friend of mine wanted to send me a "large" (I don't think that it is that large!) Email and got it back with the error message:

message size 10678657 exceeds size limit 10240000 of server

So my question is - where / how do I set the message-size limitation to at least 50MB or if possible to unlimited?
Regards,

Mario
StefanD
Advanced member
Advanced member
Posts: 51
Joined: Fri Sep 12, 2014 9:57 pm

Max Message (Send/Receive) Size

Post by StefanD »

su - zimbra -c "zmprov mcf zimbraMtaMaxMessageSize 51200000"

su - zimbra -c "zmprov mcf zimbraFileUploadMaxSize 51200000"
Oswald-Kolle
Advanced member
Advanced member
Posts: 83
Joined: Fri Sep 12, 2014 10:11 pm

Max Message (Send/Receive) Size

Post by Oswald-Kolle »

Okay - that sounds easy... ;-)

Why isn't it possible to change that value within the administration page?
Do I have to restart the zimbra-Mailserver to make these changes take effect?
Thanks for your answer!!
Oswald-Kolle
Advanced member
Advanced member
Posts: 83
Joined: Fri Sep 12, 2014 10:11 pm

Max Message (Send/Receive) Size

Post by Oswald-Kolle »

Well I wrote your lines and now I got these error messages when I try to start the mailserver:

Starting ldap...Done.

Starting logger...Done.

Starting mailbox...Done.

Starting imapproxy...FAILED

Starting imap4

dlopen of "/opt/zimbra/perdition-1.17/lib/libperditiondb_gdbm.so.0" failed

perdition version 1.17 Copyright Horms
perdition is a mail retrieval proxy daemon
Usage: perdition [options]

....

Notes: Default value for binary flags is off.

If a string argument is empty ("") then the option will not

be used unless noted otherwise.

See the perdition(8) man page for more details.

imap4 is not running

imap4s is not running

pop3 is not running

pop3s is not running


Starting antispam...Done.

Starting antivirus...Done.

Starting snmp...Done.

Starting spell...Done.

Starting mta...Done.


So the Server is running, but the mentioned imap and pop servers are NOT running... And the status shows:

antispam Running

antivirus Running

imapproxy Stopped

imap4 is not running

imap4s is not running

pop3 is not running

pop3s is not running

ldap Running

logger Running

mailbox Running

mta Running

snmp Running

spell Running
But I can still NOT receive EMails with more than about 10MB.. :-(
Hope anybody has an idea how to solve this!?
Mario
andreychek
Advanced member
Advanced member
Posts: 155
Joined: Fri Sep 12, 2014 9:58 pm

Max Message (Send/Receive) Size

Post by andreychek »

[quote user="Oswald-Kolle"]But I can still NOT receive EMails with more than about 10MB.. :-(
Hope anybody has an idea how to solve this!?[/QUOTE]

I don't know that this will solve the second problem you ran into, but you can in fact change this from the Zimbra web interface.
Log into the admin interface, click Global Settings, choose the MTA tab, then change the 'Maximum message size' option.
And (enable wishful thinking mode) perhaps that'll somehow solve your second problem ;-)

-Eric
Oswald-Kolle
Advanced member
Advanced member
Posts: 83
Joined: Fri Sep 12, 2014 10:11 pm

Max Message (Send/Receive) Size

Post by Oswald-Kolle »

Well... The console commands now give an error message.

And I am not able to change the value within the admin-interface - the value of 50000 is there and when I change it and save the "new" Value it turns back to 50000 - and it doesn't matter if I switch it to a lower or higher value... :-(
Do I have to switch anything else to be able to change these values?! Or how do I come back to the old configuration files (before I tried the commands written by StefanD?
Mario
StefanD
Advanced member
Advanced member
Posts: 51
Joined: Fri Sep 12, 2014 9:57 pm

Max Message (Send/Receive) Size

Post by StefanD »

I don't know why it didn't work.

Here are the original settings
zimbraMtaMaxMessageSize: 10240000

zimbraFileUploadMaxSize: 10485760
Oswald-Kolle
Advanced member
Advanced member
Posts: 83
Joined: Fri Sep 12, 2014 10:11 pm

Max Message (Send/Receive) Size

Post by Oswald-Kolle »

Well... Stupid me, but wich file do I need to edit?
StefanD
Advanced member
Advanced member
Posts: 51
Joined: Fri Sep 12, 2014 9:57 pm

Max Message (Send/Receive) Size

Post by StefanD »

These settings are saved in ldap

zmprov is the command line interface to manage all the simbra settings.
su - zimbra -c "zmprov mcf zimbraMtaMaxMessageSize 10240000"

su - zimbra -c "zmprov mcf zimbraFileUploadMaxSize 10485760"
Oswald-Kolle
Advanced member
Advanced member
Posts: 83
Joined: Fri Sep 12, 2014 10:11 pm

Max Message (Send/Receive) Size

Post by Oswald-Kolle »

Well - this time the command worked without an error message...

But I cannot stop and then start the server without the above given error messages....

In addition to that I even cannot stop/start the sever because tomcat isn't starting as well... Therfore it is needed to reboot the machine.... I am sure that I didn't had these Problems with the latest version before 4.0....

Maybe this problem is new?!
Post Reply