Operating System - HP-UX
1826082 Members
3158 Online
109690 Solutions
New Discussion

Email from HP-uh to MS Exchange server

 
Marty Metras
Super Advisor

Email from HP-uh to MS Exchange server

We are running HP-UX 10.20 9000/K220 text based Unix.
I would like to set email on the HP box to send Messages to out Microsoft Exchange server.
Whare do I start?
Email works on UNIX. I do not kinow where to start to get it to send it off to the MS Server.
Is there any Doucments out there that can help me plan/setup this to happen?
Marty
The only thing that always remain the same are the changes.
5 REPLIES 5
Rick Garland
Honored Contributor

Re: Email from HP-uh to MS Exchange server

Start with defining the 'Smart Host' in the sendmail.cf file. This definition will be the name of the exchange server. Don't forget to bounce the sendmail daemon when done so the config is read again.
Marty Metras
Super Advisor

Re: Email from HP-uh to MS Exchange server

Thanks Rick,
Well I looked at "Smart Host" in sendmail.cf.
I do not understand this.
I have exchange server IP and domain name just not sure where to plug it in.
When I add the host name or not here:
# Change the following line:
# #Dj$w.Foo.COM
# to
# Dj$w.hp.com
# 03/02/01 MEM
Dj$w.knaack.crystal.knaack.com
... I get this error
"Mar 2 10:39:22 knaack2 sendmail[18462]: problem creating SMTP socket"
when I use the command "sendmail -bd"
knaack2 is the HP box and knaack is the exchange server.
I think I need step by step instructions.
I have never looked at this before.
Marty
The only thing that always remain the same are the changes.
Volker Borowski
Honored Contributor

Re: Email from HP-uh to MS Exchange server

Hi Marty,

to keep it simple:

If you only want to send a mail to get a backup log or so, you need:
- unix-alias in /etc/hosts with domainname
- NOT SET "Dj" in sendmail.cf !!!
- Internet-Mail-Service running on exchange
- Restart sendmail
- Try:
mail user@exchange-ip-address
Subject: Testmail
Hello


And wait for mail.

Setup of Mail relaying to the Internet from your UNIX-Box is more complicated.
Hope this helps
Volker
Rick Garland
Honored Contributor

Re: Email from HP-uh to MS Exchange server

In the sendmail.cf file is a macro called DS - this would be the Smart Host definition. If your exchange server resolves you can put the name in,
example, 'DS. If the name does not resolve you can use the IP.

The msg "problem creating SMTP socket" can come about from starting another sendmail process while it is running. You can make the changes in the sendmail.cf file, stop the sendmail process with /sbin/rc1.d/K460sendmail stop and restart with /sbin/rc2.d/S540sendmail start.

I believe it is the DS macro (Smart Relay Host) that you want to make an addition for. This will send the mail to the exchange server for processing.
Marty Metras
Super Advisor

Re: Email from HP-uh to MS Exchange server

Thanks Volker,
I understand now why it wasn't working.
We do not have Internet-Mail-Service running on the Exchange server yet.
We have the ISP hosting the email for now and use Outlook to go out and get it.
I talked to Our Exchange Administrator and she says it is in the works.
I'll put the on hold for a whaile and go back to it late.
Thanks again.
Marty
The only thing that always remain the same are the changes.