Learning directly from History using a button for spam/ham

484 views
Skip to first unread message

dp.ma...@gmail.com

unread,
Sep 2, 2018, 9:48:28 AM9/2/18
to rspamd
Hello All,
I am running rspamd as a gateway server where the mails are not stored locally but get relayed to two different servers (running much older IMAP servers with older OS).So the Maildirs are not local. 

My questions are as below.
1) In the History I noticed few transaction alert mails from my bank being rejected. How do I make the rspamd learn those as HAM from the History (like the feature in mailwatch on Mailscanner/spamassassin)?
2) Since mails are not stored locally and getting delivered elsewhere - how do I get some mails learned as SPAM?

It would be a great feature if the mails are cached locally for few days and a learn feature (like mailwatch) were offered which would be make the spam learning super efficient.

Thanks/DP

Philip Paeps

unread,
Sep 3, 2018, 7:24:45 AM9/3/18
to rspamd
On 2018-09-02 14:48:28 (+0100), dp.ma...@gmail.com wrote:
> My questions are as below.
> 1) In the History I noticed few transaction alert mails from my bank
> being rejected. How do I make the rspamd learn those as HAM from the
> History (like the feature in mailwatch on Mailscanner/spamassassin)?
> 2) Since mails are not stored locally and getting delivered elsewhere
> - how do I get some mails learned as SPAM?

In both cases, you'll have to feed the mesages to rspamc. You can run
rspamc on remote machines (with authentication).

The easiest way to do this if you use IMAP, is to let Sieve take care of
it. You can tell Sieve to run rspamc when a message moves from Junk to
INBOX (or another mailbox) or in the other around. Instructions for
doing this with Dovecot are here:

https://wiki2.dovecot.org/HowTo/AntispamWithSieve

There is an example for Rspamd on that wiki page.

> It would be a great feature if the mails are cached locally for few
> days and a learn feature (like mailwatch) were offered which would be
> make the spam learning super efficient.

For busy installations, that would require a lot of storage on the
Rspamd servers. There would also be privacy implications if you're
scanning email for others.

(The webui already has privacy implications, caching entire emails in
addition to header header information would not improve matters.)

Philip

--
Philip Paeps
Senior Reality Engineer
Ministry of Information

Vsevolod Stakhov

unread,
Sep 3, 2018, 11:32:56 AM9/3/18
to Philip Paeps, rspamd
Rspamd can store anonymous statistical tokens for all messages and use
those for post-learning. It is just not documented and not plugged into
WebUI.

dp.ma...@gmail.com

unread,
Sep 8, 2018, 9:59:52 AM9/8/18
to rspamd
Hello All,
Issue is my mails are not stored locally. the rspamd is just an inbound relay server delivering mail to different servers outside our domain. So I need a ham or spam learning tool to set-right wrongly tagged mail observed from history.

Regards/DP
Reply all
Reply to author
Forward
0 new messages