Operating System - HP-UX
1833053 Members
2534 Online
110049 Solutions
New Discussion

SAP -> sendmail -> Exchange

 
SOLVED
Go to solution
Khalid A. Al-Tayaran
Valued Contributor

SAP -> sendmail -> Exchange


Hi, I hope somebody can help us with the following situation: we to configure Unix sendmail 8.9 on HP-UX 11.0 so that it can route email messages from the sap database to the windows exchange server.
I changed #Dj$w.Foo.COM in sendmail.cf to Dj$w.ourCompany.com. Also I've added the exchange host name and IP in /etc/hosts.

I've read in "Installing and Administering Internet Services" chapter 4. from HP.com that I should decide whether to install sendmail as client, server or stand alone... Which config. should I use and are the above configs. enough???
Appreciate any help.....
8 REPLIES 8
Michael Elleby III_1
Trusted Contributor

Re: SAP -> sendmail -> Exchange

Khalid-

At this point, you are 'almost' done.

What you need to do now is to set the DS entry in your /etc/mail/sendmail.cf file to the name of the 'Smart relay host' that your Exchange Admin can give you for example:

DSrelayhost.company.com

After you make this entry stop and restart sendmail.

Test that the relay works by creating a test file and issuing a sendmail for example:

sendmail -v you@company.com < /tmp/mailtest

If you receive this message, then you know it works. Then comes the task of how SAP will issue a mail command to send mail.

Hope this helps.

Mike-
Knowledge Is Power
Khalid A. Al-Tayaran
Valued Contributor

Re: SAP -> sendmail -> Exchange


Thanks Michael,

I did what u mentioned, but I got the following errors:

me@company.com... Name server timeout

me@company.com... Transient parse error -- message queued for future delivery

me@company.com... queued
Keith Johnson
Valued Contributor

Re: SAP -> sendmail -> Exchange

Khalid,

A couple of things to check.

If you are not using DNS for name resolution 1. Check for /etc/resolv.conf and mv it to another file name.

2. Ensure your /etc/nsswitch.conf looks like:
hosts: files [NOTFOUND=continue]

That should get it. As for how to run sendmail. If there is no requirement for the server to receive mail, you do not have to run the Sendmail daemon. However, you'll want to add an entry like:
25 * * * * /usr/sbin/sendmail -q >/dev/null 2>&1 to the cron.

HTH

KJ

No matter where you go...there you are.
Khalid A. Al-Tayaran
Valued Contributor

Re: SAP -> sendmail -> Exchange



Thanks Keith,

I think that the problem was in /etc/nsswitch.conf. I managed to send from unix to exchange but know I have the folloswing two situations:

1- sendmail does not send to the Internet.

2- users cannot reply to unix mail ??

Please help.
U.SivaKumar_2
Honored Contributor

Re: SAP -> sendmail -> Exchange

Hi,
IF you are using smart host config in sendmail you will have to some POP3 client in hp-ux to collect the mails from the central server.

If you have any mail server connected to internet. Use that server as smart relay for sendmail. Allow relaying in that mail server for this sendmail server's ip address. Now you will be able to mail to internet.

regards,
U.SivaKumar
Innovations are made when conventions are broken
Khalid A. Al-Tayaran
Valued Contributor

Re: SAP -> sendmail -> Exchange



Hi, thanks guys....

Sorry, sendmail did send to the Internet without any modifications. Once the Exchange server got the message it forwarded it the the Internet. I'll post soon all the settings so this should benefit anybody who needs help in this area...
U.SivaKumar_2
Honored Contributor
Solution

Re: SAP -> sendmail -> Exchange

That's the spirit
Innovations are made when conventions are broken
Khalid A. Al-Tayaran
Valued Contributor

Re: SAP -> sendmail -> Exchange

Hi to all,

Sorry for replying late.

Here is what I did to configure sendmail in Unix to send mail to an exchange server.

1) In the /etc/mail/sendmail.cf file: I added in the Dj macro our doman name

2) Also in the same file, I added in the DS macro the IP address of the relay server (since we are not using DNS on Unix)

3) In the /etc/hosts I added
IP_address host_name

4) Restarted sendmail:
/sbin/rc1.d/K460sendmail stop
/sbin/rc1.d/S540sendmail start

BUT THAT DID NOT WORK YET!

Next, I did what Keith Johnson mentioned in this thread. To create a file "/etc/nsswitch.conf" with the line:
hosts: files [NOTFOUND=continue]

and sendmail surprisingly worked. !!

I didn't understand this yet. But that's the end of story.

Thanks to all again........