Configuring sendmail to modify the domain name

Hi,

I would like to change the domain name using sendmail.
For example, currently mails are sent like user@domain1.com
I would like to change it to user@domain2.com

How this can be done from HP-UX?
Your help is highly appreciated.

Thanks in advance.