Simpler Navigation for Servers and Operating Systems - Please Update Your Bookmarks
Completed: a much simpler Servers and Operating Systems section of the Community. We combined many of the older boards, so you won't have to click through so many levels to get at the information you need. Check the consolidated boards here as many sub-forums are now single boards.
If you have bookmarked forums or discussion boards in Servers and Operating Systems, we suggest you check and update them as needed.
Showing results for 
Search instead for 
Did you mean: 

mapping ip to a domain for relaying purpose

Andy Waldoz
Occasional Visitor

mapping ip to a domain for relaying purpose


Our HP UX sendmail servers are the last mail-relays in our environment before the mail reach the internet.

In most cases we accept mail from internal servers but now we need to relay mail for an external company that will host there servers in our environment.

My question : can sendmail only relay mails from that server for there domain, so we can tighter the security?

I thinking towards an access file maybe, don't know if that is possible?? RELAY


Steven E. Protter
Exalted Contributor

Re: mapping ip to a domain for relaying purpose


The answer is yes, this is possible.

You will need to set up (hp equivalent varies depends on version of HP-UX which you did not share).

This would be done in the access configuration OK

Then compile m4 and restart sendmail.

I have a base script that does some of the work for you.

For more on the intricacies of sendmail, see

You also probably want to define what servers are allowed to relay through this server and what not.

Also in the access file RELAY
192.168.2 REJECT 554 relay denied.

Steven E Protter
Owner of ISN Corporation
Andy Waldoz
Occasional Visitor

Re: mapping ip to a domain for relaying purpose


We allready have a running sendmail config on the server together with an access file and some virtual domains.

The thing I like to see is that the sendmail server only relays mails for example from only if senders domain is

other domain he will not relay for this IP.

for the moment I don't know if that's possible.