- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Command elm and mailx
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-24-2005 02:20 AM
11-24-2005 02:20 AM
Could you tell me what is the diference between mailx and elm commands?
i know they have same sintaxis:
mailx -s "subject" mail@xxxxxx.com < text_file
elm -s "subject" mail@xxxxxx.com < text_file
and ..
what daemon does server need for send a mail?
what do i must configure in etc/hosts, /etc/services ..or another file to send a mail?
do i need some patch for hp-ux 10.x or hp-ux11.x ?
Thanks, Manuales.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-24-2005 02:43 AM
11-24-2005 02:43 AM
Re: Command elm and mailx
No daemon require for mail client, but you need to setup name server on /etc/resolv.conf
try to insert your DNS on the file /etc/resolv.conf and take a try again:
nameserver 10.1.2.1
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-24-2005 05:05 AM
11-24-2005 05:05 AM
Re: Command elm and mailx
If nslookup hp.com turns up a valid answer the mail will go through.
sendmail needs to run in daemon form to accept mail. Both elm and mailx use sendmail as their mail transport, but they use the binary to try and connect and get it off the server.
If for some reason the mail can not be delivered then it is queued locally.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-24-2005 06:42 AM
11-24-2005 06:42 AM
Re: Command elm and mailx
check, i'm new in this ..
mmm ...
in my emulation i wrotte next:
mailx -s "SUBJECT" manuales@xxx.com.mx < /home/manuales/test.txt
test.txt contains: this is a test
when i execute it i verify mail.log localized in /var/adm/syslog and the answer is:
Nov 24 14:32:13 hostname sendmail[7198]: gethostbyaddr(x.y.z.a) failed: 1
Nov 24 14:25:28 hostname sendmail[5146]: OAA05146: from=username, size=207, class=0
, pri=30207, nrcpts=1, msgid=<200511241925.OAA05146@hostname.xxx.com>, relay =username@localhost Nov 24 14:25:28 hostname sendmail[5148]: OAA05146: to=manuales@xxx.com.ms, c
tladdr=username (3208/201), delay=00:00:00, xdelay=00:00:00, mailer=relay, relay=c
zzzz.sss.ccc [23.34.45.56], stat=Sent (2.6.0 <200511241925.OAA05146@hostname
.xxx.com> Queued mail for delivery)
what is the meaning of this?
thanks, Manuales.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-24-2005 04:42 PM
11-24-2005 04:42 PM
Re: Command elm and mailx
this is because in mail.log told me:
Nov 24 22:55:43 hostname sendmail[8985]: unable to qualify my own domain name (hostname) -- using short name
Nov 24 22:55:43 hostname sendmail[8985]: be sure to set domain name in Dj macro in sendmail.cf
i have already modified the file sendmail.cf with next:
in sendmail.cf file i put next line:
# my official domain name
# ... define this only if sendmail cannot automatically determine your domain
Dj$w.mydomain.com but it isn't work !!!
i have a server where mailx command is working very well and i can see that in this server is running a daemon sendmail of this form:
sendmail: accepting connections on port ##
but in another server where mails aren't arrive to may mail isnn't this daemon ...
how do i must run this daemon like in server where mail is working o.k.??
thanks, Manuales.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-24-2005 05:53 PM
11-24-2005 05:53 PM
Re: Command elm and mailx
To find out the different between mailx & elm, just check on the man page of both command :
# man elm
# man mailx
For the issue about 'Unable to qualify my own domain name', check the url below (docID : KBRC00003446) :
http://www2.itrc.hp.com/service/cki/docDisplay.do?docLocale=en_US&docId=200000079998670
To restart the sendmail process :
# /sbin/init.d/sendmail stop
# /sbin/init.d/sendmail start
Hope this information can help you.
Cheers,
AW
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-14-2005 04:11 AM
12-14-2005 04:11 AM
Re: Command elm and mailx
i know that if i use mailx command i must have a file where is the message "<"
mailx -s "RED ALERT" user1@patito.com.mx < /home/messages.txt
but. how can i use this one using a variable which contains the string (message).. i don't want use a file that contains messages i need use a variable with the message, what is the sintaxis to use it in this form, without a file that contains the message?
Thanks, Manuales.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-14-2005 07:38 AM
12-14-2005 07:38 AM
Re: Command elm and mailx
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-14-2005 07:43 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-14-2005 08:16 AM
12-14-2005 08:16 AM
Re: Command elm and mailx
:0)
:0)
:0)