[Dovecot] sdbox-format and sa-learn(spamassassin)
Hello,
is it somehow possible to use sa-learn on sdbox-mailboxes? Maybe i can use dsync to "mirror" the mailboxes(only the spam-subfolder) to another location and convert it to mbox or maildir and act then on it with sa-learn?
I know the antispam-Plugin, but until now no success, to get it running. So I think about an way, to learn via sa-learn on an file which i can process.
Regards Ingo
Ingo Thierack put forth on 10/31/2010 11:40 AM:
Hello,
is it somehow possible to use sa-learn on sdbox-mailboxes? Maybe i can use dsync to "mirror" the mailboxes(only the spam-subfolder) to another location and convert it to mbox or maildir and act then on it with sa-learn?
I know the antispam-Plugin, but until now no success, to get it running. So I think about an way, to learn via sa-learn on an file which i can process.
Why not just create a public namespace and give it a location with type mbox or maildir? Enable ACL, add all your users. Create an IMAP folder in it called SPAM and have all your users put their spam in the shared public SPAM folder. When you think about it for a second, does each user really need their own spam folder?
Now simply point sa-learn at this mbox file or maildir directory.
-- Stan
On 31.10.2010, at 16.40, Ingo Thierack wrote:
is it somehow possible to use sa-learn on sdbox-mailboxes?
Use doveadm fetch to extract the mails. http://wiki2.dovecot.org/Tools/Doveadm/Search has example how to go through all messages in a mailbox.
Timo Sirainen tss@iki.fi wrote:
On 31.10.2010, at 16.40, Ingo Thierack wrote:
is it somehow possible to use sa-learn on sdbox-mailboxes?
Use doveadm fetch to extract the mails. http://wiki2.dovecot.org/Tools/Doveadm/Search has example how to go through all messages in a mailbox.
Another alternative may be to start spamd (spamassassin daemon) for the non root user serving request via unix socket.
Spamd do not have to be run as root
Spamd can listen on unix socket
Spamd can be configured via command line options to accept requests for learning
there is Mail::SpamAssassin::Client perl module for perl script to contact spamd "like spamc"
there is Mail::IMAP::Simple perl module to access IMAP mailboxes
Such approach would allow "fetch one, learn one delete one" instead of "fetch all, learn all, delete all".
-- [pl>en: Andrew] Andrzej Adam Filip : anfi@onet.eu If happiness is in your destiny, you need not be in a hurry. -- Chinese proverb
Andrzej Adam Filip anfi@onet.eu wrote:
Timo Sirainen tss@iki.fi wrote:
On 31.10.2010, at 16.40, Ingo Thierack wrote:
is it somehow possible to use sa-learn on sdbox-mailboxes?
Use doveadm fetch to extract the mails. http://wiki2.dovecot.org/Tools/Doveadm/Search has example how to go through all messages in a mailbox.
Another alternative may be to start spamd (spamassassin daemon) for the non root user serving request via unix socket.
Spamd do not have to be run as root
Spamd can listen on unix socket
Spamd can be configured via command line options to accept requests for learning
there is Mail::SpamAssassin::Client perl module for perl script to contact spamd "like spamc"
there is Mail::IMAP::Simple perl module to access IMAP mailboxes
Such approach would allow "fetch one, learn one delete one" instead of "fetch all, learn all, delete all".
It DOES NOT require source code modifications of spamd.
-- [pl>en: Andrew] Andrzej Adam Filip : anfi@onet.eu ... faster BogoMIPS calculations (yes, it now boots 2 seconds faster than it used to: we're considering changing the name from "Linux" to "InstaBOOT" -- Linus, in the announcement for 1.3.26
Ingo Thierack i.thierack@iwt-promotion.com wrote:
is it somehow possible to use sa-learn on sdbox-mailboxes? Maybe i can use dsync to "mirror" the mailboxes(only the spam-subfolder) to another location and convert it to mbox or maildir and act then on it with sa-learn?
I know the antispam-Plugin, but until now no success, to get it running. So I think about an way, to learn via sa-learn on an file which i can process.
Have you considered asking for IMAP iterator for spamassassin? [ e.g. based on Net::IMAP::Simple perl module]
It will not be the fast way but it would be optimal long term solution (IMHO).
-- [pl>en: Andrew] Andrzej Adam Filip : anfi@onet.eu The health of a democratic society may be measured by the quality of functions performed by private citizens. -- Alexis de Tocqueville
participants (4)
-
Andrzej Adam Filip
-
Ingo Thierack
-
Stan Hoeppner
-
Timo Sirainen