mailx for red hat version 5.4


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting mailx for red hat version 5.4
# 1  
Old 01-10-2011
mailx for red hat version 5.4

Hi,

i am trying to use mailx utility on red hat. I am unsuccessful in doing it. kindly see below for the steps i am doing :-

Code:
1) mailx -s "testing" user@ipaddress
2) when i check my /var/mail/ folder 
there is no file being generated by the name user, instead there is a file being generated by the name of aap.
3) as per me, my syntax is correct. but i am unable to find why the file is not being generated by the name of user

# 2  
Old 01-10-2011
Did you give mail body correctly?
As below:
Code:
mailx -s "testing" user@ipaddress < mail_body

where mail_body is the file having the mail content.
OR type your above command, hit enter, then type some message, then to stop, Crtl+D.
# 3  
Old 01-10-2011
i have tried the way recommended by you. but the problem still persists. I am unable to use mailx. any other suggestions.

the file with the username is still not being created after incorporating the above suggestion.
# 4  
Old 01-10-2011
Quote:
1) mailx -s "testing" user@ipaddress
Assuming that there is only one computer involved here, shouldn't this be:
Code:
mailx -s "testing" user <mail_body

It is well worth testing that local mail is working.

Even if the the mail is destined for another computer we would expect the syntax:
Code:
mailx -s "testing" user@domain < mail_body

# 5  
Old 01-11-2011
I'm having the same issue even after trying with the suggested method. It is creating the filename with os user in the source system instead of receipient user in /usr/mail folder and I'm not getting mail at user@domain address.
# 6  
Old 01-11-2011
Just curious do you have mail server running ... can you check with telnet

Code:
$ telnet <IP ADDRESS> 25

if this works try sending email from the telnet .. directly ... see what error you get ... or check your /var/log/mail<logs>

if everything works on telnet ... try to check with pine or mutt emailers ..

mailx and mail utility are simple way to send email ...

If you have root access on machine check any bounce mails etc ...
# 7  
Old 01-11-2011
Quote:
I'm having the same issue even after trying with the suggested method. It is creating the filename with os user in the source system instead of receipient user in /usr/mail folder and I'm not getting mail at user@domain address.
The mail file on the source system should be in text format and readable with say "cat" or of course with "mailx". Is the content or the file the mail you sent, or a bounce?
Any clues in your mail log?
Login or Register to Ask a Question

Previous Thread | Next Thread

8 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Red Hat 5.10 repository issue - desktop version

this is proving to be a real pain to set up. i recently installed red hat 5.10 desktop version. install went well. i've registered my system, but i cant seem to yum install simple packages. i can install some packages, but many others i cant. for instance, i cant do a: yum install php ... (2 Replies)
Discussion started by: SkySmart
2 Replies

2. Red Hat

How to Install Red Hat Linux Desktop version 4?

I want to install Red Hat Linux Desktop version 4. Please tell me the step-by-step installation and which file system will be best for this O/S? Like in windows, we have NTFS file system(which has very security features). Is there any such file system in Linux? Which file system should i use?... (0 Replies)
Discussion started by: Anna Hussie
0 Replies

3. Red Hat

How to Install Red Hat Linux Desktop version 4?

I want to install Red Hat Linux Desktop version 4. Please tell me the step-by-step installation and which file system will be best for this O/S? Like in windows, we have NTFS file system(which has very security features). Is there any such file system in Linux? Which file system should i use? (2 Replies)
Discussion started by: Anna Hussie
2 Replies

4. Red Hat

finding exact version of Red Hat Linux

Hi, I would like to know how to find out exact version of linux on the basis of kernel level, uname -a 2.6.18-238.1.1.el5 from above command how to find out exact version of redhat linux? it is showing that version of redhat is 5.0 but it comes under which update like 1,2,3,4,5,6 ... (1 Reply)
Discussion started by: manoj.solaris
1 Replies

5. Red Hat

Virtual Red Hat version

Hello, Is there a Virtual Red hat that will work with Windows Vista? I would like to become more familiar with it and a virtual version will help me with a hands on approach. Nov_User (3 Replies)
Discussion started by: nov_user
3 Replies

6. Linux

Does any hunk knows how to block ultrasurf in squid proxy red hat version 4

Does any one knows how to block ultrasurf in squid proxy ?:) I have one shell script i.e blocking all ultrsurf version except ultrasurf 8.9 if any one knows pls share the documents with me. (1 Reply)
Discussion started by: vishwanathhcl
1 Replies

7. Cybersecurity

Does any hunk knows how to block ultrasurf in squid proxy red hat version 4

Does any one knows how to block ultrasurf in squid proxy ? I have one shell script i.e blocking all ultrsurf version except ultrasurf 8.9 i f any one knows pls share the documents with me. Please read the rules: No double posting! Thank you - site moderator (0 Replies)
Discussion started by: vishwanathhcl
0 Replies

8. Linux

Red Hat Enterprise Linux Version 3

Hello there guys, i'm new in this linux world and i'm having problems with telnet session. I enabled telnet login but it wont let me login as root. is there a file that i need to take a look to make sure that root could telnet to the system. Thanks a lot guys for your help. (2 Replies)
Discussion started by: josramon
2 Replies
Login or Register to Ask a Question