Support

Admin Tools

#41973 WAF Emails

Posted in ‘Admin Tools for Joomla! 4 & 5’
This is a public ticket

Everybody will be able to see its contents. Do not include usernames, passwords or any other sensitive information.

Environment Information

Joomla! version
5.3.1
PHP version
8.2
Admin Tools version
7.8.0

Latest post by nicholas on Friday, 06 June 2025 06:53 CDT

gbottin

Hello,

It's been several versions now that some WAF emails are sent to more addresses than configured.
I configured 2 addresses in the "Auto ban" page while in "Hardening options" and "Logging and Reporting" only 1 (it's one fo the two in auto-ban).
Every time there is a php exception or a system file is modified the email is sent to the 2 addresses configured in "Auto Ban".
Maybe it depends on my configuration I don't know. It's a small problem but it would be nice if it was fixed.

Thanks

Gianpaolo 

nicholas
Akeeba Staff
Manager

If you had told me that the strange email recipients happened ONLY with the Critical Files feature I could understand that. If you have enabled the Monitor Critical Files feature but NOT provided any email address in the "Email this address on monitored files change" field we will use the email set up in the "Email this address on blocked request" as someone needs to be notified! There's no point enabling Critical Files without any email addresses to be notified. We made this change in version 7.7.1. It's not a problem, it's a sanity check. If you don't want to receive these emails, just disable the Critical Files feature in the Hardening Options page.

The problem is you are claiming this happens for the PHP exceptions email. However, there is no such code to do that, and the last time this code was modified was three years ago. The PHP exception email is only sent to the "Email PHP Exceptions to this address" email. You can see that in the plugins/system/admintools/src/Feature/EmailOnPHPException.php file line 28:

$this->emailAddress = trim($this->wafParams->getValue('emailphpexceptions', '') ?: '');

The emailphpexceptions field is the one labeled "Email PHP Exceptions to this address" in the interface. Again, this line has been there for 3 ½ years (it was last modified January 20th, 2022). Unless you have gone and modified that code yourself, you are not getting emails on any other address.

Nicholas K. Dionysopoulos

Lead Developer and Director

🇬🇷Greek: native 🇬🇧English: excellent 🇫🇷French: basic • 🕐 My time zone is Europe / Athens
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

gbottin

Thanks for your quick reply.

The issue was caused by the empty field "Email this address on monitored files change", there was an email for "Monitored configuration" but I didn't notice the other was empty.

About the email for php exceptions, since our site also sends emails in case of other errors it is possible that the person who received the email did not understand exactly what kind of email it was.I didn't see it, I thought of Admin Tools but maybe I was wrong. I will do further checks.


Anyway thank you very much again for the support.

nicholas
Akeeba Staff
Manager

Yes, it is possible to get both an exception and an unrelated email – or even get two of them close together. I have definitely had cases where you'd get the backend login email followed milliseconds later by the PHP exception email.

Nicholas K. Dionysopoulos

Lead Developer and Director

🇬🇷Greek: native 🇬🇧English: excellent 🇫🇷French: basic • 🕐 My time zone is Europe / Athens
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

Support Information

Working hours: We are open Monday to Friday, 9am to 7pm Cyprus timezone (EET / EEST). Support is provided by the same developers writing the software, all of which live in Europe. You can still file tickets outside of our working hours, but we cannot respond to them until we're back at the office.

Support policy: We would like to kindly inform you that when using our support you have already agreed to the Support Policy which is part of our Terms of Service. Thank you for your understanding and for helping us help you!