Home > Command-Line, Open Source, Postfix, Zimbra > Too much deferred messages in Zimbra?

Too much deferred messages in Zimbra?

Having too much deffered messages in Zimbra Collaboration Suite? And this error usually happened when messages with big attachment is sent?

Error example:

[root@mail ~]#  grep deferred /var/log/maillog
Apr 10 05:32:09 mail2 postfix/smtp[5543]: 2EEF859C06A: to=<nurhidayaharipin_87@yahoo.com.my>, relay=mx1.mail.sg1.yahoo.com[]:25, delay=217976, delays=217793/0.02/0.4/183, dsn=4.4.2, status=deferred (conversation with mx1.mail.sg1.yahoo.com[] timed out while sending message body)

The error is related to Postfix, one of the main Zimbra component. This is due to a message take too much time when sent to a recipient. Exceeding the timeout limit defined in the server. To solve the situation, we can increase the timeout limit.

To do this, edit a Postfix configuration file, main.cf.

sudo vim /opt/zimbra/postfix/conf/main.cf

.. and append these lines to the file. By default, Zimbra man.cf does not have  these lines like in other Postfix mail server configuration.

smtp_data_done_timeout = 600s
smtp_data_init_timeout = 120s
smtp_data_xfer_timeout = 600s

The effective attributes should be smtp_data_xfer_timeout. The bigger the values, the better. But for me 600 should be enough. Restart the service to implement the new configuration. That should do the work.


  1. 18/06/2011 at 2:53 am

    I’ve already tried this and I increased the limits to much higher values with the same result. Normal emails go through fine, but anything with an attachment does not. Any clue as to what else it could be ?

  2. 18/06/2011 at 11:57 pm

    What happened when we change the limits is we increase the timeout time for data is sent to the other server. If it is still not worked, then longer timeout limit time is needed.

    When the emails with attachment is sent, it will sent in longer time than usual. This depends on the size of the attachment and your server bandwidth. And it will cut off if the time to send is exceeding the limit value. Therefore, you must increase the smtp_data_xfer_timeout to necessary number, depends on the attachment size limit you define in your configuration file.

    I can’t give you the exact number, but you can try and error to find the most suitable number.

  3. raymen
    08/04/2012 at 6:44 am

    What will be produced by this command?
    grep -c Deferred /var/log/maillog

  4. Kirill
    12/04/2012 at 9:34 pm

    I’ve tried this and it helped. Thanks to the author of this article!

    • 15/04/2012 at 4:23 pm

      You are welcome, Kirill. Sharing is caring ;).

  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: