# Problème de configuration de Dovecot + Sieve

**URL:** <https://www.debian-fr.org/t/probleme-de-configuration-de-dovecot-sieve/88774>\
**Category:** Support Debian\
**Tags:** debian, dovecot\
**Created:** [Septembre 11, 2023, 10:15 UTC](https://www.debian-fr.org/t/probleme-de-configuration-de-dovecot-sieve/88774 "2023-09-11T10:15:44Z")\
**Posts on this page:** 14\
**Page:** 1

<div class="post-metadata">

**Author:** ![eya-tr](https://www.debian-fr.org/user_avatar/www.debian-fr.org/eya-tr/32/13014_2.png) [@eya-tr](https://www.debian-fr.org/u/eya-tr)\
**Post date:** [Septembre 11, 2023, 10:15 UTC](https://www.debian-fr.org/t/probleme-de-configuration-de-dovecot-sieve/88774/1 "2023-09-11T10:15:44Z")

</div>

Bonjour, je suis en train d’utiliser Debian 11 pour configurer un serveur de messagerie mais lorsque j’ajoute

```nohighlight
protocol lda {
  mail_plugins = $mail_plugins sieve
}

```

j’ai eu cet erreur

```nohighlight
Couldn't load required plugin /usr/lib/dovecot/modules/lib90_sieve_plugin.so: dlopen() failed: /usr/lib/dovecot/modules/lib90_sieve_plugin.so: undefined symbol: mail_deliver_ctx_get_log_var_expand_table 

```

j’ai bien vérifier l’emplacement de fichier et les autorisation.

---

<div class="post-metadata">

**Author:** ![Zargos](https://www.debian-fr.org/user_avatar/www.debian-fr.org/zargos/32/10889_2.png) [@Zargos](https://www.debian-fr.org/u/Zargos)\
**Post date:** [Septembre 11, 2023, 10:53 UTC](https://www.debian-fr.org/t/probleme-de-configuration-de-dovecot-sieve/88774/2 "2023-09-11T10:53:19Z")

</div>

Bonjour,  
Pourquoi Debian 11 et pas Debian 12?

---

<div class="post-metadata">

**Author:** ![anon70622873](https://www.debian-fr.org/letter_avatar_proxy/v4/letter/a/278dde/32.png) [@anon70622873](https://www.debian-fr.org/u/anon70622873)\
**Post date:** [Septembre 11, 2023, 1:41 UTC](https://www.debian-fr.org/t/probleme-de-configuration-de-dovecot-sieve/88774/3 "2023-09-11T13:41:39Z")

</div>

Vérifié comment ? Il faut donner les commandes utilisées et leur retour.  
Et _sieve_ est correctement installé ? Retour de :

```auto
apt policy dovecot-sieve

```

Note bien que la directive indiquée est nécessaire mais pas suffisante pour faire fonctionner dovecot sieve.

---

<div class="post-metadata">

**Author:** ![eya-tr](https://www.debian-fr.org/user_avatar/www.debian-fr.org/eya-tr/32/13014_2.png) [@eya-tr](https://www.debian-fr.org/u/eya-tr)\
**Post date:** [Septembre 11, 2023, 2:23 UTC](https://www.debian-fr.org/t/probleme-de-configuration-de-dovecot-sieve/88774/4 "2023-09-11T14:23:56Z")

</div>

Je suis obligé à utiliser Debian 11

---

<div class="post-metadata">

**Author:** ![eya-tr](https://www.debian-fr.org/user_avatar/www.debian-fr.org/eya-tr/32/13014_2.png) [@eya-tr](https://www.debian-fr.org/u/eya-tr)\
**Post date:** [Septembre 11, 2023, 2:25 UTC](https://www.debian-fr.org/t/probleme-de-configuration-de-dovecot-sieve/88774/5 "2023-09-11T14:25:52Z")

</div>

j’ai eu l’erreur lorsque j’ai accéder au filtre dans Rainloop

---

<div class="post-metadata">

**Author:** ![anon70622873](https://www.debian-fr.org/letter_avatar_proxy/v4/letter/a/278dde/32.png) [@anon70622873](https://www.debian-fr.org/u/anon70622873)\
**Post date:** [Septembre 11, 2023, 2:28 UTC](https://www.debian-fr.org/t/probleme-de-configuration-de-dovecot-sieve/88774/6 "2023-09-11T14:28:12Z")

</div>

Ce n’est pas ce que je te demande…  
Montre-nous le retour de la commande indiquée précédemment et l’intégralité de ta configuration sieve (fichiers modifiés et directives concernant sieve).

---

<div class="post-metadata">

**Author:** ![eya-tr](https://www.debian-fr.org/user_avatar/www.debian-fr.org/eya-tr/32/13014_2.png) [@eya-tr](https://www.debian-fr.org/u/eya-tr)\
**Post date:** [Septembre 11, 2023, 2:35 UTC](https://www.debian-fr.org/t/probleme-de-configuration-de-dovecot-sieve/88774/8 "2023-09-11T14:35:56Z")

</div>

```nohighlight
Installé : 1:2.3.13+dfsg1-2+deb11u1
Candidat : 1:2.3.13+dfsg1-2+deb11u1

```

---

<div class="post-metadata">

**Author:** ![anon70622873](https://www.debian-fr.org/letter_avatar_proxy/v4/letter/a/278dde/32.png) [@anon70622873](https://www.debian-fr.org/u/anon70622873)\
**Post date:** [Septembre 11, 2023, 2:57 UTC](https://www.debian-fr.org/t/probleme-de-configuration-de-dovecot-sieve/88774/9 "2023-09-11T14:57:08Z")

</div>

Ok et la config de sieve ? Je ne vais te redemander les infos à chaque message…

Donne le retour complet de :

```auto
dovecot -n

```

Pour déboguer toi-même : [Pigeonhole Sieve Troubleshooting — Dovecot documentation](https://doc.dovecot.org/configuration_manual/sieve/troubleshooting/)

---

<div class="post-metadata">

**Author:** ![eya-tr](https://www.debian-fr.org/user_avatar/www.debian-fr.org/eya-tr/32/13014_2.png) [@eya-tr](https://www.debian-fr.org/u/eya-tr)\
**Post date:** [Septembre 11, 2023, 3:05 UTC](https://www.debian-fr.org/t/probleme-de-configuration-de-dovecot-sieve/88774/10 "2023-09-11T15:05:19Z")

</div>

```nohighlight
2.3.13 (89f716dc2): /etc/dovecot/dovecot.conf
# Pigeonhole version 0.5.13 (cdd19fe3)
auth_mechanisms = plain login
lda_mailbox_autocreate = yes
lda_mailbox_autosubscribe = yes
mail_location = maildir:~/Maildir
mail_plugins = " sieve"
mail_privileged_group = mail
managesieve_notify_capability = mailto
managesieve_sieve_capability = fileinto reject envelope encoded-character vacation subaddress comparator-i;ascii-numeric relational regex imap4flags copy include variables body enotify environment mailbox date index ihave duplicate mime foreverypart extracttext
namespace inbox {
  inbox = yes
  location =
  mailbox Drafts {
    special_use = \Drafts
  }
  mailbox Junk {
    special_use = \Junk
  }
  mailbox Sent {
    special_use = \Sent
  }
  mailbox "Sent Messages" {
    special_use = \Sent
  }
  mailbox Trash {
    special_use = \Trash
  }
  prefix =
}
passdb {
  driver = pam
}
plugin {
  sieve = file:~/.sieve;active=~/.dovecot.sieve
  sieve_default = /var/lib/dovecot/sieve/default.sieve
}
protocols = " imap lmtp sieve pop3"
service auth {
  unix_listener /var/spool/postfix/private/auth {
    group = postfix
    mode = 0666
    user = postfix
  }
}
ssl_cert = </etc/dovecot/private/dovecot.pem
ssl_client_ca_dir = /etc/ssl/certs
ssl_dh = # hidden, use -P to show it
ssl_key = # hidden, use -P to show it
userdb {
  driver = passwd
}
protocol lmtp {
  mail_plugins = " sieve"
}
protocol imap {
  mail_plugins =
}
protocol lda {
  mail_plugins = " sieve"
}

```

---

<div class="post-metadata">

**Author:** ![anon70622873](https://www.debian-fr.org/letter_avatar_proxy/v4/letter/a/278dde/32.png) [@anon70622873](https://www.debian-fr.org/u/anon70622873)\
**Post date:** [Septembre 11, 2023, 3:33 UTC](https://www.debian-fr.org/t/probleme-de-configuration-de-dovecot-sieve/88774/11 "2023-09-11T15:33:53Z")

</div>

À première vue je pense qu’il manque [imap\_sieve](https://doc.dovecot.org/configuration_manual/sieve/plugins/imapsieve/) et que le service managesieve (\*) n’est pas configuré pour que cela fonctionne pour différents utilisateurs avec un client type webmail ou un courrielleur type Thunderbird.

(\*) je ne trouve pas [la doc en ligne](https://doc.dovecot.org/admin_manual/pigeonhole_managesieve_server/) mais c’est dans le fichier /etc/dovecot/conf.d/20-managesieve.conf. À condition bien sûr que le paquet dovecot-managesieved soit installé.

---

<div class="post-metadata">

**Author:** ![eya-tr](https://www.debian-fr.org/user_avatar/www.debian-fr.org/eya-tr/32/13014_2.png) [@eya-tr](https://www.debian-fr.org/u/eya-tr)\
**Post date:** [Septembre 11, 2023, 3:47 UTC](https://www.debian-fr.org/t/probleme-de-configuration-de-dovecot-sieve/88774/12 "2023-09-11T15:47:16Z")

</div>

Merci

---

<div class="post-metadata">

**Author:** ![anon70622873](https://www.debian-fr.org/letter_avatar_proxy/v4/letter/a/278dde/32.png) [@anon70622873](https://www.debian-fr.org/u/anon70622873)\
**Post date:** [Septembre 11, 2023, 3:54 UTC](https://www.debian-fr.org/t/probleme-de-configuration-de-dovecot-sieve/88774/13 "2023-09-11T15:54:26Z")

</div>

De rien, mais surtout dis-nous si cela a fonctionné 😉

---

<div class="post-metadata">

**Author:** ![eya-tr](https://www.debian-fr.org/user_avatar/www.debian-fr.org/eya-tr/32/13014_2.png) [@eya-tr](https://www.debian-fr.org/u/eya-tr)\
**Post date:** [Septembre 11, 2023, 3:55 UTC](https://www.debian-fr.org/t/probleme-de-configuration-de-dovecot-sieve/88774/14 "2023-09-11T15:55:49Z")

</div>

non il n’a pas fonctionné 😒

---

<div class="post-metadata">

**Author:** ![anon70622873](https://www.debian-fr.org/letter_avatar_proxy/v4/letter/a/278dde/32.png) [@anon70622873](https://www.debian-fr.org/u/anon70622873)\
**Post date:** [Septembre 12, 2023, 6:41 UTC](https://www.debian-fr.org/t/probleme-de-configuration-de-dovecot-sieve/88774/15 "2023-09-12T06:41:54Z")

</div>

Il faut aussi regarder la configuration de ton MTA (postfix, exim ?) pour savoir comment les courriels sont redirigés vers dovecot (lmtp ou lda ?).

Je me permet d’ajouter que la configuration complète d’un serveur de courriel demande de solides compétences d’adminsys. Il est rare que des débutants arrivent à mettre cela en place en suivant des tutos plus ou moins bien faits.
