cancel
Showing results for 
Search instead for 
Did you mean: 

sendmail

ln_unix
Frequent Advisor

sendmail

Hello All,

I need to send an output of top command from my hp-ux box to a mail id i.e. abc@abc.com

Could you please suggest me the configuration steps of this?

Thanks for the support always given by you and waiting for the response.

Thanks & Regards,
LN
3 REPLIES
rariasn
Honored Contributor

Re: sendmail

Hi,

$ top -n 40 -f /tmp/top.txt

$ cat /tmp/top.txt |mailx -m -s "TOP" abc@abc.com

Rgs,
ln_unix
Frequent Advisor

Re: sendmail

Hi rariasn,

Greatttttt command thanks a lot ,

but if i need to configure sendmail on my hp-ux box,then what are the steps and what services need to be started and checked?

Thanks and Regards,
LN
Steven E. Protter
Exalted Contributor

Re: sendmail

Shalom,

The standard way of getting this done is to use your corporate sendmail relay server.

vi /etc/mail/sendmail.cf (It may be in other locations.)

Search for DS

DSmailrelay

replace mailrelay with the hostname of your internal mail relay server, or better yet its IP address to avoid DNS delays.

The relay server may require explicit configuration to relay the mail from this server.

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

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