sendmail help

Dear All

how the root user i.e root@localhos.localdomain can be masqueraded in sendmail i want to masquerade the above to say test@test.com

Regards and thanks in advance

The following is what I typically use with any of my scripts requiring email. Note that not all of my variable definitions are included below, but the one to handle the change in "from" is:

m_recp="jg@abc.com"
m_frv='set from=mgr@abc.com; set realname="The Boss"'
/usr/local/bin/mutt -nx -e "$m_frv" -s "$m_subj" -a "${WRK2}" "$m_recp" <${messaget}

I am not sure if mutt is available for Red Hat, but I would guess that you could download it if not already on your system.

check the file /etc/mail/aliases

thanks joeyg for ur help, i need to configure mutt for running the script u mentioned