- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Sendmail-one server, 5 domains?
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
тАО01-13-2002 08:55 PM
тАО01-13-2002 08:55 PM
Is there any way to get that level of control using sendmail? Ideally, I would like to be able to change the domain name of the sender based on the login of the user (so that if the user logged in is from SchoolA, the message would come from User@SchoolA.edu). Is there any way to configure sendmail to do this? If not, is there anywhere in the mailing process where I can "hook" with a UNIX script to do this?
If I include the line "From: User@SchoolA.edu" at the top of a message, that address appears as the originator. However, I don't have control over the message generation from the level where the database software generates it, so I can't insert this line. If sendmail won't support multiple source domains, is there a way I can "intercept" outgoing messages and modify them by setting/changing the "From" line as I mention above? Thanks in advance for any help.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-13-2002 09:00 PM
тАО01-13-2002 09:00 PM
Re: Sendmail-one server, 5 domains?
Try this link,
http://us-support3.external.hp.com/cki/bin/doc.pl/sid=3b798f2006ce1d3d42/screen=ckiDisplayDocument?docId=200000052603519
Hope this helps.
Regds
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-14-2002 05:28 AM
тАО01-14-2002 05:28 AM
SolutionIn addition (the following assumes sendmail 8.8 or >):
The genericstable feature handles mapping of the sender's address. The format is something like
usera newuser@a.com
userb myuers@b.com
The genericstable should be put in /etc/mail/genericstable. It's a dbm style file. Make it with
makemap dbm /etc/mail/genericstable < /etc/mail/genericstable
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-14-2002 07:48 AM
тАО01-14-2002 07:48 AM
Re: Sendmail-one server, 5 domains?
1. I created a text file /etc/mail/genericstable:
unix_login someaddress@somedomain.com
2. I ran makemap dbm /etc/mail/genericstable < /etc/mail/genericstable
3. In /etc/mail/sendmail.cf, I removed the comment so that the following line was active:
Kgenerics dbm /etc/mail/genericstable
4. I stopped and restarted sendmail.
I've now seen several references online that say I need to re-make sendmail to support genericstable, but since it was just commented out in sendmail.cf (my step 3 above) I'm not sure if I need to do that.
Also, when I start sendmail, here is what is output:
/etc/mail/aliases: 6 aliases, longest 9 bytes, 76 bytes total
sendmail
Should I see a reference to /etc/mail/genericstable as I do for /etc/mail/aliases? If so, any idea why I'm not seeing it? Thanks again for any help.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-14-2002 07:52 AM
тАО01-14-2002 07:52 AM
Re: Sendmail-one server, 5 domains?
#Kgenerics dbm /etc/mail/genericstable
# handle generics database
[...]
#R< $+ > $+ < $* > @ $: < $(generics $1 $: $) > $2 < $3 >
#R< > $+ < @ $+ > $: < $(generics $1 $: $) > $1 < @ $2 >
Stop sendmail. Start sendmail.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-14-2002 09:01 PM
тАО01-14-2002 09:01 PM