Changing Address in Alert Template

This forum is only for reproducible bugs with csf and lfd (i.e. not iptables problems, lack of understanding how to use a feature, etc). Posts must be accompanied with full technical details of the problem and how it can be recreated. Any posts not adhering to this, or not considered bugs, will be moved to the General Discussion (csf) forum.
Post Reply
Bobsie
Junior Member
Posts: 2
Joined: 22 May 2009, 22:15
Location: Alpena, Michigan
Contact:

Changing Address in Alert Template

Post by Bobsie »

Recently, my provider installed CSF on one of my linux-based WHM/cPanel VPS. This was done primarily to help track down heavy loads occurring on the server (I own the VPS but resell them to clients). I wanted to ensure that my VPS client received the heavy load alert messages in addition to myself.

I went into the CSF configuration in WHM and used the Edit Template on the loadalert.txt template. I changed it like this:

root,second address (no space after comma)
root, second address (space after comma)
new address

None of these work. The alert messages continue to go to root's address defined in WHM. It should be notied, the 'new address' is setup on my server to forward the message to my VPS client.

My VPS provider also looked at this issue and cannot figure out what to do. They stated:

"I believe it is a problem with the csf software. While the software may be designed to be able to send alerts to multiple different addresses, it does not appear to be working. I have looked though the csf configuration on your server, and I can see nothing that can be done that you have not already attempted to configure in your templates."

I am not trying to ger the software to send to multiple addresses any longer. I am just trying to get it to send to an address other than 'root'. The new address would then deliver to multiple addresses. I cannot get it to work.
chirpy
Moderator
Posts: 3537
Joined: 09 Dec 2006, 18:13

Post by chirpy »

Try using adding a CC: field to the template instead
Bobsie
Junior Member
Posts: 2
Joined: 22 May 2009, 22:15
Location: Alpena, Michigan
Contact:

Post by Bobsie »

Thank you for the suggestion. I fixed the problem. I discovered the LF_ALERT_FROM and LF_ALERT_TO settings. I blanked them out so that I can customize the addresses in the templates themselves.
Post Reply