Gossamer Forum
Home : Products : Gossamer Mail : Discussion :

SpamAssassin & Remote POP Collection

Quote Reply
SpamAssassin & Remote POP Collection
Is there anyway to have SpamAssasin filter mail pulled from a users remote POP box.

I have it all working with mail pulled from the catchall and it does a great job, but it would be even better if it worked with remote email.

Last edited by:

paulj: Nov 23, 2002, 1:40 PM
Quote Reply
Re: [paulj] SpamAssassin & Remote POP Collection In reply to
Yes, it was meant to do that, but we originally forgot to put the plugin hooks into the POP3 checking. You can fix this by changing admin/GMail/POP3.pm, around line 379 and 387, you'll see:
Code:
$fid = GMail::Options::Filters->process($head);
and
Code:
defined($spam) or $spam = GMail::Options::Spam->process($head);

Change these to:
Code:
$fid = $PLG->dispatch('GMail::Options::Filters::process', sub { GMail::Options::Filters->process(@_) }, $head);
and
Code:
defined($spam) or $spam = $PLG->dispatch('GMail::Options::Spam::process', sub { GMail::Options::Spam->process(@_) }, $head);

Adrian
Quote Reply
Re: [brewt] SpamAssassin & Remote POP Collection In reply to
Is there a good way to test this with POP3?
Quote Reply
Re: [brewt] SpamAssassin & Remote POP Collection In reply to
starting to show some errors in my log check these and see if they are related.



GT::Plugins (2704): Plugin pre auth_init stopped further plugins. at /www/allfordmustangs.com/cgi-bin/links/admin/GT/Plugins.pm line 99.
GT::Plugins (2704): Plugin pre auth_valid_session stopped further plugins. at /www/allfordmustangs.com/cgi-bin/links/admin/GT/Plugins.pm line 99.




Dale
Quote Reply
Re: [Dale_Brown] SpamAssassin & Remote POP Collection In reply to
Those are debug messages and can be ignored. To test, try sending a message you know is spam to one of the remote pop accounts, and then check that account.

Cheers,

Alex
--
Gossamer Threads Inc.