Operating System - HP-UX
1753759 Members
4717 Online
108799 Solutions
New Discussion

Change destination address for event notification mails

 
SOLVED
Go to solution
Carles Viaplana
Valued Contributor

Change destination address for event notification mails

Hello,

I need to change mail address from root to an address monitored 7x24.

Is it possible to sent event notification mails to other address instead root?

Thanks in advance,

Carles

 

 

P.S. This thread has been moved from HP-UX > System Administration to HP-UX > messaging - HP Forum Moderator

6 REPLIES 6
Carles Viaplana
Valued Contributor

Re: Change destination address for event notification mails

Hello again,

I forgot to tell I need to perform this action in some differents systems with OS HP-UX from 10.20 to 11.11.

Regards,

Carles
Muthukumar_5
Honored Contributor

Re: Change destination address for event notification mails

Yes.

You have to setup sendmail setup from source machine. Try to make remote machine as resolvable one.

# from source machine
# nslookup

echo "test" | mailx -s "test" remote-uesr@remote-machine

Go to remote machine and check mail contents

# mail
did u get that mail.

If it is success then, automate with cron schedular to make notification.

hth.

Easy to suggest when don't know about the problem!
Robert-Jan Goossens_1
Honored Contributor
Solution

Re: Change destination address for event notification mails

Hi Charles,

The easiest solution is to add an alias in the /etc/mail/aliases file and run a newaliases.

Otherwise you need to change the mail address in every single .sap* file in the /var/stm/config/tools/monitor directory.

Hope this helps,
Robert-Jan
Luk Vandenbussche
Honored Contributor

Re: Change destination address for event notification mails

Hi,

The easiest way is with the .forward file

create a file .forward in the home directory of root

.forward contains
your.email@yourcompany.com

The mails will be automaticaly forwarded
RAC_1
Honored Contributor

Re: Change destination address for event notification mails

Many ways to do it.

1. New alias for new address in /etc/mail/alises file. and do newaliase

2. .forward file in root's home dir and put you email address in it.

3. In config files.
There is no substitute to HARDWORK
Carles Viaplana
Valued Contributor

Re: Change destination address for event notification mails

I created new alias for new address in /etc/mail/alises file.

Thanks to all for your answers!

Regards,

Carles