Operating System - HP-UX
1832542 Members
5712 Online
110043 Solutions
New Discussion

mailx using exchange server

 
faiza
Occasional Contributor

mailx using exchange server

Hi,

I am receiving following error from HP Unix system.
"The following addresses had transient non-fatal errors"
followed by a series of Name server timeout error. Can somebody tell me what is going wrong?

My script is using

mailx -s subject myname@abc.com

where myname@abc.com is my official email address setup on exchenge server.

I just want to confirm that above mailx command will be using exchange server ?

Also how can I change new exchange server to be used on HP Unix?

Pls Help.

Faiza

3 REPLIES 3
Michael Tully
Honored Contributor

Re: mailx using exchange server

First, check to see what you have the in the sendmail config file (/etc/mail/sendmail.cf) at this location.

# "Smart" relay host (may be null)
DSmyserver

DS followed by the name of the mail server. This is to be the name of your mail server. As long as DNS can see the server, this should be okay.

Make sure that you stop and restart sendmail on completion.

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

Anyone for a Mutiny ?
Rajeev  Shukla
Honored Contributor

Re: mailx using exchange server

Hi,

You'll have to use Smart Relay i.e set the DS setting to point to your's exchange server and then all the mails sent from this server will go to your exchange server.

Cheers
Rajeev
Steven E. Protter
Exalted Contributor

Re: mailx using exchange server

Answer to your question:

Yes.

Caveats:

The Exchange Server must accept relays. Thats a Microsoft question, though it can be set up with the GUI admin program that comes with Exchange. You should be able to relay by hostname or IP address.

You will need smart relay as noted above.

/etc/mail/sendmail.cf

DS
[IP of exchange server]

or

DShostname

save the file

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

You want to make sure sendmail is patches with all security updates, mailx as well. Its a good idea to have all relavent security patches on the Exchnge side.

Diagnostic:

sendmail -v -d8.99 -d38.99 myname@abc.com

type some text

.


This will let you test your setup even without mailx

mailq after running your script.

sendmail -q tries to push the queue if its stopped for some reason.

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