Steps to fix zmdailyreport where mutliple MTAs are present: Difference between revisions

No edit summary
No edit summary
Line 1: Line 1:
=== <h1>Fix "zmdailyreport" where mutliple MTAs are present</h1> ===
{{BC|Certified}}
__FORCETOC__
<div class="col-md-12 ibox-content">
=Fix "zmdailyreport" where mutliple MTAs are present=
<hr>
<hr>
<br>
{{KB|{{ZC}}|{{ZCS 8.8}}|{{ZCS 8.7}}|{{ZCS 8.6}}|{{ZCS 8.5}}|}}
<h2>Problem:-</h2> 
{{WIP}} 
"zmdailyreport" does not support SMTP fail-over.<br /> 
OR<br />
"zmdailyreport" sometimes not working if more than one MTAs are present in ZCS environment.<br /> 




<h2>Solution:- </h2>
====Problem====
* "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. 


====Solution====
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.


=====Workaround 1:-=====
To do this edit "''/opt/zimbra/libexec/zmdailyreport''" from ROOT user, and make following changes.


'''Before Changes:- '''
'''Before Changes:- '''
Line 22: Line 25:
         my $mailer = Mail::Mailer->new( "smtp", Server => $smtphost, Port => $smtpport );
         my $mailer = Mail::Mailer->new( "smtp", Server => $smtphost, Port => $smtpport );
         $mailer->open(
         $mailer->open(


'''After Changes:- '''
'''After Changes:- '''
Line 31: Line 33:




 
=====Workaround 2:-=====
'''Workaround 2:-''' 
Edit "''/opt/zimbra/libexec/zmdailyreport''" and comment "''smtphost''" entry and define direct SMTP server like below example.   
Edit "/opt/zimbra/libexec/zmdailyreport" and comment "smtphost" entry and define direct SMTP server like below example.   
  #my $smtphost    = getLdapConfigValue("zimbraSmtpHostname") || "localhost";
  #my $smtphost    = getLdapConfigValue("zimbraSmtpHostname") || "localhost";
  my $smtphost    = " zimbra-smtp1.example.com ";   
  my $smtphost    = " zimbra-smtp1.example.com ";   




Line 44: Line 44:




Submitted by:  Heera Singh Koranga
{| class="wikitable" style="background-color:#d0f0c0;" cellpadding="10"
|'''Submitted by''':  Heera Singh Koranga
|}
 
{{Article Footer|ZCS 8.8, 8.7, 8.6|2017-08-23}}

Revision as of 02:02, 17 August 2018

Fix "zmdailyreport" where mutliple MTAs are present


   KB 23370        Last updated on 2018-08-17  




0.00
(0 votes)


Problem

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


Solution

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 );
       $mailer->open(

After Changes:-

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


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     = " zimbra-smtp1.example.com ";  


Here are two bugs reported for this issue:-

https://bugzilla.zimbra.com/show_bug.cgi?id=85161
https://bugzilla.zimbra.com/show_bug.cgi?id=97024


Submitted by: Heera Singh Koranga
Verified Against: ZCS 8.8, 8.7, 8.6 Date Created: 2017-08-23
Article ID: https://wiki.zimbra.com/index.php?title=Steps_to_fix_zmdailyreport_where_mutliple_MTAs_are_present 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