Messaging
cancel
Showing results for 
Search instead for 
Did you mean: 

How to setup mail with Exchange server?

J_170
Occasional Advisor

How to setup mail with Exchange server?

Hi,
I am try to send email from my HP9000 server and outside to my PC outlook mail. We have an Exchange Server. When trying to send mail through it. This is the error message that I got.
===============================================
HELO servername.
501 5.5.4 Invalid Address

554 myeamil@company.com ... Service unavailable
===============================================
Thanks for your help in advance,

J
14 REPLIES
Steven E. Protter
Exalted Contributor

Re: How to setup mail with Exchange server?

To merely access your mail on the HP-9000 server via outlook, you need to set up popmail.

Install this product and configure it, then you will be able to do so directly:

http://hpux.connect.org.uk/hppd/hpux/Networking/Mail/qpopper-4.0.5/

This product is also available on the Internet Express product from HP. http://software.hp.com

You can also relay mail to an exchange server. If you wish to do that, let us know and someone will tell you how to do that.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
J_170
Occasional Advisor

Re: How to setup mail with Exchange server?

Yes, I would like to know how to relay to my exchange server.

J
Steven E. Protter
Exalted Contributor

Re: How to setup mail with Exchange server?

vi /etc/mail/sendmail.cf

Change DS to

DShostname_of_exchange_server

example

DSexchange.your.net

or

DS
[192.168.0.10] # ip address of the exchange server.

The exchange server needs to be configured to allow relay from the IP address of the HP-9000 server.

save the sendmail.cf file

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

tail -f /var/adm/syslog/mail.log


Send the mail.

Any errors will be apparent and we'll need to see them to advance your question.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Geoff Wild
Honored Contributor

Re: How to setup mail with Exchange server?

You may also have to set masquerading - if your internal domain differs from the Exchange server:

In /etc/mail/sendmail.cf

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.
J_170
Occasional Advisor

Re: How to setup mail with Exchange server?

Hi, thank you for the help.
The problem is not the IP address. It knows how to do that. The error message is

=============================================
HELO servername.
501 5.5.4 Invalid Address

554 myeamil@company.com ... Service unavailable
=============================================

where "HELO servername." there is an extra "." after servername. Do not know how that even got there.

I think that is what is causing the problem.

J
Geoff Wild
Honored Contributor

Re: How to setup mail with Exchange server?

The HELO servername. sounds like it can't qualify your FQDN...

Make sure the FQDN is in /etc/hosts

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.
Sanjay_6
Honored Contributor

Re: How to setup mail with Exchange server?

Hi,

You can try to set the Dj macro in the sendmail.cf to set your domain.

Present entry in /etc/mail/sendmail.cf

#Dj$w.Foo.COM

change this to

Dj$w.your_domain.com

Restart sendmail

/etc/init.d/sendmail stop
/etc/init.d/sendmail start

And give it a try.

Hope this helps.

Regds
J_170
Occasional Advisor

Re: How to setup mail with Exchange server?

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
============================================

Both sybase1 and company.com is defined in /etc/hosts file.

Steven E. Protter
Exalted Contributor

Re: How to setup mail with Exchange server?

Still seems like either the Exhange Server is not allowing relay or network connectivity is not working right.

Can you ping via the hostname in your sendmail configuration file?

This setup can't work without a configuration change on the exchagne server. Default configuration of that server will not permit relay of mail.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
J_170
Occasional Advisor

Re: How to setup mail with Exchange server?

The exchange server is accepting realy from the HP server. For some reason, I think HP server is keep adding the servername with an "." at the end to cause not to send anything.

J
jerry1
Super Advisor

Re: How to setup mail with Exchange server?

We just when to an exchange gateway and I
relay all my HP emails to it. The gateway
on the exchange server has to be turned on
in order for it to accept emails.
J_170
Occasional Advisor

Re: How to setup mail with Exchange server?

How can you test to see if any of your suggestion is working? Like FQDN, Masquerade, etc. Without trying to send email.

J
J_170
Occasional Advisor

Re: How to setup mail with Exchange server?

Thank you for all that replied. I have found the problem.

J
J_170
Occasional Advisor

Re: How to setup mail with Exchange server?

Closed.