- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: mailx sender's name
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
тАО06-14-2007 09:10 PM
тАО06-14-2007 09:10 PM
mailx sender's name
I'd like to specific a sender's name instead of the default one. Could anyone tell me how I can do it.
My unix version:
HP-UX etjisux2 B.11.11 U 9000/800
Thanks,
Kevin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-14-2007 09:14 PM
тАО06-14-2007 09:14 PM
Re: mailx sender's name
sendmail -f sender@domain ...
Or rewrite senders names - http://docs.hp.com/en/B2355-90147/ch04s03.html#cciecbcb
regards,
ivan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-14-2007 09:15 PM
тАО06-14-2007 09:15 PM
Re: mailx sender's name
# echo test | mailx -s "some subject" -r some@mailaddress.com recipient@email.com
Cheers,
Wout
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-15-2007 12:13 AM
тАО06-15-2007 12:13 AM
Re: mailx sender's name
e.g.
cat /etc/hosts |mailx -r "from name
in fact, you can specify *any* name/email address when specifying the value for the -r switch
hope this helps too!
kind regards
yogeeraj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-15-2007 01:36 AM
тАО06-15-2007 01:36 AM
Re: mailx sender's name
The options specified above work for individual runs. If you *always* want a user's name to be rewritten, you can use the genericstable. You may have to rebuild the sendmail.cf file to support it, but that's pretty easy. Let me know if you want specifics.
Once sendmail supports the genericstable, just create a file /etc/mail/genericstable with the format:
${source} ${rewrite}
For instance:
oleary dkoleary@olearycomputers.com
would rewrite any mail coming from oleary to appear as if it were coming from dkoleary@olearycomputers.com
Works pretty well.
Doug
------
Senior UNIX Admin
O'Leary Computers Inc
linkedin: http://www.linkedin.com/dkoleary
Resume: http://www.olearycomputers.com/resume.html
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-17-2007 01:52 PM
тАО06-17-2007 01:52 PM
Re: mailx sender's name
Many many thank for all of your answers!