- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- How to use 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
Discussions
Discussions
Forums
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
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
тАО04-05-2006 07:48 PM
тАО04-05-2006 07:48 PM
I want to use mailx command. Can I hv an example of the syntax?
Receipient - abc@yohoo.com
subject - test
content - this is just for testing
regards.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-05-2006 07:50 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-05-2006 07:59 PM
тАО04-05-2006 07:59 PM
Re: How to use mailx?
I use it via cron as follows
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
тАО04-05-2006 08:07 PM
тАО04-05-2006 08:07 PM
Re: How to use mailx?
That is it.
--
Muthu
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-05-2006 10:21 PM
тАО04-05-2006 10:21 PM
Re: How to use mailx?
Thanks for ur reply.
1) What is the diff between mailx and sendmail?
2) As I know, we can configure mail relay host at /etc/mail/sendmail.cf. Is this setting only applicable for sendmail? How about mailx?
regards.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-05-2006 10:29 PM
тАО04-05-2006 10:29 PM
Re: How to use mailx?
mailx is the "frontend" for sendmail. So mailx uses sendmail.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-05-2006 10:33 PM
тАО04-05-2006 10:33 PM
Re: How to use mailx?
1) What is the diff between mailx and sendmail?
Sendmail is standard UNIX implementation of SMTP protocol. Where as mailx is frontend. More advanced front end is Pine.
2) As I know, we can configure mail relay host at /etc/mail/sendmail.cf. Is this setting only applicable for sendmail? How about mailx?
Nope. Read the above answer.
-Arun
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-05-2006 10:33 PM
тАО04-05-2006 10:33 PM
Re: How to use mailx?
1) What is the diff between mailx and sendmail?
Sendmail is standars UNIX implementation of SMTP protocol. Where as mailx is frontend. More advanced front end is Pine.
2) As I know, we can configure mail relay host at /etc/mail/sendmail.cf. Is this setting only applicable for sendmail? How about mailx?
Nope. Read the above answer.
-Arun
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-06-2006 01:40 AM
тАО04-06-2006 01:40 AM
Re: How to use mailx?
In reality, if your sendmail.cf isn't configured correctly, then mailx won't work (to anything outside the box).
IE - if you havn't configured a smart relay in sendmail (DS), and your server doesn't "know" how to get to your email server, then, a mailx -s "test" you@yourdomain.com
Rgds...Geoff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-06-2006 05:35 PM
тАО04-06-2006 05:35 PM
Re: How to use mailx?
Per my understanding after went thru all the replies, the mailx will invoke the sedmail to send mail. Am I right?
Currently I'm facing a problem as described below.
Our mail relay server is Trend Micro IMSS.
In /etc/mail/sendmail.cf, I set the 'Smart' relay host to this IMSS.
By using root and sendmail command, the mail can be reached at IMSS but the IMSS treats it as a SPAM.
By using root and mailx command, the mail can be reached at IMSS and divert to the destination sucessfully.
Q1) Why above problem happens?
Q2) What is the diff between /etc/mail/sendmail.cf and /etc/mail/sendmail.cw?
regards.