Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
Search Forums:



Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here.

Closed Thread    
 
Thread Tools Search this Thread Display Modes
    #1  
Old 04-02-2002
Registered User
 

Join Date: Mar 2002
Location: CR
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Unhappy 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
Sponsored Links
    #2  
Old 04-02-2002
Kelam_Magnus's Avatar
Registered User
 

Join Date: Aug 2001
Location: DFW McKinney, TX,
Posts: 1,069
Thanks: 0
Thanked 3 Times in 3 Posts
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.


Sponsored Links
    #3  
Old 04-03-2002
Registered User
 

Join Date: Sep 2001
Posts: 36
Thanks: 0
Thanked 0 Times in 0 Posts
Try using 'mail' or /usr/lib/sendmail.
Sponsored Links
Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Mailx Command shahnazurs UNIX for Advanced & Expert Users 3 11-16-2007 12:31 AM
How to configure mailx command?? kumarsaravana_s Shell Programming and Scripting 9 03-29-2007 08:18 AM
Trouble formatting egrep command with AWK cruiser AIX 2 03-22-2006 04:59 PM
mailx command with headers rgremill Solaris 5 02-09-2006 04:23 PM
mailx command sveera Shell Programming and Scripting 5 04-28-2005 10:18 PM



All times are GMT -4. The time now is 05:12 AM.