Difference between revisions of "CentOS 7.x Zimbra command line for sending logwatch email"

From Notes_Wiki
(Created page with "<yambe:breadcrumb>CentOS_7.x_Zimbra_configuration|CentOS 7.x Zimbra configuration</yambe:breadcrumb> =CentOS 7.x Zimbra command line for sending logwatch email= To configure...")
 
m
 
Line 1: Line 1:
<yambe:breadcrumb>CentOS_7.x_Zimbra_configuration|CentOS 7.x Zimbra configuration</yambe:breadcrumb>
[[Main Page|Home]] > [[CentOS]] > [[CentOS 7.x]] > [[CentOS 7.x email configuration|Email configuration]] > [[CentOS 7.x Zimbra configuration|Zimbra configuration]] > [[CentOS 7.x Zimbra command line for sending logwatch email]]
=CentOS 7.x Zimbra command line for sending logwatch email=


To configure logwatch to use sendmail binary that is part of Zimbra installation use following configuration in <tt>/etc/logwatch/conf/logwatch.conf</tt> file:
To configure logwatch to use sendmail binary that is part of Zimbra installation use following configuration in <tt>/etc/logwatch/conf/logwatch.conf</tt> file:
Line 30: Line 29:




<yambe:breadcrumb>CentOS_7.x_Zimbra_configuration|CentOS 7.x Zimbra configuration</yambe:breadcrumb>
[[Main Page|Home]] > [[CentOS]] > [[CentOS 7.x]] > [[CentOS 7.x email configuration|Email configuration]] > [[CentOS 7.x Zimbra configuration|Zimbra configuration]] > [[CentOS 7.x Zimbra command line for sending logwatch email]]

Latest revision as of 15:59, 28 August 2022

Home > CentOS > CentOS 7.x > Email configuration > Zimbra configuration > CentOS 7.x Zimbra command line for sending logwatch email

To configure logwatch to use sendmail binary that is part of Zimbra installation use following configuration in /etc/logwatch/conf/logwatch.conf file:

   MailTo = root_all@your.domain
   MailFrom = Logwatch@your.domain
   mailer = "/opt/zimbra/common/sbin/sendmail -t"

Here, only the binary (command) name is sendmail. Zimbra internally uses postfix MTA for sending emails and same would be used by logwatch.

Note that setting Output = mail is not required as that is taken care of by /etc/cron.daily/0logwatch script using "--output mail" option


Further, we can use:

   /opt/zimbra/common/sbin/postqueue -p

command to look at queue and

   /opt/zimbra/common/sbin/postqueue -f 

to flush zimbra queue, while using Zimbra postfix for sending logwatch emails.


Refer:


Home > CentOS > CentOS 7.x > Email configuration > Zimbra configuration > CentOS 7.x Zimbra command line for sending logwatch email