Sorry - Another Logwatch Question

Michael Newman mgnewman at mac.com
Wed Dec 18 22:18:20 UTC 2024


This works: mailer = "/opt/local/bin/msmtp -t -I"

I have no idea why, when this:

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

Works fine on a Raspberry Pi.

> On Dec 18, 2024, at 19:00, macports-users-request at lists.macports.org wrote:
> 
> Message: 13
> Date: Wed, 18 Dec 2024 13:05:40 +0700
> From: Michael Newman <mgnewman at mac.com <mailto:mgnewman at mac.com>>
> To: MacPorts Users <macports-users at lists.macports.org <mailto:macports-users at lists.macports.org>>
> Subject: Sorry - Another Logwatch Question
> Message-ID: <3A0F4CED-7494-4A0F-9981-1F86C8A1EDE4 at mac.com <mailto:3A0F4CED-7494-4A0F-9981-1F86C8A1EDE4 at mac.com>>
> Content-Type: text/plain; charset="us-ascii"
> 
> 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 <mailto:me at mac.com>
> Subject: hi mac
> done
> .
> EOT
> Sellotape:~ mnewman$ cat .msmtp.log
> Dec 18 12:50:18 host=smtp.gmail.com <http://smtp.gmail.com/> tls=on auth=on user=me 
> from=me at gmail.com <mailto:from=me at gmail.com> recipients=me at mac.com <mailto: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/20241219/c2994188/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/20241219/c2994188/attachment.bin>


More information about the macports-users mailing list