Simpler Navigation for Servers and Operating Systems
Completed: a much simpler Servers and Operating Systems section of the Community. We combined many of the older boards, so you won't have to click through so many levels to get at the information you need. Check the consolidated boards here as many sub-forums are now single boards.
General
cancel
Showing results for 
Search instead for 
Did you mean: 

Configuring Sendmail on HP-UX 11.11 for using Exchange Server

SOLVED
Go to solution
Lothar Krueler
Regular Advisor

Configuring Sendmail on HP-UX 11.11 for using Exchange Server

Hi,
i just want to make sendmail using MS-Exchange Server for outgoing mails to LAN and WAN.
I don't want to receive incomming mails from Exchange. I have an other HP-UX Node working that way, but it's 11.00 and its sendmail.cf seems to be copied from an older version (10.20 ?). It doesen't work on the 11.11 node.

What changes do i have to do on 11.11 node, if I use a new copy of /usr/newconfig/etc/mail/sendmail.cf file ? Are there further changes necessary ?

Thanks in advance
Lothar
Wissen macht zaghaft, Dummheit kann alles!
4 REPLIES
Fabrice Meynard
Frequent Advisor
Solution

Re: Configuring Sendmail on HP-UX 11.11 for using Exchange Server

Hi,

if you don't want to receive email to this host, don't start sendmail process. I fit is already done : /sbin/init.d/sendmail stop
Copy /usr/newconfig/etc/mail/sendmail.cf to /etc/mail/sendmail.cf
- configure macro DS to DSexchange_relau_name
- configure macro Dj$w. to Dj$w.domain_name.
- put to /etc/hosts server_IP hostname hostname.domain_name. (don't forget the dot at the end)
- start end stop sendmail to take modifications in sendmail.cf active.
- configure exchage to accept relay this host.

Hope this helps.
Fabrice
Kellogg Unix Team
Trusted Contributor

Re: Configuring Sendmail on HP-UX 11.11 for using Exchange Server

Hi,

If your DNS has MX record defined for your Exchange server, just copy the sendmail.cf file from /usr/newconfig/etc/mail to /etc/mail and restart the sendmail daemon.

In order to check if MX record is defined or not, do the following -

nslookup
>server (IP address of your DNS server)
>set type=mx
>(your domain name)

If no MX record is defined, set DS parameter to your Exchange-Server in sendmail.cf and restart your sendmail on this server.

HTH
...Manjeet
work is fun ! (my manager is standing behind me!!)
Uday_S_Ankolekar
Honored Contributor

Re: Configuring Sendmail on HP-UX 11.11 for using Exchange Server


Modify sendmail.cf file from /etc/mail

vi /etc/mail/sendmail.cf
look for DS flag by /^DS
and write your exchnage server name infront of it
DSyour exchanger server

Save and quit sendmail.cf
/sbin/init.d/sendmail stop ; /sbin/init.d/sendmail start

look for /var/adm/syslog/mail.log for more info
Good Luck..
Lothar Krueler
Regular Advisor

Re: Configuring Sendmail on HP-UX 11.11 for using Exchange Server

Hi Fabrice, Manjeet and Uday,
thanks for your helpful assistence. It didn't work at once, but i got an mail with the following message:

Warning: message still undelivered after 4 hours
Will keep trying until message is 5 days old
451 [the email-adress]... [the domain]: Name server timeout

So i used SAM for looking up "Name Service Switch" for hosts (in Networking and Communications). On the working 11.0 node i found /etc/hosts as first source, in the 11.11 node there was DNS as first, NIS as second and /etc/hosts as third source configured. I changed to /etc/hosts as first and none as second source. I didn`t reboot the machine but restarted sendmail and after a while the mailq was empty and i got the mails via Outlook.
I'll try if its necassary to run sendmail-daemon for sending only.
Wissen macht zaghaft, Dummheit kann alles!