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, [email protected] wrote: > > Message: 13 > Date: Wed, 18 Dec 2024 13:05:40 +0700 > From: Michael Newman <[email protected] <mailto:[email protected]>> > To: MacPorts Users <[email protected] > <mailto:[email protected]>> > Subject: Sorry - Another Logwatch Question > Message-ID: <[email protected] > <mailto:[email protected]>> > 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 [email protected] <mailto:[email protected]> > 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 > [email protected] <mailto:[email protected]> [email protected] > <mailto:[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
