Operating System - HP-UX
1823064 Members
3158 Online
109645 Solutions
New Discussion юеВ

Re: sendmail and Exchange

 

sendmail and Exchange

Hi all,

I've got a Compaq Proliant NT server running Microsoft Exchange and my ERP runs on a HP9000 D330 server in HP-UX 11.00 - I'd like to be able to schedule a cron job to send a file from Unix (perhaps using sendmail?) to a recipient on my Exchange server.

The HP9000 is on my TCP/IP network, and therefore I can ping my Exchange server and my Internet proxy server from it.

For preference, I'm looking for a solution that does not rely in any way on Internet access - a direct link between Exhange and Unix would be perfect.

If anyone knows of a configuration or a product that wopuld allow me to do this, let me know and make me day.

Thanks,

Kev
Is this why they pay us so little?
5 REPLIES 5
Alan Riggs
Honored Contributor

Re: sendmail and Exchange

If you can ping the exchange server, then you should simply be able to update the DS (smart relay host) value in your /etc/mail/sendmail.cf file. Example: DSflgwex1.mycompany.com

Recycle sendmail afterwards and you should be good to go.

Re: sendmail and Exchange


Thanks Alan.

I'm nearer to the solution now. Just need a bit more help.

I've tested sendmail on my HP9000 and it works - that is, I can send mail to unix users. Fine.

I've found the DS line in the sendmail.cf file. Good.

I worked out how to stop and restart sendmail. Great.

Now apparently I need to add the "full qualified domain name address" of the Exchange server after the DS in the configuration file. Not so great.

Forgive me for being a luddite, but what is this?

My server name is dabsvr02 and my NT domain is nutdab. My SMTP addresses (on the Exchange server) are of the format jbloggs@nutricia-ireland.ie. External email is not handled by my Exchange server - rather I use a corporate server somewhere in the Netherlands and we connect using X400.

Which of these, if any, is the server name that needs to be added to the cf file?

Cheers,

Kev
Is this why they pay us so little?

Re: sendmail and Exchange


Got there in the end - I just tried different combinations of server names until one of them worked.

Now I can send mail to Exchange users.

Isn't it typical of human nature that when we get exactly what we wanted, we suddenly realize that we want more?

What I'd like to do now is be able to send mail from my HP9000 to external email addresses (I'm thinking of sending system alerts to my WAP mobile - might eventually find a use for WAP!).

Bearing in mind my Exchange server configuration (as above) does anyone know how I'd go about this?

If I can get that sorted, I can move onto setting up triggers in my Oracle database that send mails in unix and I need never get out of bed again.

So come on then, contribute to the "Help Kev get far too much sleep than is right or healthy for a man his age" appeal.

Cheers,

Kev
Is this why they pay us so little?
Sanjay_6
Honored Contributor

Re: sendmail and Exchange

Hi Kevin,

If your exchange server can send internet mails then you should be able to send internet emails from hp server to internet since you are relaying all mails to exchange server which in turn will relay them to another server. Are you able to send internet email from exchange server. If so then try sending one from your hp server.

Hope this helps.

Regds
Alan Riggs
Honored Contributor

Re: sendmail and Exchange

Sanjay is correct (big surprise, eh?). If your exchange server can reach internet mail accounts, and your Unix server can reach teh exchange server, then your unix server can reach internet mail acocunts. One caveat might be if you are using a firewall protection scheme, but I'm afraid that goes beyond my personal experience. I deal with exchange as infrequently as I can get away with.

I really wanted to address the "fully qualified domain name" question which you already have worked around. If you are not using DNS, then sendmail can sometimes get confused in resolving your hostname. You can set the Dj variable (also in sendmail.cf) to "spoof" sendmail into recognizing any extension you choose as your "fully qualified" domain.