I have been trying to troubleshoot a weird issue I am having with logwatch and exim. I have logwatch setup so send via another exim smarthost.
If I send a test message via GNU mail. It gets through fine.
If I sent a logwatch email, it fails. I narrowed it down to the fact that the return path is missing when sending using logwatch. I can easily fix the issue by replacing exim with sendmail. But a few internal hosts need to have exim.
Can anyone suggest a workaround. I spent all day troubleshooting this. I tried all version of customizing logwatch.conf. It seems not not make a difference.
notes the blank "F=<> P=<>"
2022-11-29 16:40:05 1p08Ki-000TOh-Qj => foo@domain.com foo@domain.com F=<> P=<> R=dnslookup T=remote_smtp H=foo.mail.protection.outlook.com [104.47.75.228] X=TLS1.2:ECDHE_SECP384R1__RSA_SHA256__AES_256_GCM:256 CV=yes DN="C=US,ST=Washington,L=Redmond,O=Microsoft Corporation,CN=mail.protection.outlook.com" K C="250 2.6.0 E1p08Ki-0001AE-P4@foodomain [InternalId=7816840512544, Hostname=YT3PR01MB9508.CANPRD01.PROD.OUTLOOK.COM] 10948 bytes in 0.067, 157.287 KB/sec Queued mail for delivery"