My Oracle Support Banner

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

Last updated on APRIL 23, 2020

Applies to:

Oracle Linux Cloud Service - Version Oracle Linux 6.6 and later
Linux OS - Version Oracle Linux 5.0 and later
Oracle Cloud Infrastructure - Version N/A 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.


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

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