Operating System - HP-UX
1832852 Members
3066 Online
110047 Solutions
New Discussion

Re: System alerts as email..

 
mavrick
Regular Advisor

System alerts as email..

Hi ,
I want to configure the STM alerts as email.
how can i start configuring this.?

tks in advance.
6 REPLIES 6
Maxim Yakimenko
Super Advisor

Re: System alerts as email..

I created mail alias emsmail as
emsmail: root@localhost,Mycorpbox@ourdomain

and via monconfig I modified alerts that send mail to root to send mail to emsmail - thus I have it in my box and local copy on host.
mavrick
Regular Advisor

Re: System alerts as email..

Thanks..I used the monconfig and added the
email id . But i thnk my mail service not started .is it required to confiure sendmail service ...?

thanks in advance.
Patrick Wallek
Honored Contributor

Re: System alerts as email..

>>is it required to confiure sendmail service ...?

Ummm.....Yes. In order to send e-mail from your HP-UX machine there are things that need to be configured. Sendmail does not necessarily need to be running, but options in /etc/mail/sendmail.cf need to be configured.

You may just need to set up your smart-relay host in sendmail.cf (the DS macro line). The sendmail.cf file is documented very well. Have a read about DS and see if that helps.
Maxim Yakimenko
Super Advisor

Re: System alerts as email..

I just added dns-name for mailserver in sendmail.cf


In sendmail.cf find a line that looks like

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

Change it to
DSyour-mail-server.your-domain

Be sure "your-mail-server.your-domain" can be resolved to IP via /etc/hosts or DNS


you can test sending in this way:

sendmail -v your-address

then type word "test", press Enter, type dot, press Enter.

sendmail will show something like this:


your-address... Connecting to your-mail-server.your-domain. via relay...
220 your-mail-server.your-domain ESMTP Postfix
>>> EHLO your-host
250-your-mail-server.your-domain
250-PIPELINING
250 8BITMIME
>>> MAIL From: SIZE=5
250 Ok
>>> RCPT To:
250 Ok
>>> DATA
354 End data with .
>>> .
250 Ok: queued as XXXXXXXXXX
your-address... Sent (Ok: queued as XXXXXXXXXX)
Closing connection to your-mail-server.your-domain
>>> QUIT
221 Bye

Or it will show error, that can help you diagnose your config problems.
Maxim Yakimenko
Super Advisor

Re: System alerts as email..

And, as Patric said - turn off sendmail - it is subject to security breaches
mavrick
Regular Advisor

Re: System alerts as email..

Thanks for your suggestions ...i used
monconfig and sendmail.cf for this..

once again thanks