CentOS 7.x Zimbra command line for sending logwatch email
<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 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:
<yambe:breadcrumb>CentOS_7.x_Zimbra_configuration|CentOS 7.x Zimbra configuration</yambe:breadcrumb>