Steps to fix zmdailyreport where mutliple MTAs are present

Fix "zmdailyreport" where mutliple MTAs are present

   KB 23370        Last updated on 2018-08-17  

(0 votes)


  • "zmdailyreport" does not support SMTP fail-over.
  • "zmdailyreport" sometimes not working if more than one MTAs are present in ZCS environment.


If multiple MTAs configured with ZCS setup then some time smtp hosts are not loading with the dailyreport script. We found a workaround for this issue, where we need to define a single smtphost name in script instead of variable.

Workaround 1:-

To do this edit "/opt/zimbra/libexec/zmdailyreport" from ROOT user, and make following changes.

Before Changes:-

  $ENV{MAILADDRESS} = $from_address;
       my $mailer = Mail::Mailer->new( "smtp", Server => $smtphost, Port => $smtpport );

After Changes:-

  $ENV{MAILADDRESS} = $from_address;
       my $mailer = Mail::Mailer->new( "smtp", Server => "", Port => $smtpport );

Workaround 2:-

Edit "/opt/zimbra/libexec/zmdailyreport" and comment "smtphost" entry and define direct SMTP server like below example.

#my $smtphost     = getLdapConfigValue("zimbraSmtpHostname") || "localhost";
my $smtphost     = " ";  

Here are two bugs reported for this issue:-

Submitted by: Heera Singh Koranga
Verified Against: ZCS 8.8, 8.7, 8.6 Date Created: 2017-08-23
Article ID: Date Modified: 2018-08-17

Try Zimbra

Try Zimbra Collaboration with a 60-day free trial.
Get it now »

Want to get involved?

You can contribute in the Community, Wiki, Code, or development of Zimlets.
Find out more. »

Looking for a Video?

Visit our YouTube channel to get the latest webinars, technology news, product overviews, and so much more.
Go to the YouTube channel »

Jump to: navigation, search