Operating System - HP-UX
1845352 Members
3063 Online
110244 Solutions
New Discussion

send mail from hpux to exchange

 
Nabil_11
Frequent Advisor

send mail from hpux to exchange

Hi,
what the steps needed to send mail using mailx from unix to windows exchange user

Regards
9 REPLIES 9
lawrenzo_1
Super Advisor

Re: send mail from hpux to exchange

here are some notes I have made:

edit the sendmail.cf file in /etc/mail/

change the DS directive to

DS=[host or ip of NT exchange server]

wq!

then
/sbin/init.d/sendmail stop then start


HTH
hello
lawrenzo_1
Super Advisor

Re: send mail from hpux to exchange

the previous comments are probably incorrect for what you require:

a simple way to send mail using mailx is

cat |mailx -s "subject" nabil@ or nabil@domian.com
hello
lawrenzo_1
Super Advisor

Re: send mail from hpux to exchange

a more complex command you can use:

for var in file1 file2 file3
do
cp $var $var.txt
uuencode $var.txt $var.txt |mailx -m -s "$var" chris.lawrence@mbna.com
rm $var.txt
done
hello
Nabil_11
Frequent Advisor

Re: send mail from hpux to exchange

Hi,
I try to stop/start sendmail
#sendmail stop
stop... User unknown
same error with start

Regards
TommyT
Valued Contributor

Re: send mail from hpux to exchange

Type the path to sendmail

/sbin/init.d/sendmail stop then start

or

./sendmail stop then start
tompa
Gustavo Ferraro
Advisor

Re: send mail from hpux to exchange

nabil,
you also need to configure IMS Service in the MS Exchange server.
Nabil_11
Frequent Advisor

Re: send mail from hpux to exchange

Hi again,
this is my case
the exchaneg IP is 100.110.20.1
the domain is ccs.com.jo
I modify /etc/mail/sendmail.cf
DS=exmail ( which in /etc/host configured)
also
Dj$w.ccs.com.jo
then stop and start sendmail
I send miail local on same system it works fine
but when I use
cat /etc/host | mailx -s "Test" nabil@ccs.com.jo
I got this log in /var/adm/syslog

Apr 12 16:19:33 HPUXV2 sendmail[3123]: j3CDJXg03123: to=nabil@ccs.com.jo, delay=
00:00:00, mailer=relay, pri=173, dsn=4.4.3, stat=queued


Regards
Geoff Wild
Honored Contributor

Re: send mail from hpux to exchange

DS is smart relay - good idea to set it to the name of your exchange server.

DM - good idea to set it to your "global" email domain that exchange uses...IE - if your email address is:

nabil@yourdomain.com then set DMyourdomain.com

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.
Nabil_11
Frequent Advisor

Re: send mail from hpux to exchange

Hi,
sendmail from HPUX to exchange solved with the following steps
1- modify /etc/mail/sendmail.cf
DS
2- configure /etc/nsswitch.conf
according to your need
3- start and stop sendmail
/sbin/init.d/sendmail stop/start
4- # cat /etc/hosts | mailx -s "Test" x@xx.com
Regards
Nabil