Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

system emails not being masqueraded while command line calls ar

Status
Not open for further replies.

jamby

Technical User
Nov 21, 2021
1
0
0
US
Hi
First post. sendmail-8.14.7-6.el7.x86_64 on Centos 7. I have a small home network with (4) computers. Ace is the mail server and all others send their logwatch emails thru it. But Ace its self is not masquerading its "From" address correctly, well not at all since it says From: Ace. This is when cron.daily runs 0logwatch. But if I run from the command line "sudo /etc/cron.daily/0logwatch" this email has the correct From: jamby@my.domain.com.

When run from the command line either sudo or su both show the same first line:
Nov 21 09:30:30 ace sendmail[9828]: 1ALHUUe9009828: from=jamby,
But run as a system call the first line shows
Nov 21 03:31:06 ace sendmail[17130]: 1ALBV5JD017130: from=root,

Is there a way to overcome this and get the mail to masquerade these correctly?

Thanks
Jim
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top