Operating System - HP-UX
1820484 Members
2307 Online
109624 Solutions
New Discussion юеВ

How to setup mail with Exchange server?

 
Dave Lamoureaux
Occasional Advisor

How to setup mail with Exchange server?

I'm having the same symptom - Can the author reply with how they solved the problem:

This is what it is in the mail log file. Hope this will give more insight.
============================================
Nov 4 12:33:46 sybase1 sendmail[18786]: MAA18784: to=abc123@company.com, ctladdr=erp (102/102), delay=00:00:00, xdelay=00:00:00, mailer=esmtp, relay=company.com. [10.0.1.10], stat=Service unavailable
Nov 4 12:33:46 sybase1 sendmail[18786]: MAA18784: MAA18786: DSN: Service unavailable
============================================
7 REPLIES 7
Victor BERRIDGE
Honored Contributor

Re: How to setup mail with Exchange server?

Hi Dave,

You will need to configure /etc/mail/sendmail.cf by updating at about line 710-750 the line you see DS
# "Smart" relay host (may be null)
DS
---> to DS


All the best
Victor
Rick Garland
Honored Contributor

Re: How to setup mail with Exchange server?

You want the Exchange server to handle the mail?

Point the HPUX sendmail to the Exchange server with the DS directive in the sendmail.cf file
DSyouexchangeserver.com

Can use a name (if resolution is correct) or IP.

All mail originating from the HPUX will go to the Exchange server.

Geoff Wild
Honored Contributor

Re: How to setup mail with Exchange server?

On top of DS, you might also need to set the DM macro to your company domain name.

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.
Mel Burslan
Honored Contributor

Re: How to setup mail with Exchange server?

and most important of all, talk to the exchange mail server admins to add the ip address of your server to the list of hosts from which they allow mail relaying. Most probably, your company like any other sensible one, is not running their internet bordering mail gateways in open relay mode. SOmeone needs to tell the server who is authorized for relaying and who is not.
________________________________
UNIX because I majored in cryptology...
Adisuria Wangsadinata_1
Honored Contributor

Re: How to setup mail with Exchange server?

Hi Dave,

You need to configure the sendmail as the relay host, check the document (dociID : KBRC00003561) about 'Sendmail: using sendmail as a relay host' at the url below :

http://www2.itrc.hp.com/service/cki/docDisplay.do?docLocale=en_US&docId=200000080080392

Hope this information can help you.

Cheers,
AW
now working, next not working ... that's unix
morganelan
Trusted Contributor

Re: How to setup mail with Exchange server?

Step by Step like follows:
(1).Check the /etc/mail/sendmail.cf file, and look for the sting DS. Then append the hostname of the firewall:

DS

(2). Sendmail needs to have a domain name defined. This is usually no problem
when using DNS, but will need to be added when using a host file. A hostname
can be defined as follows in the /etc/mail/sendmail.cf file.

Dj$w.

(3) the host file (the file is /etc/hosts) entry should be changed to match this.

(4) Testing:/usr/sbin/sendmail -v -dX some_email_add@some_domain.com

(5)Check the /var/adm/syslog/mail.log for error log


Kamal Mirdad
Gustavo Ferraro
Advisor

Re: How to setup mail with Exchange server?

Dave,
we use sendmail.cf whitout modifications.
- In the intenal DNS add an MX type register with youy Exchange Server with SMTP service.
- Allow relay for the HP-UX IP address in the SMTP configuration of exchange.

Gustavo.-