- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Can I make "sendmail" use another name != 'hostnam...
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
11-24-2004 12:40 PM
11-24-2004 12:40 PM
the same system sends mail, it goes out as if it was from a system not in DNS , and reverse lookup from relays fails. When that fails, the message is refused, and mail is blocked.
How can I get "sendmail" to send messages using another source address/name which is in DNS but is *NOT* the "hostname" ? I created a "Dj" record in "sendmail.cf" and set a FQDN for the outgoing interface in /etc/hosts . But the messages in local logs and the returned mail still show "sendmail" used the
"hostname" data.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-24-2004 01:17 PM
11-24-2004 01:17 PM
Solution1) hostname slight of hand
servera becomes servera.your.net in /etc/rc.config.d/netconf
That will have all outbound mail be fully qualified unless relayed.
Problem is hpux does not support more than 8 characters that way. server1.investmenttool.com won't work.
2) Use DNS slight of hand to do the job. Server's nsswitch.conf file will have to be set to dns first. /etc/resolv.conf must point to valid dns servers.
Take out the Dj directive and the hostname will be the sender. username@yourhostname.com
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-24-2004 01:31 PM
11-24-2004 01:31 PM
Re: Can I make "sendmail" use another name != 'hostname` ?
Configure a mailx exchanger/Smart relay host so that it will take care of hand-shaking with the remote hosts. Specify it in your sendmail.cf file (DS Macro).
-Sri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-24-2004 01:56 PM
11-24-2004 01:56 PM
Re: Can I make "sendmail" use another name != 'hostname` ?
IF#1 : forward facing, default route
IF#2 : backward facing to application
IF#3 : Management, including e-mail
"hostname" = IP address of IF#1, not in DNS
"hostname-m" = IP addr of IF#3 ; is in DNS
DS record in sendmail.cf is set; relay gets message from "hostname" of IF#1 , but that is not in DNS . Even though mail passed over IF#3 and could have used a name in DNS, it still used the name for IF#1 .
Mail relay rejects message since the noted source (in headers) is a name not in DNS .
I can't ask relay to turn off reverse lookup.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-24-2004 02:05 PM
11-24-2004 02:05 PM
Re: Can I make "sendmail" use another name != 'hostname` ?
Based on your last post I'd recommend you set up a local dns server for each interface.
You need to be very, very careful that nobody uses that server except the server.
Here is my idea:
IF#1 : forward facing, default route
IF#2 : backward facing to application
IF#3 : Management, including e-mail
Make this server a relay server. You'll still need DNS entries to support the hostnames. You'll need to set up public dns entries in your forward facing DNS server to allow servers (like mine) that reject without reverse lookup.
Designate one of the interfaces as the primary mail exchanger and have that one relay mail for the other two interfaces.
This is a complex solution, but I can't think of anything else now that relaying won't work.
Lets say IF#3 is the primary mail interface. It relays mail for the other two. The trick here is to make sure all mail goes through interface 3 and it can resolve public names.
It might be easier to take an old hp-ux server that you were planning to take out of service and do this:
1) One NIC internal. One NIC external, with a DNS entry that is fully qualified and supported on the public internet.
2)All needed hp-ux servers relay their mail through this special mail server.
This last idea seems to take the complexity out of my earlier ideas. All you need is hardware. Doesn't take much server do to this, an entry level box can do the job.
Fascinating situation, a real brain stretcher.
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-24-2004 02:18 PM
11-24-2004 02:18 PM
Re: Can I make "sendmail" use another name != 'hostname` ?
Did you try masquerading with 'hostname-m' (DM macro) in sendmail.cf?.
-Sri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-24-2004 02:27 PM
11-24-2004 02:27 PM
Re: Can I make "sendmail" use another name != 'hostname` ?
-Sri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-24-2004 03:14 PM
11-24-2004 03:14 PM
Re: Can I make "sendmail" use another name != 'hostname` ?
masquerading might actually work here.
Here is a script to let you utilize the macro database with hp-ux
http://www.hpux.ws/buildmail.hpux.text
May need work on 11i v1.6 and v2
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-29-2004 10:47 AM
11-29-2004 10:47 AM
Re: Can I make "sendmail" use another name != 'hostname` ?
I'm still trying to get our Red Hat RHEL 3.0 systems with similar setup to work,
an none of the options any have suggested
have worked. When I find a solution, I
will post it.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-07-2005 11:34 AM
01-07-2005 11:34 AM
Re: Can I make "sendmail" use another name != 'hostname` ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-07-2005 11:35 AM
01-07-2005 11:35 AM