Operating System - HP-UX
1833760 Members
2518 Online
110063 Solutions
New Discussion

Sendmail and Relay problem

 
SOLVED
Go to solution
Daniel Ubeda
Frequent Advisor

Sendmail and Relay problem

Hi,

I have in one HP9000 the sendmail configured to relay all internal mails to one server with exchange (DS[192.168.110.xxx]).
If I use this HP9000 to incoming mails from other servers the response is: "we do not relay"
I want to send mails from others servers and configure this sendmail to relay all mails to the exchange.
What is the line in the sendmail.cf to change ??

thanks
Daniel
4 REPLIES 4
Geoff Wild
Honored Contributor

Re: Sendmail and Relay problem

You have to configure your HP9000 to allow relaying from your other boxes.

Build an access.db file from your /etc/mail/access txt file (using makemap)

In your /etc/mail/access file, add all your servers like this:

server1 relay
server2 relay

etc....

Then run makemap and restart sendmail.

Also, on those other servers, set the DS macro to point to your HP9000...

Rgds...Geoff
Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.
Steven E. Protter
Exalted Contributor

Re: Sendmail and Relay problem

Exchange as I understand it does not have an access file for defining what servers can relay and which can't.

I was told by my exchange admin that I can't relay mail off Exchange without compromising security.

I had to change my DS directive to relay off of our firewall, which has an smtp gateway and can define who can relay and who can not.

If inbound mail is directed at the HP-9000 server, it should be accepted, regardless of the access settings, because its not being asked to relay its being asked to acccept.

A good test diagnostic from a HP-UX server is:

sendmail -v -d8.99 -d38.99 someone@yourdomain.net
type some text

.


You'll get a good diagnostic trace.

To test the relay issue and be sure, perhaps you have a HP workstation or a Linux box.

Try this command there.


sendmail -v -d8 -d38 someone@yourdomain.net
type some text

.



If you explicitly authorize it, I will send a test email to you from a HP-9000 server and email or post the results.

If you wish this help, please post back and we can do email.

sprotter@investmenttool.com
I need a post because I don't check that account during the day.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Geoff Wild
Honored Contributor
Solution

Re: Sendmail and Relay problem

Steven - I think your Exchange admin is on crack :)

They need to setup the smtp transport on Exchange - then you will be able to relay to it. That what we did at our site - we have all our Unix servers relaying to Exchange.

What I gather from Daniel's question, is he has a bunch of Unix servers, 1 of which he wants to be the master relay for all of them, and that one in turn forwards all mail to their Exchange server.

Rgds...Geoff
Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.
Daniel Ubeda
Frequent Advisor

Re: Sendmail and Relay problem

Thanks, Geoff is in the correct way. I want to resume in one server the mail (relay) service to send to exchange.

I configure this like you say, and work OK.

Thank you very much.

daniel
Daniel