Sorry - Another Logwatch Question

Michael Newman mgnewman at mac.com
Wed Dec 18 06:05:40 UTC 2024


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 me at mac.com
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 
from=me at gmail.com recipients=me at mac.com 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?


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macports.org/pipermail/macports-users/attachments/20241218/6e322f32/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 1370 bytes
Desc: not available
URL: <http://lists.macports.org/pipermail/macports-users/attachments/20241218/6e322f32/attachment.bin>


More information about the macports-users mailing list