Pixelpost

Authentic Photoblog Flavour


Go Back   Pixelpost Forum > DEVELOPMENT > Hacks and Modifications

Post Reply
 
Thread Tools
  #1  
Old 11-25-2006, 12:58 AM
jrn Offline
forum loafer
 
Join Date: Jul 2005
Posts: 17
How about using SpamAssassin / Amavisd-new?

I just had a thought about all the problems with spam.

My server is running SpamAssassin and Amavisd-new ( on Linux ) which does a *very* good job of catching spam.

Anybody ever think about trying to leverage the power of the more popular anti-spam tools to help *detect* comment spam in PixelPost?

I believe most anti-spam tools have some sort of command line operation that would have a program to pass the text of a comment to be tested.

So perhaps PixelPost might be able to use SpamAssassin Amavisd-new in some manner to help weed out comment spam?

The type of spam that people post to photoblogs are *very* easily detected by common anti-spam tools..

Any thoughts?
Reply With Quote
  #2  
Old 11-25-2006, 01:27 AM
jrn Offline
forum loafer
 
Join Date: Jul 2005
Posts: 17
Perhaps there is a PHP API to call SpamAssassin directly?
SpamAssassin is set of Perl modules... but *if* there is a way to call directly call SpamAssassin from within PHP we could avoid having to execute a shell type command like this:

spamassassin < test.mail 2>/dev/null | grep -c "X-Spam-Flag: YES"

Where the file test.mail includes the comment with To: From: headers added.

It would be nasty to execute a system command for every message to use spamassassin to detect spam... but it might work.....
Reply With Quote
  #3  
Old 11-25-2006, 09:17 AM
GeoS's Avatar
GeoS+ Offline
Team Pixelpost
 
Join Date: Apr 2005
Location: Warsaw, Poland
Posts: 3,613
Send a message via ICQ to GeoS Send a message via Skype™ to GeoS
1.Most of web accounts doesnt have shell access.
2. Perl script must be executed to get result of its work.
3. I didnt check it but IMHO SpamAssassin has got interface only for email servers.
4. SpamAssassin isnt on every Linux based server so it can be hard to connect all this things together.

But whole idea is interesting.
__________________
photoblog | portfolio | addons | Donate
Reply With Quote
  #4  
Old 11-25-2006, 06:06 PM
jrn Offline
forum loafer
 
Join Date: Jul 2005
Posts: 17
Quote:
Originally Posted by GeoS View Post
1.Most of web accounts doesnt have shell access.
2. Perl script must be executed to get result of its work.
3. I didnt check it but IMHO SpamAssassin has got interface only for email servers.
4. SpamAssassin isnt on every Linux based server so it can be hard to connect all this things together.

But whole idea is interesting.
Actually, on a system with SpamAssassin installed you can communicate via TCP/IP to a daemon which allows you to send a message to SpamAssassin and get back a result as to whether or not SpamAssassin considers the message Spam. Now it's possible to code a funtion in PHP to talk to the SpamAssassin Daemon.

I might just go ahead and try to implement this feature.. perhaps as a plugin. This would then not require shell access and could be installed by only those who are being hosted on systems with SpamAssassin installed.

BTW, I did some checking around and the other common "blog" software seem to already have these types of plugins.

I think this idea merits some serious consideration...
Reply With Quote
  #5  
Old 11-26-2006, 10:52 AM
GeoS's Avatar
GeoS+ Offline
Team Pixelpost
 
Join Date: Apr 2005
Location: Warsaw, Poland
Posts: 3,613
Send a message via ICQ to GeoS Send a message via Skype™ to GeoS
So if it looks like this then it seems to be a nice addon (if you code it)
__________________
photoblog | portfolio | addons | Donate
Reply With Quote
  #6  
Old 11-27-2006, 02:02 AM
jrn Offline
forum loafer
 
Join Date: Jul 2005
Posts: 17
Quote:
Originally Posted by GeoS View Post
So if it looks like this then it seems to be a nice addon (if you code it)
Ok,

I have no experience writing plugins for pixelpost, but I will write the code that talks with the SpamAssassin daemon and perhaps when that is done I could get some help in turning it into a plugin...
Reply With Quote
  #7  
Old 11-27-2006, 05:43 AM
Dennis's Avatar
Dennis+ Offline
Team Pixelpost
 
Join Date: Jul 2006
Posts: 2,394
Send a message via MSN to Dennis
I'll be happy to be of some help incorporating your code in an addon.
__________________
My photoblog, powered by PixelPost 1.9 dev SVN | My Pixelpost Addons | My Cool Photoblog profile
Reply With Quote
  #8  
Old 01-05-2007, 05:47 PM
Rob Offline
pixelpost guru
 
Join Date: Mar 2005
Location: Burlington, Canada
Posts: 342
Send a message via ICQ to Rob Send a message via MSN to Rob
Check out the Askimat spam addon in the addons section. Askimat is designed for blog comments and works really well.
__________________
shifted*exposure powered by PixelPost 1.4
Reply With Quote
  #9  
Old 01-06-2007, 08:06 AM
se.nsuo.us Offline
pixelpost guru
 
Join Date: Dec 2005
Location: Somewhere in India
Posts: 624
The problem with Akismet is that it is a third party hosted solution and also that it requires a key from the Wordpress site to work. Some people don't like it.

Something talking to SA would be cool
__________________
http://se.nsuo.us - A photoblog of sensual, abstract nudes [may not be work safe for some]
My Pixelpost Addons, Cheesecake-Photoblog Software
Reply With Quote
  #10  
Old 01-06-2007, 02:22 PM
Dennis's Avatar
Dennis+ Offline
Team Pixelpost
 
Join Date: Jul 2006
Posts: 2,394
Send a message via MSN to Dennis
I've found some old wordpress addons that do that, but it has been obsolete since the release of bad behavior. Raminia has made a addon for that long time ago, and since then multiple changes have been made.

I've contacted the author of the wordpress addon.
__________________
My photoblog, powered by PixelPost 1.9 dev SVN | My Pixelpost Addons | My Cool Photoblog profile
Reply With Quote
Post Reply


Thread Tools




All times are GMT. The time now is 11:07 AM.

Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd. | Style Design: d3 designs