Start a Conversation

Unsolved

This post is more than 5 years old

D

1118

March 7th, 2008 07:00

escalation policy mail

I have a question with smarts i have an escalation mail that sends mail to my outlook as root but i need to change the user sending the mail to another user e.g john blogg.
Is this possible as the file that sends an email ics-issue.sh uses root to send that email. Is there any user that can send this mail apart from root.

2 Intern

 • 

1.3K Posts

March 7th, 2008 08:00

any user can send the mail if configured properly, not a big deal though

1 Rookie

 • 

79 Posts

March 8th, 2008 01:00

how is it configured for that so that another user can send mail

2 Intern

 • 

1.3K Posts

March 8th, 2008 15:00

could you post the mailing section from the script ics-issue.sh.

1 Rookie

 • 

79 Posts

March 10th, 2008 00:00

mailing section of script

oot@ojt-smarts-pri # more ics-issueMail3.sh
#!/bin/sh

#################################################################
# Dimension Data Customisations
# =============================
# @(#) $Id: ics-mailEvent.sh#1 $ Dimension Data
# Last edit: $Author: marius.roosenschoon $ $DateTime: 2006/03/20 $
# Copyright (C) 2007, Dimension Data
# All Rights Reserved
#
# This is a script to be used in conjunction with an escalation
# policy to mail notification details.
#
#################################################################
# -- User Defined Vaiables --

# Location of the escalation files
notificationFileDir=/opt/InCharge6/escalationMails

# mail recipient list, white space seperated e.g.: mailRecipients="root@localhos
t another@wherever.com.ng"
mailRecipients="DOkuwa@aol.com"

2 Intern

 • 

1.3K Posts

March 10th, 2008 05:00

i see only notificationFileDir,notificationFileDir not the exact mail command used. I hope this scritpt is called as root while executing.

which is the OS?

I guess the script can be owned by another user and when called will be executed from that particlar owner/user

1 Rookie

 • 

79 Posts

March 10th, 2008 07:00

i have chenged ownership of the script that sends the mail but still no result
it used to be root

-rwxr--r-- 1 dele other 5575 Mar 7 11:02 ics-issueMail3.sh

1 Rookie

 • 

79 Posts

March 10th, 2008 07:00

thanks i will try this although i have couple of scripts with diff users who owns them

89 Posts

March 10th, 2008 07:00

change the SenderId = "daemon@localhost" to your senderid email address under the mail-notify.conf file

cheers

F

1 Rookie

 • 

79 Posts

March 10th, 2008 08:00

fernando,

sorry it did not work after changing that file mail-notify.conf
No Events found!

Top