diff --git a/howto/move.detected.spam.to.junk.folder.md b/howto/move.detected.spam.to.junk.folder.md new file mode 100644 index 00000000..cc342b8b --- /dev/null +++ b/howto/move.detected.spam.to.junk.folder.md @@ -0,0 +1,39 @@ +# Move detected spam to Junk folder + +To move detected spam to user's Junk folder, you need to enable global sieve +script in Dovecot. + +You can find sample sieve rule file `/var/vmail/sieve/dovecot.sieve.sample` +if you chose `/var/vmail` to store mailboxes during iRedMail installation. +If you have a custom mailbox storage directory, the sample sieve rule file +should be `sieve/dovecot.sieve.sample` under that directory. If you cannot +find it, you can still download one from iRedMail project: +[here](https://bitbucket.org/zhb/iredmail/src/default/iRedMail/samples/dovecot/dovecot.sieve) + +This file must be owned by user `vmail` and group `vmail`, permission `0500`. + +Now open Dovecot config file `/etc/dovecot/dovecot.conf` (on Linux/OpenBSD) +or `/usr/local/etc/dovecot/dovecot.conf` (FreeBSD), find parameter `sieve_before =` +like below: + +``` +# Part of file: /etc/dovecot/dovecot.conf + +plugin { + ... + #sieve_before = + ... +} +``` + +Uncomment it and set its value to `/var/vmail/sieve/dovecot.sieve` (Note: +use the correct path on your server). + +``` + sieve_before = /var/vmail/sieve/dovecot.sieve +``` + +Restart Dovecot service to enable it. + +Note: we don't use `sieve_default =` for global sieve script, because it +will be ignored if users have their own personal sieve rule files. diff --git a/html/index.html b/html/index.html index 591d96cb..33f0e13f 100644 --- a/html/index.html +++ b/html/index.html @@ -62,6 +62,7 @@
  • LDAP: User mail forwarding.
  • Mailbox sharing (Sharing IMAP folder with other users)
  • Monitor incoming and outgoing mails with BCC
  • +
  • Move detected spam to Junk folder
  • Pipe incoming email for certain user to external script
  • Force Dovecot to recalculate mailbox quota
  • Reset user password
  • diff --git a/html/move.detected.spam.to.junk.folder.html b/html/move.detected.spam.to.junk.folder.html new file mode 100644 index 00000000..0f818b4c --- /dev/null +++ b/html/move.detected.spam.to.junk.folder.html @@ -0,0 +1,53 @@ + + + + Move detected spam to Junk folder + + + + +

    Move detected spam to Junk folder

    +

    To move detected spam to user's Junk folder, you need to enable global sieve +script in Dovecot.

    +

    You can find sample sieve rule file /var/vmail/sieve/dovecot.sieve.sample +if you chose /var/vmail to store mailboxes during iRedMail installation. +If you have a custom mailbox storage directory, the sample sieve rule file +should be sieve/dovecot.sieve.sample under that directory. If you cannot +find it, you can still download one from iRedMail project: +here

    +

    This file must be owned by user vmail and group vmail, permission 0500.

    +

    Now open Dovecot config file /etc/dovecot/dovecot.conf (on Linux/OpenBSD) +or /usr/local/etc/dovecot/dovecot.conf (FreeBSD), find parameter sieve_before = +like below:

    +
    # Part of file: /etc/dovecot/dovecot.conf
    +
    +plugin {
    +    ...
    +    #sieve_before = 
    +    ...
    +}
    +
    + +

    Uncomment it and set its value to /var/vmail/sieve/dovecot.sieve (Note: +use the correct path on your server).

    +
        sieve_before = /var/vmail/sieve/dovecot.sieve
    +
    + +

    Restart Dovecot service to enable it.

    +

    Note: we don't use sieve_default = for global sieve script, because it +will be ignored if users have their own personal sieve rule files.

    Document published under a CC BY-ND 3.0 license. If you found something wrong, please do contact us to fix it. + + + \ No newline at end of file diff --git a/html/upgrade.iredmail.0.8.7-0.9.0.html b/html/upgrade.iredmail.0.8.7-0.9.0.html index f2b2074d..0df82585 100644 --- a/html/upgrade.iredmail.0.8.7-0.9.0.html +++ b/html/upgrade.iredmail.0.8.7-0.9.0.html @@ -246,35 +246,7 @@ CRON=1

    [OPTIONAL] Enable global sieve script in Dovecot to move spam to Junk folder by default

    Note: this is an optional step.

    -

    To move detected spam to user's Junk folder, you need to enable global sieve -script in Dovecot.

    -

    You can find sample sieve rule file /var/vmail/sieve/dovecot.sieve.sample -if you chose /var/vmail to store mailboxes during iRedMail installation. -If you have a custom mailbox storage directory, the sample sieve rule file -should be sieve/dovecot.sieve.sample under that directory. If you cannot -find it, you can still download one from iRedMail project: -here

    -

    This file must be owned by user vmail and group vmail, permission 0500.

    -

    Now open Dovecot config file /etc/dovecot/dovecot.conf (on Linux/OpenBSD) -or /usr/local/etc/dovecot/dovecot.conf (FreeBSD), find parameter sieve_before = -like below:

    -
    # Part of file: /etc/dovecot/dovecot.conf
    -
    -plugin {
    -    ...
    -    #sieve_before = 
    -    ...
    -}
    -
    - -

    Uncomment it and set its value to /var/vmail/sieve/dovecot.sieve (Note: -use the correct path on your server).

    -
        sieve_before = /var/vmail/sieve/dovecot.sieve
    -
    - -

    Restart Dovecot service to enable it.

    -

    Note: we don't use sieve_default = for global sieve script, because it -will be ignored if users have their own personal sieve rule files.

    +

    Please follow our separate tutorial here.

    OpenLDAP backend special

    Fix improper LDAP query command in domain transport query file

    Please open file /etc/postfix/ldap/transport_maps_domain.cf (on Linux/OpenBSD) diff --git a/upgrade/0-upgrade.iredmail.0.8.7-0.9.0.md b/upgrade/0-upgrade.iredmail.0.8.7-0.9.0.md index 40561535..ee421aad 100644 --- a/upgrade/0-upgrade.iredmail.0.8.7-0.9.0.md +++ b/upgrade/0-upgrade.iredmail.0.8.7-0.9.0.md @@ -223,43 +223,7 @@ CRON=1 Note: this is an optional step. -To move detected spam to user's Junk folder, you need to enable global sieve -script in Dovecot. - -You can find sample sieve rule file `/var/vmail/sieve/dovecot.sieve.sample` -if you chose `/var/vmail` to store mailboxes during iRedMail installation. -If you have a custom mailbox storage directory, the sample sieve rule file -should be `sieve/dovecot.sieve.sample` under that directory. If you cannot -find it, you can still download one from iRedMail project: -[here](https://bitbucket.org/zhb/iredmail/src/default/iRedMail/samples/dovecot/dovecot.sieve) - -This file must be owned by user `vmail` and group `vmail`, permission `0500`. - -Now open Dovecot config file `/etc/dovecot/dovecot.conf` (on Linux/OpenBSD) -or `/usr/local/etc/dovecot/dovecot.conf` (FreeBSD), find parameter `sieve_before =` -like below: - -``` -# Part of file: /etc/dovecot/dovecot.conf - -plugin { - ... - #sieve_before = - ... -} -``` - -Uncomment it and set its value to `/var/vmail/sieve/dovecot.sieve` (Note: -use the correct path on your server). - -``` - sieve_before = /var/vmail/sieve/dovecot.sieve -``` - -Restart Dovecot service to enable it. - -Note: we don't use `sieve_default =` for global sieve script, because it -will be ignored if users have their own personal sieve rule files. +Please follow our separate tutorial [here](./move.detected.spam.to.junk.folder.html). ## OpenLDAP backend special