- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: mailx.rc set parm for reply-to?
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
Forums
Discussions
Discussions
Discussions
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
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-08-2004 07:59 AM
03-08-2004 07:59 AM
mailx.rc set parm for reply-to?
I'm trying to rewire mailx such that any use of it will always rewrite the reply-to as "unix_sysadm@hertz.com" regardless of what account actually invokes mailx for sending via cmd line.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-08-2004 08:04 AM
03-08-2004 08:04 AM
Re: mailx.rc set parm for reply-to?
make mailx alias to mailx -r unix_sysadm@hertz.com
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-08-2004 08:11 AM
03-08-2004 08:11 AM
Re: mailx.rc set parm for reply-to?
set from unix_sysadm@hertz.com
in the .mailrc file or in the system wide:
/usr/share/lib/mailx.rc
Rgds...Geoff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-08-2004 08:17 AM
03-08-2004 08:17 AM
Re: mailx.rc set parm for reply-to?
Steven, yours might be my solution if I can find an easy way to ensure the alias is set when I need it. The scripts that that need the modified mailx are fired from root's crontab. I've tried it interactively, and it works fine. I'm reserving points assignment for your suggestion until I see if it's the one I use.
Thanks to you both!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-08-2004 08:22 AM
03-08-2004 08:22 AM
Re: mailx.rc set parm for reply-to?
What I might do is set up a file in /etc/rc.config.d
With the alias commands and any other environment you want in your cron scripts.
Call it /etc/rc.config.d/cronenv
All cron scripts will need to be modified to have this line in them:
. /etc/rc.config.d/cronenv
I'm trying this out, not for command alias, but so that I can have central control of my cron environment.
Obviously, I don't now how to modify the configuration file you mentioned.
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-08-2004 08:57 AM
03-08-2004 08:57 AM
Re: mailx.rc set parm for reply-to?
vi ~/elm/elmheaders
Add:
From: unix_sysadm@hertz.com
Then use elm to send email:
elm -s "test" you@yourdomain.com
Rgds...Geoff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-09-2004 08:02 AM
09-09-2004 08:02 AM
Re: mailx.rc set parm for reply-to?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-09-2004 10:55 AM
09-09-2004 10:55 AM
Re: mailx.rc set parm for reply-to?
~R @
With the appropriate address and host. If your cat'ing through to mailx you could have your line looking like:
echo "~R
Or similar.
Cheers
Steven
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-10-2004 12:52 AM
09-10-2004 12:52 AM