1

Topic: [SOLVED] Folder for Spam

I have iRedOS 0.6 on CentOS 5.5 -- MySQL

¿I can configure the iredmail for that spam to go to spam folder for all users?
In order not to configure each user account to move the spam to the spam folder.

Because I can set my own count through a filter to move spam to the spam folder, but for hundreds of accounts would be a long time.

Any ideas?
Thanks!

==== Provide basic information to help troubleshoot ====
- iRedMail version:
- Linux/BSD distribution name and version:
- Any related log? Log is helpful for troubleshooting.
====

----

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

2

Re: [SOLVED] Folder for Spam

tuxtux wrote:

I can configure the iredmail for that spam to go to spam folder for all users?

In /etc/dovecot.conf, there's a setting "sieve_global_path = /var/vmail/sieve/dovecot.sieve", and iRedMail has a sample file ready for your use: /var/vmail/sieve/dovecot.sieve.sample". Simply copy it to "dovecot.sieve" should be enough, make sure file owner is "vmail:vmail", file permission is 0700.

That's all.

3

Re: [SOLVED] Folder for Spam

ZhangHuangbin wrote:
tuxtux wrote:

I can configure the iredmail for that spam to go to spam folder for all users?

In /etc/dovecot.conf, there's a setting "sieve_global_path = /var/vmail/sieve/dovecot.sieve", and iRedMail has a sample file ready for your use: /var/vmail/sieve/dovecot.sieve.sample". Simply copy it to "dovecot.sieve" should be enough, make sure file owner is "vmail:vmail", file permission is 0700.
That's all.

Thanks for responding.
dovecot.sieve.example file exists, is the only file in /var/vmail/sieve/

I did the following:

   27  cp dovecot.sieve.sample dovecot.sieve
   28  ls
To specify the path as sieve_global_path = /var/vmail/sieve/dovecot.siev

   29   chmod 0700 -R dovecot.sieve
   30  chown -R vmail:vmail dovecot.sieve

   31  /etc/init.d/postfix restart
   32  /etc/init.d/amavisd restart
   33  /etc/init.d/httpd restart
but...
It does not work completely. It works for my first domain created. For my other domains does not work, not detected as spam.
Use the following to verify the operation of the filter.

XJS*C4JDBQADN1.NSBN3*2IDNEN*GTUBE-STANDARD-ANTI-UBE-TEST-EMAIL*C.34X

If sent to Junk, but not for all my domains, not detected as spam in my other domains, only the first domain.

The changes I made, are they correct?
Thank you!

4

Re: [SOLVED] Folder for Spam

tuxtux wrote:

It works for my first domain created.

You have to list all your mail domains in Amavisd config file, like this:

@local_domains_maps = ['first_domain.com', 'second_domain.com', ...];

Restarting Amavisd service is required.

To make it automate, try Amavisd command "read_hash". Reference:
http://code.google.com/p/iredmail/issues/detail?id=63

5

Re: [SOLVED] Folder for Spam

ZhangHuangbin wrote:

@local_domains_maps = ['first_domain.com', 'second_domain.com', ...];
Restarting Amavisd service is required.

Wow!
Thanks it works