- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Adding default domain to 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
04-27-2004 11:59 AM
04-27-2004 11:59 AM
We are using sendmail on HP-UX 11 and 11i systems to forward mail to a central server running MS Exchange. To complicate things, the Exchange servers can't assume the local domain because they handle several different domains. I could use a user DB, but it seems to me it would be difficult to maintain across all the servers.
Is this something I should try to do with sendmail? Is it easy to get sendmail to apply a defalt domain to the recepient's address? The sendmail.cf file has been changed to set DR and DS to the MX record for the Exchange servers, and we use DM to masquerade our internal domain name to a consistent external one. The DM macro affects the From address and header. Is there something equivalent for the To and recepient? Would I have to change sendmail's rewrite rules?
--
Earl Locken
elocken@petro-canada.ca
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-27-2004 02:54 PM
04-27-2004 02:54 PM
Re: Adding default domain to outgoing mail
in sendmail.cf
Djlocaldomain.com
/sbin/init.d/sendmail stop
/sbin/init.d/sendmail start
You can also do it with the system hostname.
in /etc/rc.config.d/netconf
change hostname=servername
to
hostname.localdomain.com
This will not work if any portion of the name exceeds 8 characters.
You can also do it with sendmail m4 macro programming in the /usr/newconfig/etc/mail/cf/cf/generic-hpux10.cf
file. Thats where you should do your macro programming.
masquerade will work.
Here is a script that does the m4 macro programming and gen_cf work as well.
http://www.hpux.ws/buildmail.hpux.ws
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
04-27-2004 03:02 PM
04-27-2004 03:02 PM
Re: Adding default domain to outgoing mail
If I understand you correctly...you want mail sent to "unix" id to go to user@yourdomian.com.
You can do that with perhaps .forward files or with the alias file:
joe: joe@yourdomain.com
Rgds...Geoff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-27-2004 03:10 PM
04-27-2004 03:10 PM
Re: Adding default domain to outgoing mail
Have to test this....
Rgds...Geoff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-28-2004 01:47 AM
04-28-2004 01:47 AM
SolutionI did find this on page 398 of Sendmail book:
F=C
Add @domain to recipient
The F=C flag causes sendmail to append an @domain extension to any recipient which lacks one...
However, I can't seem to figure out how to implement - tried modifying the Mlocal as well as Ruleset 96.....
There is a warning - stating that F=C should be avoided for local delivery...
Rgds...Geoff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-28-2004 09:38 AM
04-28-2004 09:38 AM