So, it is not only that i hate spammers, they also hurt us.
If a client we have is a spammer, the mail servers could get “Banned” at major email providers including Hotmail, Gmail, Yahoo, etc… and we can not afford legitimate client mail delivered to Spam folders or blocked all together
We do have measures to limit the amount of email sent per domain, But an in depth analysis of the mail is also important.
So at the office, i setup an UBUNTU linux machine and installed ISOQMAIL, ./configure make then make install
On the server, i made a job to copy the mail log (/usr/local/psa/var/log/maillog) to a password protected, web accessible directory, On the local machine i made a script to fetch the files into a directory known to isoqlog.
So now i need to make 2 files, one with the domains and one with the config, the file locations of the logs isoqlog should expect to find logs in and the place it should output the data to !
As for catching the PHP scripts that actually send the mail, here is a trick… PHP sends through sendmail, and we can actually have an intermediate script that verifies the mail, Limits it, or does anything else that is needed before actually sending the mail.
1- Add a wrapper script file (/var/qmail/bin/mailwrap), this can be a PHP script if you like to eecute at command line, A copy should go to the actual mail script, the other to wherever you want to log or control activity !