Dovecot nastavení SPAMU

Postup pro Zentyal 5.0

  1. ověříme si cestu k souboru default.sieve, otevřeme soubor /etc/dovecot/dovecot.conf a najdeme sekci “Plugin settings”, hledáme údaj sieve_global_path nebo sieve_default
  2. soubor default.sieve je v Zentyal 5.0 umístěn v /var/vmail/default.sieve
  3. otevřeme tento soubor a vložíme následující kód
    require "fileinto";
    if header :comparator "i;ascii-casemap" :contains "Subject" "==SPAM==" {
    fileinto "Spam";
    stop;}
  4. dále vytvoříme soubor /var/vmail/<mail domain>/<user email>/.dovecot.sieve a vložíme do něj následující kód
    require "fileinto";
    if header :comparator "i;ascii-casemap" :contains "Subject" "==SPAM==" {
    fileinto "Spam";
    stop;
    }
  5. vytvořeným nebo modifikovaným souborům nastavíme práva:
    chown ebox:ebox /var/vmail/default.sieve
    chmod 0644 /var/vmail/default.sieve
    chown ebox:ebox /var/vmail/<mail domain>/<user email>/.dovecot.sieve
    chmod 0600 /var/vmail/<mail domain>/<user email>/.dovecot.sieve
  6. nakonec restartujeme dovecot

Napsat komentář

Vaše e-mailová adresa nebude zveřejněna. Vyžadované informace jsou označeny *