# Rainloop spam sorting doesn't seem to work

**URL:** <https://forum.yunohost.org/t/rainloop-spam-sorting-doesnt-seem-to-work/12088>\
**Category:** Support apps\
**Tags:** english\
**Created:** [July 10, 2020, 10:18am UTC](https://forum.yunohost.org/t/rainloop-spam-sorting-doesnt-seem-to-work/12088 "2020-07-10T10:18:46Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![ImaCrea](https://forum.yunohost.org/user_avatar/forum.yunohost.org/imacrea/32/2089_2.png) [@ImaCrea](https://forum.yunohost.org/u/ImaCrea)\
**Post date:** [July 10, 2020, 10:18am UTC](https://forum.yunohost.org/t/rainloop-spam-sorting-doesnt-seem-to-work/12088/1 "2020-07-10T10:18:47Z")

</div>

Hello all,  
thank you for this wonderful platform. We’ve been using it for a while now 🙂

At MailTape we’re receving quite a lot of spam recently on our public email. It’s more or less the same content and we take care to mark it as “spam” in rainloop but I wonder if it’s helping in anything as we keep receiving them. Got any idea here to help us with sorting that spam please?

Cheers 😺

---

<div class="post-metadata">

**Author:** ![Limezy](https://forum.yunohost.org/user_avatar/forum.yunohost.org/limezy/32/4983_2.png) [@Limezy](https://forum.yunohost.org/u/Limezy)\
**Post date:** [July 13, 2020, 2:36am UTC](https://forum.yunohost.org/t/rainloop-spam-sorting-doesnt-seem-to-work/12088/2 "2020-07-13T02:36:55Z")

</div>

Also wondering the same thing since a long time.  
If I had the technical knowledge I would try to look at Rspamd logs to check if any action is triggered by moving an email to the spam folder ?

---

<div class="post-metadata">

**Author:** ![Aleks](https://forum.yunohost.org/user_avatar/forum.yunohost.org/aleks/32/1704_2.png) [@Aleks](https://forum.yunohost.org/u/Aleks)\
**Post date:** [July 13, 2020, 5:07pm UTC](https://forum.yunohost.org/t/rainloop-spam-sorting-doesnt-seem-to-work/12088/3 "2020-07-13T17:07:47Z")

</div>

I think there’s still work to be done in the postfix/dovecot config to enable spam sorting I believe … Would be interested if somebody has some experience with this (or maybe checking some tutorials online is enough idk)

---

<div class="post-metadata">

**Author:** ![rndmh3ro](https://forum.yunohost.org/user_avatar/forum.yunohost.org/rndmh3ro/32/979_2.png) [@rndmh3ro](https://forum.yunohost.org/u/rndmh3ro)\
**Post date:** [July 18, 2020, 7:35am UTC](https://forum.yunohost.org/t/rainloop-spam-sorting-doesnt-seem-to-work/12088/4 "2020-07-18T07:35:23Z")

</div>

For me spam training works with rspamd.

The relevant config (created by yunohost) in `/etc/dovecot/dovecot.conf`:

```auto
plugin {
  antispam_debug_target = syslog
  antispam_verbose_debug = 0
  antispam_backend = pipe
  antispam_spam = Junk;SPAM
  antispam_trash = Trash
  antispam_pipe_program = /usr/bin/rspamc
  antispam_pipe_program_args = -h;localhost:11334;-P;q1
  antispam_pipe_program_spam_arg = learn_spam
  antispam_pipe_program_notspam_arg = learn_ham
}

```

The line ` antispam_spam = Junk;SPAM` means that to learn messages as Spam, they have to be in the folders “Junk” or “SPAM”.

Logs in `/var/log/rspamd/rspamd.log`:

```auto
2020-07-18 09:16:15 #2353(controller) <d90c6f>; csession; rspamd_controller_check_password: allow unauthorized connection from a trusted IP 127.0.0.1
2020-07-18 09:16:15 #2353(controller) <d90c6f>; csession; rspamd_message_parse: loaded message; id: <A5FA0AC7-739C-446E-870A-43A7E4E2C108@example.com>; queue-id: <undef>; size: 62824; checksum: <22d1e9b2e3d86b6673b91ae9d4adda2c>
2020-07-18 09:16:15 #2353(controller) <d90c6f>; csession; rspamd_mime_part_detect_language: detected part language: de
2020-07-18 09:16:15 #2353(controller) <d90c6f>; csession; rspamd_controller_learn_fin_task: <127.0.0.1> learned message as ham: A5FA0AC7-739C-446E-870A-43A7E4E2C108@example.com

```

---

<div class="post-metadata">

**Author:** ![system](https://forum.yunohost.org/uploads/default/original/2X/f/f59fe8e3ee6b100b4f574d30d6e30479c68b89f0.png) [@system](https://forum.yunohost.org/u/system)\
**Post date:** [August 2, 2020, 7:35am UTC](https://forum.yunohost.org/t/rainloop-spam-sorting-doesnt-seem-to-work/12088/5 "2020-08-02T07:35:28Z")

</div>

Closed on August 2, 2020, 7:35am UTC

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.
