-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Colin Wetherbee schrieb:
> Greetings.
> 
> I'd like to create the per-user folders "LearnAsSpam" and "LearnAsHam"
> for my users, into which they would put messages they've verified to be
> either spam or ham.  Then, a nightly job would come along, feed the
> messages in those boxes to SpamAssassin, and delete them from the database.
> 
> I've read that grabbing messages directly from the database (e.g. via a
> Perl script) is a bad idea and difficult to implement, anyway, since
> they're fragmented across several tables and rows.
> 
> So, I'm envisioning a master user/password that can access everybody's
> spam/ham folders.  I could log in via IMAP as that user (again, from a
> Perl script), get the messages in the usual IMAP way, and process them.
>  Presumably, I could also add an ACL for localhost-only access, to
> address the obvious security issue.
> 
> I've been scouring the web for information on how to create a master
> user but haven't been able to come up with anything.
> 
> Is this the advisable way to approach this problem in the first place?
> If so, what do I need to do to get that master user going?

My solution (quick and dirty) to do as root:

dbmail-export -D -u <username_for_mailaccount> -m <Name_of_Spam_Box> -o
<filename>


sa-learn --spam --file <filename> --username amavis


"amavis" is the username running spamassassin. I use a generic user for
sql bases baye db.


HTH,
        Uwe
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iQEVAwUBSLmsP9s3frmum9swAQKLdQf7BfBeZPAhjBaudr9SAV73waAJ19GRzRpW
B+23DA7hmH/mmeDgzZLo9M/s9DLVoXp+w4iu4IhDoxdFop5m21ktcsQZdJ+joUsz
luIEr2NMmdkFI8sR+S54W351i+R4w3d0Y7nSfk/fVd1kVBEHMYfqcJeYimcDLzac
zfYS/dpk9qt3hnpsDas4wQasuRhePoFci3kmImraMONtfUd0WCUqef1TL+sjU1nJ
lS7xBR5mBOPJZ/iV+eBxioN1SvcqCsnmqzQW6g7CPl+OuXSzYuzAxHZusTZuOF9s
xmVgt03SGtpDeHlTAX4z8m+RhsFHd1AIRNrqojZa8m81vAs/va+aQA==
=uWu/
-----END PGP SIGNATURE-----
_______________________________________________
DBmail mailing list
[email protected]
https://mailman.fastxs.nl/mailman/listinfo/dbmail

Reply via email to