If I should ask this elsewhere, please let me know: I have logwatch running on a Raspberry Pi which works just fine. However, I'm having trouble getting logwatch on a Mac to send the results via email.
On both the Mac and the Pi I'm using MSMTP as an SMTP client. They are
configured identically with gmail as the relay host.
On the Pi I use the following in the config file:
mailer = "/usr/sbin/sendmail -t"
If I use the same on the Mac, it appears to work with no error message, but the
mail never gets delivered. There are no error messages in the msmtp log.
I know logwatch is working because if I use:
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 Range Processed: yesterday
( 2024-Dec-17 )
Period is day.
Detail Level of Output: 5
Type of Output/Format: stdout / text
Logfiles for Host: Sellotape.local
##################################################################
<snip>
Sending mail from the Mac on the command line works just fine:
Sellotape:~ mnewman$ mail [email protected]
Subject: hi mac
done
.
EOT
Sellotape:~ mnewman$ cat .msmtp.log
Dec 18 12:50:18 host=smtp.gmail.com tls=on auth=on user=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 done wrong to keep logwatch from sending results via email?
smime.p7s
Description: S/MIME cryptographic signature
