On Thu, April 6, 2006 11:58 am, Jevos, Peter wrote:
> No, maildrop doesn't call Amavis. Amvis is called by postfix in
> master.cf:
> smtp-amavis unix - - n - 2 smtp -o
> smtp_data_done_timeout=1200 127.0.0.1:10025 inet n - n
> - - smtpd
> -o content_filter=
OK, then where are you moving the mail to the Spam folder? That at least
should be in maildroprc, you can wrap that in a conditional check for the
spamfilter file:
`test -f $HOME/spamfilter`
if (($RETURNCODE == 0) and (/^Subject: *SPAM*/:h)
{
to $MAILDIR/.Spam/
}
The first line checks to see if the spamfilter file exists for the user,
the if statement checks that the return code was 0 (the file exists) and
the message Subject contains SPAM (you may wish to modify this part to
match how you were previously looking for flagged spam messages). If the
user has created the spamfilter file, spam goes to the Spam folder, plain
and simple from their perspective.
> I don't have a file runamavis
You wouldn't, I made it up. It's just a simple file that would be created
for users who wished to run amavisd, but since amavis is called by
Postfix, that won't work. The idea behind the spamfilter file was the
same though. So amavis will be called for all users but actually moving
spam to the spam folder should only happen for users who create a
spamfilter file (should be possible to do this via Squirrelmail plugin)
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