Sendmail

Hi...

I am using sendmail as MTA. I want to change the email messages sender address from root@server.domain.com to look like someuser@server.domain.com. How can i accomplish this?

I don't want to change the domain part of the address,its only the senders name that i want to change.

A sendmail guru will do something clever with the sendmail.cf file but in the meantime:

# cat mail.txt
To: touser@domain.com
From: fromuser@domain.com
Subject: Test Mail
text
This is a test mail file to be used by sendmail.
.
#
# /usr/bin/sendmail -t < mail.txt

May achieve what you are after?

Thanks, it served my purpose...