General
cancel
Showing results for 
Search instead for 
Did you mean: 

Configuring sendmail on hpux to sendmail to ms-exchange email addresses

Oliver McNamee_2
Occasional Contributor

Configuring sendmail on hpux to sendmail to ms-exchange email addresses

Good afternoon,

I'm beginning to pull my hair out with this one!! We've recently switched from a POP3 email setup to an Exchange 2000 server SMTP solution. We had sendmail on hpux configured and working to send email to a POP3 Mdaemon mail server.

We changed all the settings this morning in relation /etc/mail/sendmail.cf and /etc/hosts to reflect the new exchange server details.

I have restarted sendmail on several occassions.

I have had a read at some Articles on the forums and one suggested replacing the /etc/nsswitch.conf file with the /etc/nsswitch.files file. Tried this, restarted sendmail. No Joy.

I have just changed the relay settings on the Exchange 2000 server to allow the unix server to relay and still no joy. However, I don't believe that this actually needed to be done.

On the Unix server, when I try to telnet onto port 25 on the Exchange server, the connection is closed automatically be the remote host. The POP3 server allows me to telnet on port 25 so that I can send mail through it.

Any ideas/suggestions/comments would be greatly appreciated.

Oliver
8 REPLIES
Geoff Wild
Honored Contributor

Re: Configuring sendmail on hpux to sendmail to ms-exchange email addresses

If you can't telnet to port 25 of the exchange server - then that's the issue.

Is smtp enabled on the Exchange server? Can you telnet to port 25 from a Windows workstation?

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.
Jose Mosquera
Honored Contributor

Re: Configuring sendmail on hpux to sendmail to ms-exchange email addresses

Hi,

To set your HP-UX like as a "gateway" mail server you need configuring the "Smart relay host" feature defined in /etc/mail/sendmail.cf file. For this you must be set DS variable:
DS

Where must be reachable from HP-UX server. You can define this alias into /etc/file, and test it by ping command.

Then restart the sendmail service:
/sbin/init.d/sendmail stop
/sbin/init.d/sendmail start

To try send an email from your HP-UX server to any valid domain address, i.e:
#echo "Hi, this is a test"|/usr/sbin/sendmail -v @

Where "-v" option is the verbose option and allow you make a sending debug.

Any undeliveriable email will stored into dead letter file.

Rgds.
Oliver McNamee_2
Occasional Contributor

Re: Configuring sendmail on hpux to sendmail to ms-exchange email addresses

Geoff,

Thanks for the reply.

Yes SMTP is installed on the Exchange box and is running.

No, I am not able to telnet onto the exchange box on port 25 from my own workstation.

I am able to telnet on to port 25 on the actual server itself (logged into it using remote desktop).

It's obviously got to do with the Exchange server configuration.

I'll keep at it to see if I can find anything more.

Oliver
Gary L. Paveza, Jr.
Trusted Contributor

Re: Configuring sendmail on hpux to sendmail to ms-exchange email addresses

2 things I can think of:

1). The exchange server has some type of blocking which is preventing you from connecting to port 25. Similiar to IPFilter on HPUX.

2). Your network group is filtering smtp traffic - port 25. It's possible they are only allowing port 25 from certain servers.
Geoff Wild
Honored Contributor

Re: Configuring sendmail on hpux to sendmail to ms-exchange email addresses

netstat -a
on the exchange server - is it listening on port 25?

Check port the Internet Mail Connector (IMC) uses in the Services file found in Winnt\System32\Drivers\etc.
If SMTP is assigned to 25/tcp then this file should be correct...

Are you running a firewall on the 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.
Steven E. Protter
Exalted Contributor

Re: Configuring sendmail on hpux to sendmail to ms-exchange email addresses

sendmail seems to work better for me with nsswtitch.conf set to resolve hostname by DNS and with good DNS servers in /etc/resolv.conf

bad DNS servers blows the whole game there.

Have you set the DS directive in sendmail.cf

DS
[ip address or hostname of exchange server]

I always use the ip address so if I've got DNS problems, sendmail won't care.

save sendmail.cf

/sbin/init.d/sendmail stop
/sbin/init.d/sendmail start

Diagnostic:

sendmail -v -d 8.99 -d 38.99 someone@your.net
type some text

.




You will get good output. If you can spot the issue yourself, you can post it back to the thread for quick resolution.


mailq

Displays the outbound mail queue of the HP-UX box. If its piling up, its relaying, networking, or DNS resolution if you are not using DS directives.

sendmail -v -q

Shows vith verbose output sendmails attempts to clear the mail queue. Useful for debugging.

Test DNS setup.

nslookup hostname

use hostname of exchange server. You should get an answer and get it fast.

Also, dig will perform the same function.

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
Oliver McNamee_2
Occasional Contributor

Re: Configuring sendmail on hpux to sendmail to ms-exchange email addresses

Thanks for replies.

We managed to get this sorted by enabling the unix server to send mail to our SMTP Gateway server on our DMZ, this in turn sends it to Exchange and exchange handles the mail fine.

Jose Mosquera
Honored Contributor

Re: Configuring sendmail on hpux to sendmail to ms-exchange email addresses

Oliver,

Please don't forget to assign us points according to your grade of satisfaction!

Rgds.