Page 1 of 1

Alert Template Sent to CPanel User

Posted: 06 Aug 2014, 03:02
by davetanguay
I'd like to edit the the following alert template in CSF to CC the contact email address listed in CPanel

/usr/local/csf/tpl/resalert.txt

I tried to add CC field as shown below but suspect this will just send to the default CPanel user on the domain cpaneluser @ serverhostname . com instead of their email address in CPanel > Contact Info.

==============================
From: root
To: root
CC: [user]
Subject: lfd on [hostname]: Excessive resource usage: [user] ([pid])

Time: [time]
Account: [user]
Resource: [resource]
Exceeded: [level]
Executable: [exe]
Command Line: [cmd]
PID: [pid]
Killed: [kill]
==============================

Any suggestions on how I can get this working? I know with CXS I can use a custom template and I can use "CC: [user]" which sends to the contact email address listed in CPanel. Seems like [user] for CSF is a bit different though.

Re: Alert Template Sent to CPanel User

Posted: 06 Aug 2014, 08:19
by ForumAdmin
There's no such option to do that in csf. You would have to use PT_USER_ACTION and script it yourself.