[phpBB Debug] PHP Notice: in file [ROOT]/includes/session.php on line 2208: Array to string conversion
[phpBB Debug] PHP Notice: in file [ROOT]/includes/session.php on line 2208: Array to string conversion
[phpBB Debug] PHP Notice: in file [ROOT]/includes/session.php on line 2208: Array to string conversion
[phpBB Debug] PHP Notice: in file [ROOT]/includes/session.php on line 2208: Array to string conversion
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4688: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3823)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4690: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3823)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4691: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3823)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4692: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3823)
Poco Forums • View topic - Maybe one more way to filter spam from overseas!
Page 1 of 1

Maybe one more way to filter spam from overseas!

PostPosted: Fri Jan 21, 2005 2:25 am
by muncher1
I've noticed a pattern of junk mail left on the server due to another filter running. Almost all junk email has a time sent from sender stamp in the header much different then the received time stamp in my time zone. Some one with programming experiance might be able to write a script that compares the time stamped when email was received versus the time sent stamped in the header on email coming in. In my case, Poco checks for mail every twenty minutes and a script would follow this type of logic:

Pre-download
1. Check mail.
2. If sender in addressbook or mail is to someone in address book process download and run through post download filters, if not lets check time difference and if time stamp difference is greater than 4 hours goto 3, if not greater then 4 hours goto end and process through other filters.
3. Get the current time and date from your system (or receive time on email stamp contained within header).
4. Compare time on your system (or time stamp received in email header) to time stamp on incoming mail.
5. If incoming mail is time stamped greater than four hours (or what ever time is input in "setup script" to account for time zones) then leave on server and delete. When done goto end.
6. end

What I noticed is most all spam received is running about 9 hours ahead of my time zone. This means it is most likely coming from somewhere overseas. I don't know anyone overseas that sends email so near 100% chance it is spam.

I can't do the programing, but if someone thinks this will work, I'll be glad to help in what ever way I can to help write a script/filter that can do the above. By the way, a previous topic which show's a filter checking sender against address book and the receiver in address book has a 100% success rate blocking spam so far.