I need as soon as possible a bid to solve a serious problem we have. We run two Servers, both with Linux Centos, Apache, Postfix, Dovecot, Amavisd, Clamd, Spam Assassin and so on. They are only Mail Servers, not Domains'.
Sometimes a Domain or an IP address appears in our /var/log/maillog files as involved with the issuing of tons of emails. It could be one of our customer's really doing Spam (mass email), or even a virus at their desktops or networks doing so. Whenever we found it out we talk seriously to the customer(s), to stop spamming or scan and clean their networks.
What I need is a Script, written in Bash or other Server language, to be monitoring this. That is, whenever this Script identified that a great amount of emails is coming (to the port 25 I guess) concurrently/simultaneously or not, from the same IP address or mentioning the same Domain name, it would turn on a red light for me, that is, would issue a warn email to the administration. So we could immediately enter the Server, block that IP or Domain at firewall or other, and look for that customer.
So, the Script doesn't need to block anything, it would just warn me giving me the information I need (IP, Domain, etc) so that I can enter and make the necessary arrangements to stop it.
1) Complete and fully-functional working program(s) in executable form as well as complete source code of all work done.
2) Deliverables must be in ready-to-run condition, as follows (depending on the nature of the deliverables):
a) For web sites or other server-side deliverables intended to only ever exist in one place in the Buyer's environment--Deliverables must be installed by the Seller in ready-to-run condition in the Buyer's environment.
b) For all others including desktop software or software the buyer intends to distribute: A software installation package that will install the software in ready-to-run condition on the platform(s) specified in this bid request.
3) All deliverables will be considered "work made for hire" under U.S. Copyright law. Buyer will receive exclusive and complete copyrights to all work purchased. (No GPL, GNU, 3rd party components, etc. unless all copyright ramifications are explained AND AGREED TO by the buyer on the site per the coder's Seller Legal Agreement).
Linux Centos, Apache, Postfix, Dovecot, Spam Assassin, Clamd, Amavisd.