Results 1 to 2 of 2

Thread: Auto learn from users folders

  1. #1
    Join Date
    Nov 2016

    Auto learn from users folders

    Hi All,

    I created an small bash script to teach the bayes of all the users.
    Script for teaching SA Bayes on an directadmin server. It loops thru every user => domain => mailbox => mailfolder. Only handmade folders (others then default) are used for HAM. Known spamboxes are used for SPAM. It downloads the spam file from$spamfile and teached it at SPAM. Then sync the journal and dumps the magic. All saved in an log (/var/log/sa-learn/) per user.

    This can help to speed up the learning of the first 200 ham and spam messages for users who just enabled SA.

    You could use this script in an daily cron. Then is speeds up the refreshment of the bayes tokens.

    Feel free to use it. (At own risk ofcourse)

  2. #2
    Join Date
    Feb 2005
    The Netherlands
    Hi Jordi,

    this is super, just what I needed actually. This should replace the script at How do you run this script, as a weekly cron? Could it be run as the mail user as well?

    As a feature request, the ability to skip the main DirectAdmin "admin" account and the option to use the mail from the main account user with mail that's in /home/username/Maildir/.

    Oh and since these maildirs are live and changing maybe find a way to stop the "archive-iterator: unable to open ...: No such file or directory" and "archive-iterator: no access to" errors?
    Last edited by tristan; 10-16-2019 at 06:12 AM.
    Prism Open Source - DirectAdmin hosting since 2004

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts