trouble using mailx command

Hi. I have been trying to send mail using the mailx command. I also tryed to use the mail command.

The thing is that when I try to send the email, i receive automatically to my mailbox a DAEMON response sayng that the mailhost is unknown...

The syntax I am using is this:

$mailx -s "this is a test" myaddress@mydomain.com < /home/myhome/filetosend

the file "filetosend" is the file that i want to send as the body of the msg.

and what i get is this:

To: ldrojasm
MIME-Version: 1.0
Subject: Returned mail: Host unknown (Name server: mailhost.mydomain.com: host not found)
Auto-Submitted: auto-generated (failure)

The original message was received at Tue, 2 Apr 2002 17:24:56 -0600 (CST)
from ldrojasm@localhost

----- The following addresses had permanent fatal errors -----
myaddress@mydomain.com

----- Transcript of session follows -----
550 myaddress@mydomain.com... Host unknown (Name server: mailhost.mydomain.com: host not found)

thanx

Try a few things.

I assume that sendmail is running, but check anyway.

Try to mail with to a known address.
Try to ping myaddress.com to see if it is reachable.
Ping other systems or try to email to another outside box.

Also, has your mailx worked before to this address? at all to any address?

What type of UNIX is this? hardware?

Hope this helps.

:slight_smile:

Try using 'mail' or /usr/lib/sendmail.