<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /></head><body style='font-size: 10pt; font-family: Verdana,Geneva,sans-serif'>
<p>Niels,</p>
<p>sa-learn would be the way to go, but my spamassassin is not on the same server as my mailboxes. I tried solution with a common mailbox and something like fetchmail on my spamassassin machine, but could not get it to work as I intended.</p>
<p>You are right about learning based on user experience, but as it is a score based learning I would like to try to see how it goes. Maybe I'll come to regret it but well...</p>
<p><br /></p>
<p>Best regards,</p>
<p>Pedro Silva</p>
<p><br /></p>
<p>On 30-05-2018 10:42, Niels Dettenbach via Info-cyrus wrote:</p>
<blockquote type="cite" style="padding: 0 0.4em; border-left: #1010ff 2px solid; margin: 0"><!-- html ignored --><!-- head ignored --><!-- meta ignored -->
<div class="pre" style="margin: 0; padding: 0; font-family: monospace">Am Mittwoch, 30. Mai 2018, 10:44:09 CEST schrieb Pedro silva:
<blockquote type="cite" style="padding: 0 0.4em; border-left: #1010ff 2px solid; margin: 0">Ive seen something like this in other distributions (eg.:<br /> <a href="https://wiki.dovecot.org/HowTo/AntispamWithSieve" target="_blank" rel="noopener noreferrer">https://wiki.dovecot.org/HowTo/AntispamWithSieve</a>) I was just<br /> wondering if the same is possible with cyrus or cyrus sieve.</blockquote>
<br /> <br /> Just for reading mail files into i.e. spamassassin efficently periodically (in a <br /> small to "large" amount of mailboxes) you could do things (by i.e. cron) <br /> like:<br /> <br /> - for a "few hundreds" mailboxes (as long as the shell did not complain a to <br /> long result list) by cron:<br /> <br /> spam-learn /var/spool/imap/user/*/SpamLearn/*.<br /> <br /> for i.e. a cyrus imap Folder called "SpamLearn" (i.e. auto-created in every <br /> mailbox). You possibly have to adapt the whole path to your config/setup.<br /> <br /> - or for much more of, do a loop over:<br /> <br /> for each user:<br /> spam-learn /var/spool/imap/user/$user/Spam/*.<br /> <br /> In a 2nd step you may delete the Spam folder content by a little imap script <br /> to avoid re-reading yet processed mails. "spam-learn" is a script / program <br /> which reads emails direcftly fom files.<br /> <br /> seems a bit ugly, but works very efficient on filesystem level. It sepends from <br /> the filesystem layer how powerful this could be for you.<br /> <br /> - If you want to avoid cron and process "instantly" you may use the notifier <br /> principle as described from Pedro to start such a script for a single mailbox <br /> if /at least one) mail is placed in that Folder..<br /> <br /> - It should be possible to to use inotify or similiar filesystem notification <br /> features to start such a script too.<br /> <br /> <br /> I'm personally do not like "spam training" by users as this often leads to <br /> bad / not valuable results, as many typical end users (by my experience) <br /> misunderstand what "spam" (technically) is (and/or change their mind about). <br /> I.e. they use "forwarded" "spam" fom any external mail sevice/pop, regular <br /> list mail fom a company (which all is a valid mail). Such things leads to <br /> false positives or (if less weighted) just not useful processing overhead. <br /> But this may depend fom the practical application (i do not use Spam marking <br /> ("Spam Folder") - just bouncing - as checking Spam Folders costs the end user <br /> additional work time if they rely on email....<br /> <br /> <br /> good luck.<br /> best regards,<br /> <br /> <br /> niels.<br /> -- <br /> ---<br /> Niels Dettenbach<br /> Syndicat IT & Internet<br /> <a href="http://www.syndicat.com" target="_blank" rel="noopener noreferrer">http://www.syndicat.com</a><br /> PGP: <a href="https://syndicat.com/pub_key.asc" target="_blank" rel="noopener noreferrer">https://syndicat.com/pub_key.asc</a><br /> ---<br /> <br /> <br /> <br /> <br /> <br /> <br /> <br /> ----<br /> Cyrus Home Page: <a href="http://www.cyrusimap.org/" target="_blank" rel="noopener noreferrer">http://www.cyrusimap.org/</a><br /> List Archives/Info: <a href="http://lists.andrew.cmu.edu/pipermail/info-cyrus/" target="_blank" rel="noopener noreferrer">http://lists.andrew.cmu.edu/pipermail/info-cyrus/</a><br /> To Unsubscribe:<br /> <a href="https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus" target="_blank" rel="noopener noreferrer">https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus</a></div>
</blockquote>
</body></html>