- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- mailx override of return address ???
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-18-2004 02:20 AM
тАО06-18-2004 02:20 AM
mailx override of return address ???
I need to override this to be user@domain.com.
How can this be done?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-18-2004 02:24 AM
тАО06-18-2004 02:24 AM
Re: mailx override of return address ???
Use "-r" flag with mailx.
If you are the SA of the box and you want to globalize it, then edit sendmail.cf file to use the masquerade (DM) option. Search for ^DM and replace it with
DMdomain.com
The users that are specified with "CE" macro will be exempted from masquerading. So, look for the option also.
-Sri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-18-2004 02:26 AM
тАО06-18-2004 02:26 AM
Re: mailx override of return address ???
mailx -r xxx@yyy.com -s "Subject" email_address
In sendmail.cd, check DM macro.
Now email will appear as from xxx@yyy.com
Anil
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-18-2004 02:38 AM
тАО06-18-2004 02:38 AM
Re: mailx override of return address ???
http://www.sendmail.org/virtual-hosting.html
http://www.sendmail.org/
If you need macro scripting: http://www.hpux.ws/buildmail.hpux.text
That last link is specifically for HP-UX's sendmail implementation.
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
тАО06-23-2004 05:49 AM
тАО06-23-2004 05:49 AM
Re: mailx override of return address ???
Ran into this a few years back. Wanted users to send out mail but have the return point to their outlook address.
Did so with two steps -
1. Modified the sendmail.cf to reflect the outlook server adressing.
2. created a user db to convert the unix user name to outlook user name.
Snip of bothe below.
Best of luck.
Regards,
dl
sendmail.cf snipet
# masquarade as, aka site hiding(null for no masquerading)
DM gottschalks.com
userdb entries snipit
# run makemap -r btree /etc/mail/userdb.db < /etc/mail/userdb
# /sbin/init.d/sendmail stop
# /sbin/init.d/sendmail start
#
andyimm: mailname andy.imm
andy.imm:maildrop andyimm
dlamar: mailname dave.lamar
dave.lamar:maildrop dlamar