On Thu, April 6, 2006 10:08 am, Jevos, Peter wrote:
> I have SM with courier-imap ( with quota ), postfix and amavis
> So I set up that every mail considered as spam is tagged with ***SPAM***
> and moved to folder Spam (plugin filters) But some users connects to server
> through IMAP, some fetch an emails to local machine through POP3 from my
> server. What happends with those users ( POP3 ) if Spam folder is full (
> over quota ) ? Postfix refuse next emails. Those users never login into SM
> and purge the Spam folder. I tried to use proon plugin but it requires at
> least one login. So I need to get rid of emails from Spam folders
> periodicaly Or probably there is another elegant and different solution

I am assuming that it is maildrop that is calling Amavis, or possibly
procmail?  You should configure the global call to Amavis to only execute
under certain conditions, e.g. if the file $HOME/runamavis exists.  You
can also do this for the server side filtering.  e.g. if header ***SPAM***
and file exists $HOME/filterspam then deliver the message to the Spam
folder instead of INBOX.  You should then setup a simple plugin in
Squirrelmail that allows users to enable Amavis and enable spam folder
filtering.  This would require some source level hacking but with
serversidefilter as a guide it shouldn't be impossible.  Another
possibility would be to make runamavis and filterspam columns in your
MySQL mail user database (assuming your using MySQL as a backend of
course).  That would be easier to do...

The end result is that users who use Squirrelmail and/or IMAP can turn on
Amavis and spam folder delivery while POP3 users don't need to be bothered
with checking their Spam folder.

Jay
-- 
Jay Lee
Network / Systems Administrator
Information Technology Dept.
Philadelphia Biblical University
--


-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
--
squirrelmail-users mailing list
Posting Guidelines: 
http://www.squirrelmail.org/wiki/MailingListPostingGuidelines
List Address: [email protected]
List Archives: 
http://news.gmane.org/thread.php?group=gmane.mail.squirrelmail.user
List Archives:  http://sourceforge.net/mailarchive/forum.php?forum_id=2995
List Info: https://lists.sourceforge.net/lists/listinfo/squirrelmail-users

Reply via email to