Hello,
I have a web server (apache, php-fpm) with several vhosts sending mail through php. In order to avoid IP blacklisting when spam is sent by a domain i'm looking for a way to setup a rate limit for outgoing mail and when this limit is reached I want to receive an email warning me that a vhost has exceeded the threshold so I can act fast and solve the problem.
I found this script which does basically what I want but I have no idea how to make it send the warning email: php-secure-sendmail (you can google it, I can't post the link here as I'm a new member)
I'm a noob when it comes to scripting. So I'd like to know how i can make it or if anyone has an alternative script which can achieve what I want. It doesn't need to be python anything will do provided it can achieve the same result.
Thank you!