Wednesday, December 18, 2024

e-mail – Learn how to configure logwatch to ship mail

This on an Intel iMac operating Sequoia

I’ve logwatch operating on a Raspberry Pi which works simply high quality. Nevertheless, I am having bother getting logwatch on a Mac to ship the outcomes through e-mail.

On each the Mac and the Pi I am utilizing MSMTP as an SMTP consumer. They’re configured identically with gmail because the relay host.

On the Pi I take advantage of the next within the config file:

mailer = "/usr/sbin/sendmail -t"

If I take advantage of the identical on the Mac, it seems to work with no error message, however the mail by no means will get delivered. There are not any error messages within the msmtp log.

I do know logwatch is working as a result of if I take advantage of:

Sellotape:conf mnewman$ sudo logwatch --output stdout

I get:

 ################### Logwatch 7.11 (07/22/24) ####################
        Processing Initiated: Wed Dec 18 12:43:29 2024
        Date Vary Processed: yesterday
                              ( 2024-Dec-17 )
                              Interval is day.
        Element Degree of Output: 5
        Sort of Output/Format: stdout / textual content
        Logfiles for Host: Sellotape.native
 ##################################################################
<snip>

Sending mail from the Mac on the command line works simply high quality:

Sellotape:~ mnewman$ mail [email protected]
Topic: hello mac
achieved
.
EOT
Sellotape:~ mnewman$ cat .msmtp.log
Dec 18 12:50:18 host=smtp.gmail.com tls=on auth=on person=me 
[email protected] [email protected] mailsize=178 
smtpstatus=250 smtpmsg='250 2.0.0 OK  1734501018 98e67ed59e1d1-
2f2ed644980sm487477a91.26 - gsmtp' exitcode=EX_OK

What have I achieved mistaken to maintain logwatch from sending outcomes through e-mail?

Related Articles

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Latest Articles