mailx on linux just like on solaris/HP

 
Thread Tools Search this Thread
Operating Systems Linux Red Hat mailx on linux just like on solaris/HP
# 1  
Old 04-10-2012
mailx on linux just like on solaris/HP

Hello Unix lovers,

I want to know if I can have mailx on linux. I am using redhat 6.

My sys admin says that mailx is not availble on linux. I see on my linux system mailx is just a link to /bin/Mail program.

I want to install mailx just as it is availble on soaris/HP.

When my sys admin reinstalled mailx package, it only installed Mail and mail programs.

Code:
[root@indlin179 ~]# rpm -ql mailx-8.1.1-44.2.2
/bin/mail
/etc/mail.rc
/usr/bin/Mail
/usr/lib/mail.help
/usr/lib/mail.tildehelp
/usr/share/man/man1/Mail.1.gz
/usr/share/man/man1/mail.1.gz

As I understnad mail and mailx are different and mailx is enhanced version of mail.

Any pointers will help.

thanks,
Ashish

Moderator's Comments:
Mod Comment Welcome to the UNIX and Linux Forums. Please use code tags. Video tutorial on how to use them


---------- Post updated 04-10-12 at 09:49 AM ---------- Previous update was 04-09-12 at 06:00 PM ----------

Hello Moderators,
is there any way I can move this thread to general unix section, just for larger view from many peoples?

i really need to solve this urgently.

Thanks,
Ashish

Last edited by Scrutinizer; 04-09-2012 at 10:13 AM..
# 2  
Old 04-16-2012
Hi,

Mailx worked in linux and unix, I have installed in RedHat and HP-UX, I used in OSF1 too.

Run:
Code:
rpm -ql redhat-lsb

Quim&r@

Last edited by Scrutinizer; 04-17-2012 at 08:50 AM.. Reason: code tags
# 3  
Old 04-17-2012
Thanks quimera for your reply.

Would you please check if below works for you as desired. For me it works on HP/Solaris but not on linux.

$mailx abc@company.com <<EOF
>~c xyz@company.com
>~s this is subject
>this is mail body
>EOF
$
# 4  
Old 04-19-2012
It seems that mailx I am using on my redhat linux is old implementation.
To get above done I had to use mailx -I .

Thanks all for your reply.


-Ashish
# 5  
Old 04-19-2012
Hi Ashish,

I did not know this way.

Thanks.

Quim&r@.



Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Mailx not working on Linux

Hi, telnet localhost 25 Trying ::1... Connected to localhost. Escape character is '^]'. 220 TechBun ESMTP Postfix This command echo "hi" | mail -v me@mycomp.com does not send mail to my inbox and i get the below output. Upon investigation i saw this log file tail -f... (3 Replies)
Discussion started by: mohtashims
3 Replies

2. Solaris

Solaris mailx Configuration

Hi, I need to send an output from Solaris to my email address. For example df -h to be sent out from the Solaris. I was wondering how to configure the mailx and smtp configuration to be setup. Has anyone setup before? Thanks. :confused::confused::confused: (0 Replies)
Discussion started by: freshmeat
0 Replies

3. Solaris

Configure mailx in Solaris 10

Hello, We are using exchange server in our environment. I need to configure mailx to send email from Solaris box to one mail I'd which is on exchange server. I know ip of exchange server.. Let me know where should I configure that ip to do the needful? (2 Replies)
Discussion started by: sureshsun
2 Replies

4. Solaris

Mailx help in Solaris

Hi Team, We are with Solaris 10. And presently we are sending mail using the tool mailx -s. Our requirement is we need to send amil with HIGHPRIORITY. SO is there any way to send the mail as HIGHPRIORITY. If not any alternative way instaead of using mailx. Thanks in advance. Regards Bala (7 Replies)
Discussion started by: balagj709
7 Replies

5. UNIX for Dummies Questions & Answers

how to sendmail using mailx in linux

how to sendmail to other computer in the same computer lab using mailx? (8 Replies)
Discussion started by: help me
8 Replies

6. Solaris

Solaris Mailx Problem.

I have 4 solaris servers with similar configuration and i configured mailx in all 4 servers. i have made necessery changes in /etc/mail/sendmail.cf. and i added the mail server entry in /etc/hosts file and it is working fine in 3 servers properly. but its not working in 1 server. Everything is fine... (3 Replies)
Discussion started by: sandeep.tk
3 Replies

7. UNIX for Dummies Questions & Answers

Need Help w/mailx - Sun Solaris

I have this Legato application which generates a file and then it pipes it to mailx. cat << savelog.txt | mailx -s "Saverpt `date +"%c`" myemail@xxx.com The "savelog.txt does get created and is owned by root and other group, but yet will not email using mailx to myemail@xxx.com. Mailx... (4 Replies)
Discussion started by: gzs553
4 Replies

8. Solaris

Solaris 9 mailx problems

how come I cant email myself, here is what im typing mailx saundersc Subject: hi hello world . EOT # su saundersc # mailx No mail for saundersc (5 Replies)
Discussion started by: csaunders
5 Replies

9. Linux

How to install mailx command on linux ???

Hi, I'm planning to move all my shell scripts from Unix to Linux. currently in unix i have used the mailx command with the options -r & -s eg., mailx -s "Hai" -r "xyz@abc.com" < abc.txt But, if i move the scripts to linux i do not have the option -r in the mail command. What should... (3 Replies)
Discussion started by: mpvenkat
3 Replies

10. Shell Programming and Scripting

mailx command (Sun Solaris 8)

Hi, I would like to use mailx to send multiple files to one recipient whereas each file should be send as a separate email. mailx -s "Subject" email@user.de < file1 file2 file3 file4 If I use this command email@user.de will receive only file4. And: cat file* | mailx -s .... will combine... (2 Replies)
Discussion started by: cczerwin
2 Replies
Login or Register to Ask a Question