On Sun, 2006-08-27 at 20:31 -0400, Jon Anderson wrote: > In reference to the detection part; In my case, 95%+ of the spam entries > have links that contain one of about 5 words (casino, pharm, drug, > stock, or invest), so I could eliminate most spam by automatically > trashing all entries that contains a link with one of those key words. I > don't know if you're lucky enough to have spammers as predictable as > mine, so that may not be an effective solution for anyone but me. > I wrote a mailing list application (GNU Mailman style) in PHP and wrote in an excellent spam filter into that - not one spam mail yet... Basically, I had the users sign up through a web interface, and then fill in their details during registration. The users in my users table are assigned a unique userId, which I then reference through the mailing list module. Basically what happens is: 1. Mail comes in through a POP3 account 2. The messages are downloaded and MIME messages decoded. 3. Message "From" headers are checked for a valid email address 4. The email address is looked up in the users table 5. The userId in the users table is compared to the userId in the mailing list subscribers table 6. If the email addresses from both match, and the userId is the same, the mail is inserted into the mail table, with a ref to the attachment(s) if any 7. A cron picks it up and emails the new mail to all subscribers. Basically, in order to get a mail through, you need to be a valid user, and subscribe to a list, otherwise you are treated as spam and discarded. --Paul
All Email originating from UWC is covered by disclaimer http://www.uwc.ac.za/portal/uwc2006/content/mail_disclaimer/index.htm
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php