1 (edited by giorgiolago 2009-11-30 09:01:19)

Topic: move mails which marked as SPAM into Junk folder Dont work [solved]

I read this faq:
http://www.iredmail.org/forum/topic365- … older.html

I followed the tutorial, most emails are not sent to the junk folder, which could be happening?

----

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

2

Re: move mails which marked as SPAM into Junk folder Dont work [solved]

I added another item in the FAQ moment ago, please try it:

  • Make sure your domain name is listed in /etc/amavisd.conf (RHEL/CentOS) or /etc/amavis/conf.d/50-user (Debian/Ubuntu). e.g.

@local_domains_maps = ['demo.iredmail.org', 'a.cn'];

3

Re: move mails which marked as SPAM into Junk folder Dont work [solved]

Also make sure that the user does not have sieve rules of his own (like "out of office", forward, filters and so on), because in this case, the server global default sieve rule is skipped.

4

Re: move mails which marked as SPAM into Junk folder Dont work [solved]

ZhangHuangbin wrote:

I added another item in the FAQ moment ago, please try it:

  • Make sure your domain name is listed in /etc/amavisd.conf (RHEL/CentOS) or /etc/amavis/conf.d/50-user (Debian/Ubuntu). e.g.

@local_domains_maps = ['demo.iredmail.org', 'a.cn'];

My configuration:

@local_domains_maps = ['email-server.fama.br', 'fama.br'];

Still does not work ... sad

5

Re: move mails which marked as SPAM into Junk folder Dont work [solved]

So look in  i /var/log/sieve.log see:


deliver(user@fama.br): Nov 22 11:13:19 Error: fopen(/var/vmail/sieve/dovecot.sieve) failed: Permission denied

Permission probleman in global sieve file ?

6

Re: move mails which marked as SPAM into Junk folder Dont work [solved]

webmail:~# ls -al /var/vmail/sieve/
total 24
drwx------  3 vmail vmail 4096 Out 21 19:38 .
drwx------  4 vmail vmail 4096 Out  6 21:00 ..
-rw-r--r--  1 root  root   111 Out 21 19:38 .dovecot.sieve
-rwx------  1 root  root  2023 Nov 26 02:43 dovecot.sieve

now:
webmail:~# chown vmail.vmail /var/vmail/sieve/dovecot.sieve

webmail:~# ls -al /var/vmail/sieve/
total 28
drwx------  3 vmail vmail 4096 Nov 28 17:19 .
drwx------  4 vmail vmail 4096 Out  6 21:00 ..
-rw-r--r--  1 root  root   111 Out 21 19:38 .dovecot.sieve
-rwx------  1 vmail vmail 2023 Nov 26 02:43 dovecot.sieve
-rw-------  1 vmail vmail  112 Nov 28 17:19 dovecot.sievec
-r-x------  1 vmail vmail 1138 Out  6 21:01 dovecot.sieve.sample
drwx------ 20 vmail vmail 4096 Nov 27 08:19 fama.br

I hope this work now rsrs