I don't get a whole lot anymore, but I still occassionally get that fradulent order that gets on my machine and starts to send spam out.
I use programs like Mail-Watch and such, but I tend to have a lot of server load issues with it, and sometimes it won't run correctly when the logs are too big.
So I had one more idea for helping catch spammers, but I'm not sure if it can be done or not.
I'm not much of a perl programmer, so i am looking for a little help.
I use the antivirus.exim file to filter out a lot of the "phishing" type e-mails. And I use a line like this:
if $message_body: contains "safelist"
then
logwrite "safelist from: $sender_address $tod_log $message_id processed"
seen finish
endif
So I write all of those to a log, which looks like this (of course i could change it so the e-mail is first if need be):
safelist from: [email protected] 2006-06-08 13:09:22 1FoOwc-0000hy-TI processed
what I would like to do is write a script that I can have run through a cron to go through that filter log and check to see if any of the "$sender_address" match any domains that are currently on my system, and if it it does, go ahead and send me an e-mail. That way it gives me one more layer of protection and I can go in and kill their account right away.
So I would imagine that it would involve pulling that data from the log file, going to one of the cpanel folders that has all of the domains listed (or maybe even the localdomains file) and seeing if it exists....
Would anyone be able to help me write that quick perl script. I am sure it is pretty easy, but just beyond me.
I use programs like Mail-Watch and such, but I tend to have a lot of server load issues with it, and sometimes it won't run correctly when the logs are too big.
So I had one more idea for helping catch spammers, but I'm not sure if it can be done or not.
I'm not much of a perl programmer, so i am looking for a little help.
I use the antivirus.exim file to filter out a lot of the "phishing" type e-mails. And I use a line like this:
if $message_body: contains "safelist"
then
logwrite "safelist from: $sender_address $tod_log $message_id processed"
seen finish
endif
So I write all of those to a log, which looks like this (of course i could change it so the e-mail is first if need be):
safelist from: [email protected] 2006-06-08 13:09:22 1FoOwc-0000hy-TI processed
what I would like to do is write a script that I can have run through a cron to go through that filter log and check to see if any of the "$sender_address" match any domains that are currently on my system, and if it it does, go ahead and send me an e-mail. That way it gives me one more layer of protection and I can go in and kill their account right away.
So I would imagine that it would involve pulling that data from the log file, going to one of the cpanel folders that has all of the domains listed (or maybe even the localdomains file) and seeing if it exists....
Would anyone be able to help me write that quick perl script. I am sure it is pretty easy, but just beyond me.