- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: mailx OR sendmail
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
тАО03-22-2007 05:00 AM
тАО03-22-2007 05:00 AM
mailx OR sendmail
As a user - I su - (to root) knowing the root passwd - I then do a mailx and will show that it came from user and NOT AS ROOT
Is there a way to change that so it would show the sender as ROOT -
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-22-2007 07:52 PM
тАО03-22-2007 07:52 PM
Re: mailx OR sendmail
you can change the sender by mailx using -r options:
mailx -r root -s "subject" a@b.c
HTH,
Art
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-22-2007 08:26 PM
тАО03-22-2007 08:26 PM
Re: mailx OR sendmail
please read this earlier thread:
"Sending emails from root after "su -"
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=778737
Please also read:
http://forums1.itrc.hp.com/service/forums/helptips.do?#33 on how to reward any useful answers given to your questions.
So far you have not awarded any points !
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-22-2007 08:32 PM
тАО03-22-2007 08:32 PM
Re: mailx OR sendmail
the same for sendmal:
$cat <
> from: sender@blah.blubb
> subject: Test
> Msg
> EOF
$sendmail your_email@blah.blubb < mail
Regards
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-22-2007 09:03 PM
тАО03-22-2007 09:03 PM
Re: mailx OR sendmail
You could use a sendmail script and change the sender to anybody you want.
http://www.hpux.ws/mailfile2
Thats a bit elaborate though.
You could try setting up /etc/aliases on the system and give root an alias to another user or email address
root: nedz@your.net
newaliases command will put that into effect.
Note that mailx uses sendmail as a transport by default so it really doesn't matter wheter you use elm, mailx mail or sendmail itself.
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
тАО03-29-2007 12:41 AM
тАО03-29-2007 12:41 AM
Re: mailx OR sendmail
have you had any progress with this problem ?
If this is fixed, could you please complete the thread by awarding points to helpful answers and summarising the solution for you.
http://forums1.itrc.hp.com/service/forums/helptips.do?#33 shows how to reward any useful answers given to your questions.