Topic: Moving spam to Junk folder not working
======== Required information ====
- iRedMail version (check /etc/iredmail-release): 0.9.3
- Linux/BSD distribution name and version: Debian 8
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): Mysql
- Web server (Apache or Nginx): Nginx
- Manage mail accounts with iRedAdmin-Pro? No
- Related log if you're reporting an issue:
====
Hi,
I am storing my emails to: /var/vmail/vmail1 and I am now using in front of my emails server the EFA ...
The EFA should send spam emails with "X-Spam-Status: Yes" to my email server, but I have never received any emails in this folder yet .... If I am checking from EFA, There is a certain numbers of spams ....
My dovecot.conf:
...
sieve_global_dir = /var/vmail/sieve
...
sieve_before = /var/vmail/vmail1/sieve/dovecot.sieve
Folders:
/var/vmail/vmail1# ls -l
total 16
drwx------ 4 vmail vmail 4096 sept. 12 2015 2015
-rwx------ 1 vmail vmail 116 nov. 13 11:22 dovecot.sieve
-rwx------ 1 vmail vmail 193 nov. 13 11:22 dovecot.svbin
drwx------ 13 vmail vmail 4096 mars 19 11:53 domain.ltd
And what in /var/vmail:
/var/vmail# ls -l
total 12
drwxr-xr-x 3 root root 4096 août 12 2015 backup
drwx------ 2 vmail vmail 4096 août 11 2015 sieve
drwx------ 4 vmail vmail 4096 nov. 13 11:22 vmail1
My dovecot.sieve config:
require ["fileinto"];
# rule:[Move Spam to Junk Folder]
if header :is "X-Spam-Status" "YES"
{
fileinto "Spam";
}
Did you see something wrong ?
Thx
----
Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.