Re: fetching spam from users junk folder

Nic Bernstein via Info-cyrus <[email protected]>
Newsgroups gmane.mail.imap.cyrus
Message-ID <[email protected]>
Marcus,
In my original response I forgot to mention that for this, or any 
similar approach, to work, you need to use the misnamed "proxyservers" 
setting in imapd.conf to grant access to an administrative user.

        proxyservers: <none>
             A list of users and groups that are allowed  to  proxy  for  other
             users,  separated  by  spaces.   Any  user  listed in this will be
             allowed to login for any other user: use with caution.

For example:

    proxyservers: adminuser

Or, alternately, assign rights to the appropriate mailboxes in cyradm:

    > sam user.%.Should\ Be\ Spam adminuser all

Cheers,
     -nic

On 12/06/2016 10:39 AM, Nic Bernstein wrote:
> On 12/06/2016 01:34 AM, Marcus Schopen via Info-cyrus wrote:
>> Hi,
>>
>> I'm looking for an easy way to fetch spams, which were moved into a
>> special junk subfolder by users in their accounts. I'd like to move
>> those messages from there to my account, so I can analyse them to adjust
>> anti spam rules. How would you do that?
>>
>> Ciao!
>
> We've used the attached script (and configuration file) for years on 
> many different systems.  The script scans the IMAP mail spool for 
> mailboxes matching a name (i.e. "user.yadda.Should Be Spam") and runs 
> the sa-learn program for each message.  The same loop could be 
> expanded to also search for false positives (i.e. "user.yadda.False 
> Spam") as a corrective.
>
> We based this on earlier work by Nick Burch 
> <[email protected]>.  Feel free to adapt to your needs.
>
> Cheers,
>     -nic
>

-- 
Nic Bernstein                             [email protected]
Onlight, Inc.                             www.onlight.com
6525 W Bluemound Road, Suite 24           v. 414.272.4477
Milwaukee, Wisconsin  53213-4073

----
Cyrus Home Page: http://www.cyrusimap.org/
List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/
To Unsubscribe:
https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus
nic.vcf (text/x-vcard, 278 B)
begin:vcard
fn:Nic Bernstein
n:Bernstein;Nic
org:Onlight, Inc.
adr:Suite 24;;6525 W Bluemound Road;Milwaukee;WI;53213-4073;USA
email;internet:[email protected]
title:VP Operations
tel;work:414-272-4477 x204
tel;cell:414-807-1734
url:http://www.onlight.com/
version:2.1
end:vcard
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.