I am setting up a linux server that I want to send mail independently of our main mailserver (ie. directly). The problem is, when I send mail to an external address, it bounces with the message *domain of sender address does not exist*. (it is sending the mail as root@domain.local)

What is the proper way to change the domain of my email sender?