Learn spam:
find /var/vmail/mailboxes/*/*/mail/Spam/cur -type f -exec /usr/bin/rspamc learn_spam {} \; Learn ham:
find /var/vmail/mailboxes/*/*/mail/cur -type f -exec /usr/bin/rspamc learn_ham {} \; find /var/vmail/mailboxes/*/*/mail/Sent/cur -type f -exec /usr/bin/rspamc learn_ham {} \; find /var/vmail/mailboxes/*/*/mail/Trash/cur -type f -exec /usr/bin/rspamc learn_ham {} \; find /var/vmail/mailboxes/*/*/mail/Drafts/cur -type f -exec /usr/bin/rspamc learn_ham {} \; find /var/vmail/mailboxes/*/*/mail/Templates/cur -type f -exec /usr/bin/rspamc learn_ham {} \; find /var/vmail/mailboxes/*/*/mail/Archives/*/cur -type f -exec /usr/bin/rspamc learn_ham {} \;