I am having trouble sending some emergency log reports over email on rhl 9. When I send the mail to my email address , the provider sends back a mail that reports localhost.localdomain is not valid and rejects my message. I do not have a FQDN on this server but I want to be able to send messages to my email address. I have tried actually changing my name to a fake FQDN in /etc/hosts and it works but I have many other problems then.
Is there a way to configure sendmail to change the from address to something like "mydomain.com" so I can send messages to my email and not get rejected?