Sendmail issue

Hi,

I'm using sendmail version 8.13.8-8.1.el5_7. I'm pretty new to it. The servera are running RHEL 5.8. My question basically is that I would want to know is there a way to change the from address. I would be able to change it using the return address in mailx command. However I would like to know if it is possible to do it in the configuration of sendmail

from : root@servername.domainname.com

to

from : root@domainname.com

Many Thanks

The Masquerading setup will do this for you.
So the modern way of configuring sendmail is through the distributed m4 scripts; to convert those to the configuration, you need to install "sendmail-cf" package.

The remainder of the instructions, ie, how to configure the .cf file, can be found here. Note, you want to change submit.cf

The example given there looks like this:

 ...
 ...
 MASQUERADE_AS(`stevesearle.com')
 ...
 FEATURE(masquerade_envelope)
 ...

You also want to remove the EXPOSED_USER parameter.

I have used a different approach without involving submit.cf. My apologies, the issue was resolved on the day I posted my question.

Thanks

If you can show us how you resolved your issue, it will help us if you show how you resolved it. If someone else runs into the same problem later, it would be nice for them to be able to see in this thread how you fixed it.