- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- How to rewrite the "From" address on outgoing mail
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
09-22-2000 07:14 AM
09-22-2000 07:14 AM
I am new to the HP and got a question here:
We have a client request to rewrite his 'from' address whenever his mail is sent from the server to the outside of the company. Since the server is inside the company firewall, the regular return address (e.g. bsmith@appserver.nj.foo.com, bsmith is his id on the UNIX server) can't be a reachable address when the recepient hit the reply button. So my question was: is there anyway I can change the sendmail configure file so when the "From" line become a reachable email address, something like bob.smith@foo.com?
I have HPUX 11.00 running on the server.
Thanks for all your help.
Enbin
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-22-2000 07:26 AM
09-22-2000 07:26 AM
Re: How to rewrite the "From" address on outgoing mail
Use the 'DM' masquerade in /etc/mail/sendmail.cf - eg. DMfoo.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-22-2000 07:34 AM
09-22-2000 07:34 AM
Re: How to rewrite the "From" address on outgoing mail
This is explained in full in the BAT book (the O'Reilly sendmail book)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-22-2000 07:35 AM
09-22-2000 07:35 AM
Re: How to rewrite the "From" address on outgoing mail
Stop and start sendmail(/sbin/init.d/sendmail stop/start)
Test your configuration as follows:
sendmail -v bob.smith@foo.com.
Also check this previous thread - http://my1.itrc.hp.com/cm/QuestionAnswer/1,1150,0xc35fc5ea0230d411ade80090279cd0f9,00.html
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-22-2000 07:36 AM
09-22-2000 07:36 AM
SolutionI got the following from DocID:KBRC00001457.
We have sendmail 8
Uncomment the following line in /etc/mail/sendmail.cf file:
UserDatabaseSpec=/etc/mail/userdb.db
If not already done so uncomment the first rule in ruleset 94. (I didn't have to do this)
Now:
To rewrite the from lines on outgoing mail:
Create the file /etc/mail/userdb that contains two entries for each mail who will have outgoing mail on the system. (In my case all reports are made to one generic addr)
The entries should be in the following format example:
bkelley:mailname Bob_Kelley
Bob_Kelley:maildrop bkelley
build the /etc/mail/userdb.db file with the makemap routine:
#makemap btree /etc/mail/userdb.db < /etc/mail/userdb
It was quite easy...now we send our reports and if they need to send a msg back that there was a problem with the report it goes to the generic mail addr for operator/programmer or whoever to check it out...
Hope this helps ya !
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-22-2000 08:25 AM
09-22-2000 08:25 AM
Re: How to rewrite the "From" address on outgoing mail
I followed Rita's suggestion and it works now. Thank all for the help.
Enbin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-22-2000 09:51 AM
09-22-2000 09:51 AM
Re: How to rewrite the "From" address on outgoing mail
mailname:UX-ID
bob.smith:bsmith
his.id:user1
her.id:user2
run /usr/sbin/newaliases.
edit the /etc/mail/sendmail.cf file, and look for the C macro. (search for class).
the default is CE which means expose the hosts true identity. If you change this to CM the the domain is masqueraded. As long as the users e-mail creation tool says his identity is bob.smith, it is good. If the users mail program shows his identity as bsmith@foo.com, it will go. If his ID is bob.smith@foo.com the alias is valid so this message will go too.