|
Search Forums:
|
|||||||
| Forums | Register | Forum Rules | Linux and Unix Links | Man Pages | Albums | FAQ | Users | Calendar | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here. |
|
|
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
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
|
||||
|
||||
|
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
|
|||
|
|||
|
Try using 'mail' or /usr/lib/sendmail.
|
| Sponsored Links | ||
|
|
![]() |
| Thread Tools | Search this Thread |
| 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 |
|
|