1

Topic: moving mail to spam

==== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====
- iRedMail version (check /etc/iredmail-release): 0.9.9
- Deployed with iRedMail Easy or the downloadable installer? Downloadable Installer
- Linux/BSD distribution name and version: Ubuntu 16.04
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): PGSQL
- Web server (Apache or Nginx): Apache
- Manage mail accounts with iRedAdmin-Pro? yes
- [IMPORTANT] Related original log or error message is required if you're experiencing an issue.
====

Please tell me how to turn off moving mails into Spam.
This happens even if mail is moved back to INBOX manually.

I want to completly turn off this span thing.

----

Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.

2

Re: moving mail to spam

Check file /var/vmail/sieve/dovecot.sieve, it has global sieve rule used to move detected spam to Junk folder.

3

Re: moving mail to spam

I already disabled it, but it does not help

cat /var/vmail/sieve/dovecot.sieve

require ["fileinto"];

# rule:[Move Spam to Junk Folder]
#if header :is "X-Spam-Flag" "YES"
#{
#    fileinto "Junk";
#}

4

Re: moving mail to spam

- Does this user have per-user sieve rules?
- Try to turn on debug mode in Dovecot and check why it's moved. FYI: https://docs.iredmail.org/debug.dovecot.html

5

Re: moving mail to spam

I turned off all sieve rules global and user. I turned on debug. I deleted the Junk folder. That was 2pm. Now 22pm Junk folder was recreated and 2 mails from yesterday are in junk folder.

dovecot.log says nothing about junk folder, exept that acl file is missing.

HELP!
I urgently need to get rid off this "feature".

6

Re: moving mail to spam

I wonder do you use any MUA (Outlook, Thunderbird, Apple Mail.app, etc) to access mailbox? Does your MUA filter spams and move spams to Junk automatically?

Junk folder will be created automatically, this is normal. But no the automatically moving email behaviour.