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 = email@example.com 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:
command to look at queue and
to flush zimbra queue, while using Zimbra postfix for sending logwatch emails.