Mail Command Fails With: "Could not resolve host: <hostname>"

(Doc ID 2274946.1)

Last updated on JUNE 21, 2017

Applies to:

Oracle Linux Cloud Service - Version Oracle Linux 6.6 and later
Linux OS - Version Oracle Linux 5.0 and later
Linux x86-64
Linux x86


Mail via command line fails with following error:

$ mail -s "test" root@localhost
test mail
$ Could not resolve host: <hostname>
"/root/dead.letter" 2/23
. . . message not sent.


Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms