- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: sendmail masquerade outbound help
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
Forums
Discussions
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
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
11-05-2004 01:09 AM
11-05-2004 01:09 AM
Here's my problem. I accept mail for local user "user1@domain1.com" and remote user "user2@domain2.com". My sendmail.cw has both domain1.com and domain2.com listed so I can accept mail for both, and DM is set to domain1.com in sendmail.cf.
I need to send an outbound message and change the From: address to user2@domain2.com, but my current config changes user2@domain2.com to user2@domain1.com. Unless I remove domain2.com from sendmail.cw, or st DM to null.
Any thoughts on how to get this to work?
Thanks
-denver
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-05-2004 01:18 AM
11-05-2004 01:18 AM
Solutioncreate the users in /etc/mail/virtusertable and /etc/mail/genericstable
Then use sendmail macros.
http://www.hpux.ws/buildmail.hpux.text
This file will tell you where the macro file is in the that script.
Here is what you need in there:
Cwdomain1.com
Cwdomain2.com
MASQUERADE_DOMAIN(domain1.com)dnl
MASQUERADE_DOMAIN(domain2.com)dnl
run the script, building the databases and generating a new sendmail.cf file.
I love this stuff. Let me know if you have troubles.
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
11-05-2004 01:46 AM
11-05-2004 01:46 AM
Re: sendmail masquerade outbound help
use the -r reply_to_address option with the mailx command,
cat some_file |mailx -s "Some subject" -r user2@domain2.com some_address.com
Hope this helps.
Regds
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-05-2004 02:05 AM
11-05-2004 02:05 AM
Re: sendmail masquerade outbound help
You can also try the userdb database to make this change permanent,
http://www1.itrc.hp.com/service/cki/docDisplay.do?docLocale=en_US&docId=200000068402500
The itrc doc id is KBRC00010421.
Hope this helps.
Regds
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-05-2004 03:49 AM
11-05-2004 03:49 AM
Re: sendmail masquerade outbound help
Ended up adding "CNdomain2.com" to the sendmail.cf just above "DMdomain1.com". This took care of it an allowed me to use From: domain2.com w/out it getting changed to domain1.com.
Thanks!
-denver