November 24 2018

Linux Mail Server

Zimbra Configurations

maxmessagesize

  • Use this parameter to adjust the Maximum Message Size for messages passing through the MTA (Postfix).
  • The postconf parameter message_size_limit is configured globally for all MTAs (Default value: 10MB)
  • Note: this is the size of the full RFC 2822 internet message, after MIME-encoding
  • Multiply the variable zimbraMtaMaxMessageSize by 1.5, and then compare against the free space available on the partition.  Errors logged to /var/log/zimbra.log

Postfix Configurations

' Log In as zimbra admin user
# su - zimbra
' Display value of variable
$ postconf message_size_limit
' Set the maximum message size to 20MB
$ zmprov modifyConfig zimbraMtaMaxMessageSize 2048000
' Confirm changes
$ postconf | grep message_size_limit

IMAP Configurations

' Log In as zimbra admin user
# su - zimbra
' Set global file upload (attachments) size limit to 20MB
$ zmprov modifyConfig zimbraFileUploadMaxSize 20971520
' Set file (attachments) size limit to 20MB for a given server
$ zmprov modifyServer mail.domain.com zimbraFileUploadMaxSize 20971520
' Set maximum request size 20MB
$ zmprov modifyConfig zimbraImapMaxRequestSize 20971520
' Set mail content size limit to 20MB
$ zmprov ms `zmhostname` zimbraMailContentMaxSize 20971520
$ zmprov modifyConfig zimbraMailContentMaxSize 20971520
' Restart mail store
$ zmcontrol stop
$ zmcontrol start