- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- sendmail want certain users to go to different hos...
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
12-14-2005 09:43 AM
12-14-2005 09:43 AM
Our default mail setup is for mail, from an HP-UX server, to be sent to the Smart Relay which is an exchange server.
However I for certain emails I want the mail to be sent to a 2nd unix host instead of the Exchange server.
On this 2nd host I have a mail alias called cku and have setup sendmail to accept mail in the sendmail.cw (local host, hostname).
I try
echo test | mailx cku@2ndUXhostname
and the mail still attempts to go to the Exchange server instead of the unix host.
What am I missing?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-14-2005 09:50 AM
12-14-2005 09:50 AM
Re: sendmail want certain users to go to different host
Check out the www.sendmail.org site. Lots of info available.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-14-2005 09:51 AM
12-14-2005 09:51 AM
Re: sendmail want certain users to go to different host
Cheers
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-14-2005 09:59 AM
12-14-2005 09:59 AM
Re: sendmail want certain users to go to different host
UserA is a local user on host B
cku is a mail alias on host B. No local account is defined.
echo test | mailx UserA@hostb.domain.com
-> this works
echo test | mailx cku@hostb.domain.com
-> DOES NOT work
This difference is that cku is not a local user on the receiving server.
So do I need to modify something on the receiving server? (don't think mailertable applies does it?)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-15-2005 11:56 PM
12-15-2005 11:56 PM
Re: sendmail want certain users to go to different host
hostb# echo test | mailx cku@hostb.domain.com
Did you just enter the alias into hostb.domain.com:/etc/mail/aliases and forgot to run /usr/sbin/newaliases ???
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-16-2005 01:24 AM
12-16-2005 01:24 AM
Re: sendmail want certain users to go to different host
I had run newaliases.
Cheers
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-16-2005 02:03 AM
12-16-2005 02:03 AM
SolutionThe way I understand it, you want all make except for cku@hostb.domain.com to go to the exchange server for relaying. cku@hostb.domain.com should be mailed directly to hostb... Is that correct?
If that's the case, R.Garland gave you the right answer:
For the first req, ensure your ^DS macro is set to the smart relay (which, it sounds like it already is).
For the second, add the FQDN of the hostb to the file /etc/mail/mailertable:
smtp:hostb.domain.com
Then, make the mailertable:
makemap dbm /etc/mail/mailertable < /etc/mail/mailertable
Restart sendmail and any mail directed to cku@hostb.domain.com should go directly there.
You can verify this by executing sendmail in rule testing mode:
sendmail -bt
> 3,0 cku@hostb.domain.com
Should tell you that it's going to hostb.domain.com.
> 3,0 dkoleary@olearycomputers.com
Should tell you that it' getting relayed through your smart host.
HTH;
Doug
------
Senior UNIX Admin
O'Leary Computers Inc
linkedin: http://www.linkedin.com/dkoleary
Resume: http://www.olearycomputers.com/resume.html
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-17-2008 04:18 AM
04-17-2008 04:18 AM