Mailx command running successfully but no mails received.


 
Thread Tools Search this Thread
Operating Systems HP-UX Mailx command running successfully but no mails received.
# 1  
Old 02-07-2014
Mailx command running successfully but no mails received.

Hi,

I am working on a HP-UX box. Mailx command running successfully but no mails received. Here is what I am doing

Code:
rocfm@comhp73 -   mailx -s "subject" abc@gmail.com < abc.txt
Null message body; hope that's ok
rocfm@comhp73 - echo $?
0
rocfm@comhp73 - echo "something" | mailx -v -s "subject" abc@gmail.com
mailx: illegal option -- v
usage: mailx [-FUm] [-s subject] [-r address] [-h number] address ...
       mailx -e
       mailx [-UHLiNn] [-u user]
       mailx -f [-UHLiNn] [filename]

Can any one please help, as to where I can check the problem. What configurations should I check.

Last edited by Corona688; 02-07-2014 at 04:32 PM..
# 2  
Old 02-08-2014
Mailx is an MUA Mail User Agent). You need an MTA (Mail Transport Agent) also. Have not used HP-UX but I think it's MTA is sendmail.

Is there a sendmail process when you do a ps aux listing?
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

AT00003.bin attachment is received from mailx command.

Hi Team, I am sending a mail from Linux box as shown below. cat sample.log | mailx -s "Testing" abc.com But instead of receiving the content of sample.log in the mail i got an attachment with name AT00001.bin. After looking into the contents of log file i found that there are some... (1 Reply)
Discussion started by: Girish19
1 Replies

2. Solaris

Mail from mailx not received

Hi , I'm trying to send a mail from a sunOS machine that is within hp network to my email: eman.el-badawy@hp.com ,the user trying to send is 'project',,but seems the mail address can not be resolved checking /var/log/syslog i got the following: Dec 25 14:34:02 svddev15 sendmail: ... (1 Reply)
Discussion started by: Eman_in_forum
1 Replies

3. Shell Programming and Scripting

2 mails from mailx command

hi, While using mailx command i am receiving 2 mails with the same content in both the mails.I am attaching a file to the mailx command. In one mail file is coming as attachement and in other attachment is not there. I am using mailx command in this way. echo "Some content" |mailx... (0 Replies)
Discussion started by: arijitsaha
0 Replies

4. Shell Programming and Scripting

mailx- how to delete least of mails

Hi, when i run the mailx command it gives me the least of mails . suppose there are 1- 150 mails and i want to delete 30 to 145 mails . then what command i have to use here? Thanks (6 Replies)
Discussion started by: aish11
6 Replies

5. Shell Programming and Scripting

mailx is not working outside e-mails

HI i wrote schell script to send e-mail automatically. it works only e-mail for our company.say for example, company name is : abc, example: joe@abc.com every body is receiving with xxx@abc.com (abc.com) if any body from outside of our company like joe@xyz.com.(xyz.com) are not... (3 Replies)
Discussion started by: raosurya
3 Replies

6. UNIX for Advanced & Expert Users

Problem with mailx - Can execute but email not received

Hi, I tried running mailx command like this: sadm@bioinfo-z:~$ mailx foobar@gmail.com Subject: testgmail Some content. . EOT As you can see although it is successfuly executed. But still I can't receive email at my foobar@gmail.com account. What is the cause? (9 Replies)
Discussion started by: monkfan
9 Replies

7. Debian

cannot send any mails using mailx

hi howto configure mailx ? kind regards ccc (11 Replies)
Discussion started by: ccc
11 Replies

8. UNIX for Dummies Questions & Answers

Does Mailx store the mails sent

Hi, I use mailx in a shell script to mail a message to the users. i wanted to know if mailx stores the mail that it sends? for eg in microsoft outlook all mails sent get stored in the outbox. is there such a facility with mailx? if not how i can do this so that for every mail sent, a backup... (6 Replies)
Discussion started by: munira_johar
6 Replies

9. UNIX for Dummies Questions & Answers

mails from unix server are not being received

Both A and B people has mail client to mail client interaction happily. 1) mails from A company unix server 'uuu' are being received by A company people onto their mail client. So A company people are happy. 2) mails from A company unix server 'uuu' are not being received by B ... (4 Replies)
Discussion started by: vkandati
4 Replies
Login or Register to Ask a Question