Page 1 of 1
lfd not sending emails in upgraded versions > 4.60
Posted: 21 Jun 2009, 22:45
by robm
On the servers we have upgraded to versions greater than 4.60, lfd has stopped sending email alerts (including latest version). Servers with versions less than 4.61 continue to send email alerts. All servers are RHEL5/cetnOS5 32 bit servers. csf.conf settings all appear correct.
As another test, we took a csf 4.23 server, triggered a block that sent an email, removed the IP from the block list, upgraded to the latest version, triggered the block again, and no email was sent, no errors/indications in the maillog.
Thoughts? Known issue? Thanks.
Rob
Posted: 21 Jun 2009, 23:12
by robm
ok, I found that if we had previously edited the *.txt email templates to change the headers to:
---
From: servername <root@servername>
To:
my@email.address
---
then on later versions csf will not send emails. Changing these back to:
---
From: root
To: root
---
seemed to "fix" it. Seems a change/bug was introduced that made the former syntax invalid. I know new parameters were added to csf.conf with respect to From/To fields, but the previous changes we made to .txt files seems to have broken recent versions.
The reason we changed the txt files to this format so the from: field being displayed when we check alerts (as we get 1000's per day) would list a custom server name that is easy to identify instead of just "root".
Rob
Posted: 22 Jun 2009, 17:06
by ForumAdmin
We will issue a fix for this in v4.72 in the next few minutes.
Posted: 22 Jun 2009, 18:03
by robm
ForumAdmin wrote:We will issue a fix for this in v4.72 in the next few minutes.
Thank you for the quick fix, works great!
Rob
Posted: 02 Jul 2009, 16:39
by chirpy
Thanks
It needed doing as the code wasn't ideal, but is now much better suited if we need to make any improvements or add new features.