学习为垃圾邮件 learn_spam
[root@umail Maildir]# rspamc -h localhost:11334 -P q1cc learn_spam <.Junk/cur/1440728579.M621653P19776.umail.westhost.cn\,S\=2440\,W\=2501\:2\,Results for file: stdinsuccess = true;
学习为正常邮件 learn_ham
[root@umail cur]# rspamc -h localhost:11334 -P q1cc learn_ham <./1440729646.M846175P20103.umail.westhost.cn\,S\=1955\,W\=1999\:2\,Results for file: stdinsuccess = true;
查看rspamd状态 rspamc stat
[root@umail cur]# rspamc statResults for command: statMessages scanned: 9Messages with action reject: 0, 0.00%Messages with action soft reject: 0, 0.00%Messages with action rewrite subject: 0, 0.00%Messages with action add header: 5, 55.55%Messages with action greylist: 0, 0.00%Messages with action no action: 4, 44.44%Messages treated as spam: 5, 55.55%Messages treated as ham: 4, 44.44%Messages learned: 0Connections count: 9Control connections count: 27Pools allocated: 74Pools freed: 43Bytes allocated: 1MMemory chunks allocated: 162Shared chunks allocated: 29Chunks freed: 59Oversized chunks: 1Fuzzy hashes stored: 0Fuzzy hashes expired: 0Fuzzy hashes checked: 0 0 0Fuzzy hashes found: 0 0 0Statfile: BAYES_SPAM length: 50M; free blocks: 3M; total blocks: 3M; free: 100.00%; learned: 1Statfile: BAYES_HAM length: 50M; free blocks: 3M; total blocks: 3M; free: 100.00%; learned: 1Total learns: 2