[Rspamd-Users] Fwd: Fwd: Spamtrap not learning spam

Milan Eckardt m.eckardt at secmailpro.eu
Mon Oct 12 21:16:20 UTC 2020


Okay guys, after a bit of experimenting I have successfully gotten 
rspamd to do bayes learning with spamtrap module. Apparently, if you set 
any action, passthrough result is set and bayes learning is disabled. 
This is not in the documentation. In fact, the documentation gives an 
example where bayes learning is set to true and "no action" is set. This 
does not work with rspamd 2.6, at least on my setup.

https://rspamd.com/doc/modules/spamtrap.html

Regards,

Miloslav

Am 12.10.2020 um 22:50 schrieb Milan Eckardt via Users:
> 3rd time is the charm... Somehow the mail was still scrambled, but now 
> it is readable.
>
> Regards,
>
> Miloslav
>
>
>
> -------- Weitergeleitete Nachricht --------
> Betreff:     [Rspamd-Users] Fwd: Spamtrap not learning spam
> Datum:     Mon, 12 Oct 2020 22:46:29 +0200
> Von:     Milan Eckardt via Users <users at lists.rspamd.com>
> Antwort an:     User questions <users at lists.rspamd.com>
> An:     users at lists.rspamd.com
> Kopie (CC):     Milan Eckardt <m.eckardt at secmailpro.eu>
>
>
>
> I have noticed the mail was not shown properly on my android e-mail 
> client, propably because of the map file definition. Please take a 
> look at the whole mail and see if you have an idea what is going 
> wrong. Maybe I am missing something? The documentation clearly says 
> Spamtrap module should learn bayes, but the bayes learns are not 
> increasing.
>
> Thanks!
>
>
>
> -------- Weitergeleitete Nachricht --------
> Betreff: [Rspamd-Users] Spamtrap not learning spam
> Datum: Sun, 11 Oct 2020 22:53:09 +0200
> Von: Miloslav via Users <users at lists.rspamd.com>
> Antwort an: User questions <users at lists.rspamd.com>
> An: users at lists.rspamd.com
> Kopie (CC): m.eckardt at secmailpro.eu
>
>
>
> Hello,
>
> this is a new rspamd setup, not a lot of mails there. I have setup 
> spamtrap module with this configuration:
>
> learn_spam = true;
> enabled = true;
> action = "no action";
> score = 1.0;
> map = <path_to_map_file_as_in_documentation>
>
> I can see in the WebUI that 'SPAMTRAP' Symbol is present in messages 
> deliverd to my spamtrap mail, but bayes learns are not increasing. 
> What am I missing?
>
> Regards,
>
> Tim
>
> This is my rspamd.log with debug module spamtrap:
>
> 2020-10-11 22:28:58 #14557(normal) <61ddee>; task; 
> rspamd_redis_connected: skip obtaining bayes tokens for BAYES_HAM of 
> classifier bayes: not enough learns 1; 200 required
> 2020-10-11 22:28:58 #14557(normal) <61ddee>; task; 
> rspamd_redis_connected: skip obtaining bayes tokens for BAYES_SPAM of 
> classifier bayes: not enough learns 4; 200 required
> 2020-10-11 22:28:58 #14557(normal) <61ddee>; task; 
> rspamd_task_process: learn error: Cannot learn statistics when 
> passthrough result has been set; not classified
> 2020-10-11 22:28:58 #14557(normal) <61ddee>; task; 
> rspamd_task_write_log: id: 
> <406047029.144714.1602448130221 at email.df.eu>, qid: <AF8893F62F>, ip: 
> 80.67.31.31, from: <milan at eckardtson.de>, (default: F (no action): 
> [16.40/15.00] 
> [URIBL_BLACK(7.00){mummywork.com:email;},ABUSE_SURBL(5.50){mummywork.com:email;},HTML_SHORT_LINK_IMG_1(2.00){},AUTH_NA(1.00){},SPAMTRAP(1.00){smp_learner at secmailpro.eu;},MIME_GOOD(-0.10){multipart/alternative;text/plain;},ARC_NA(0.00){},ARC_SIGNED(0.00){secmailpro.eu:s=2020:i=1;},ASN(0.00){asn:8972, 
> ipnet:80.67.16.0/20, 
> country:DE;},DMARC_NA(0.00){eckardtson.de;},FROM_EQ_ENVFROM(0.00){},FROM_HAS_DN(0.00){},HAS_XOIP(0.00){},HAS_X_PRIO_THREE(0.00){3;},MIME_TRACE(0.00){0:+;1:+;2:~;},RCPT_COUNT_ONE(0.00){1;},RCVD_COUNT_TWO(0.00){2;},RCVD_TLS_ALL(0.00){},RCVD_VIA_SMTP_AUTH(0.00){},R_DKIM_NA(0.00){},R_SPF_NA(0.00){no 
> SPF record;},TO_DN_EQ_ADDR_ALL(0.00){},TO_MATCH_ENVRCPT_ALL(0.00){}]), 
> len: 4643, time: 1235.755ms, dns req: 34, digest: 
> <77bcf7df87b979f6904249de3f094e21>, rcpts: 
> <smp_learner at secmailpro.eu>, mime_rcpts: <smp_learner at secmailpro.eu>, 
> forced: no action "message accepted"; score=nan (set by spamtrap)
> 2020-10-11 22:28:58 #14557(normal) <61ddee>; task; 
> rspamd_protocol_http_reply: regexp statistics: 0 pcre regexps scanned, 
> 3 regexps matched, 187 regexps total, 81 regexps cached, 0B scanned 
> using pcre, 7.48KiB scanned total
>


More information about the Users mailing list