Fixing sendmail error "[ID 702911 mail.crit] My unqualified host name unknown; sleeping for retry"
This problem annoys the heck out of me, and apparently thousands of other Solaris admins. I can't imagine the reason someone thought sendmail should log this error every few minutes about the stupid hostname, but must have been a good one because the app sure is adamant about it.
1. Type /usr/lib/mail/sh/check-hostname and follow the suggestions
2. Become root
3. chmod 644 /etc/inet/hosts
4. vim /etc/inet/hosts (or edit with any other text-program) and
change the hosts file as /usr/lib/mail/sh/check-hostname suggests.
5. Save the changes
6. chmod 444 /etc/inet/hosts
tldr Add "fully-qualified" name in /etc/hosts — so add myserver.fakedomain.com to shut it up