My Oracle Support Banner

Mail Command Fails With: "Could not resolve host: <hostname>" (Doc ID 2274946.1)

Last updated on AUGUST 04, 2018

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

Symptoms

Mail via command line fails with following error:

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

Cause

To view full details, sign in with your My Oracle Support account.

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


In this Document
Symptoms
Cause
Solution


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.