How to change send email from user@hostname.localdomain to user.hostname@mydomain.com

Latest response

Hi. In our enviroment we have few RHEL 7 dateabase servers. The server auto-sends alerts to DBAs. They show the sender as user@hostname.localdomain . How can I change it to this format user.hostname@mydomain.com ? I have been playing around with sendmail.mc /cf files and genericstable.db with whatever information I can google. but has not achieved the desired result. Any help will be appreciated ?

Responses