Dovecot » Historique » Version 7
Patrice Nadeau, 2015-06-21 17:00
| 1 | 5 | Patrice Nadeau | h1. Dovecot |
|---|---|---|---|
| 2 | 1 | Patrice Nadeau | |
| 3 | 3 | Patrice Nadeau | > Issue : #17 |
| 4 | 1 | Patrice Nadeau | |
| 5 | Serveur de courriel POP/IMAP. |
||
| 6 | |||
| 7 | http://www.dovecot.org/ |
||
| 8 | |||
| 9 | 5 | Patrice Nadeau | ---- |
| 10 | |||
| 11 | {{toc}} |
||
| 12 | |||
| 13 | 1 | Patrice Nadeau | Les fichiers de configuration sont : |
| 14 | 2 | Patrice Nadeau | * _/etc/dovecot/dovecot.conf_ |
| 15 | |||
| 16 | 5 | Patrice Nadeau | h2. Installation |
| 17 | 3 | Patrice Nadeau | |
| 18 | 2 | Patrice Nadeau | <pre><code class="bash"> |
| 19 | zypper install dovecot |
||
| 20 | 6 | Patrice Nadeau | systemctl enable dovecot.service |
| 21 | systemctl start dovecot.service |
||
| 22 | 7 | Patrice Nadeau | yast firewall services add service=service:dovecot zone=EXT |
| 23 | 3 | Patrice Nadeau | </code></pre> |
| 24 | |||
| 25 | Pour utiliser un mot de passe non encrypté, ajouter/modifier dans _/etc/dovecot/conf.d/10-auth.conf_ : |
||
| 26 | <pre><code class="bash"> |
||
| 27 | disable_plaintext_auth = no |
||
| 28 | </code></pre> |
||
| 29 | |||
| 30 | 5 | Patrice Nadeau | h2. Sécurité |
| 31 | 3 | Patrice Nadeau | |
| 32 | Pour utiliser l’encryption |
||
| 33 | Dans le répertoire _/usr/share/doc/packages/dovecot_ |
||
| 34 | # Modifier le fichier _dovecot-openssl.cnf_ |
||
| 35 | # Exécuter le script _mkcert.sh_ |
||
| 36 | |||
| 37 | Modifier le fichier _/etc/dovecot/conf.d/10-ssl.conf_ |
||
| 38 | <pre><code class="bash"> |
||
| 39 | ssl=yes |
||
| 40 | ssl_cert = </etc/ssl/certs/dovecot.pem |
||
| 41 | ssl_key = </etc/ssl/private/dovecot.pem |
||
| 42 | </code></pre> |
||
| 43 | |||
| 44 | Pour activer l’authentification PAM (utilisateurs locaux), ajouter dans _/etc/pam.d/dovevcot_ : |
||
| 45 | <pre><code class="bash"> |
||
| 46 | auth required pam_unix.so nullok |
||
| 47 | account required pam_unix.so |
||
| 48 | 1 | Patrice Nadeau | </code></pre> |
| 49 | 4 | Patrice Nadeau | |
| 50 | 5 | Patrice Nadeau | h2. Test |
| 51 | 4 | Patrice Nadeau | |
| 52 | Ces tests se font à la ligne de commandes d’une machine Windows ou GNU/Linux. |
||
| 53 | * SMTP :telnet serveur 25 |
||
| 54 | * Pop : telnet serveur 110 |
||
| 55 | * IMAP : telnet serveur 143 |
||
| 56 | |||
| 57 | Pour créer une boite de courriel, on doit créer un compte utilisateur à ce nom sur le serveur (PAM). |
||
| 58 | À partir du serveur : |
||
| 59 | <pre><code class="bash"> |
||
| 60 | useradd usager |
||
| 61 | passwd usager |
||
| 62 | </code></pre> |
||
| 63 | |||
| 64 | 5 | Patrice Nadeau | h2. Dépannage |
| 65 | 4 | Patrice Nadeau | |
| 66 | Les fichiers suivant sont utilisés : |
||
| 67 | * _/var/log/mail_ |
||
| 68 | * _/var/log/mail.info_ |
||
| 69 | * _/var/log/mail.warn_ |
||
| 70 | * _/var/log/mail.err_ |
||
| 71 | |||
| 72 | Vérifier le nombre de messages dans les « queues » avec _mailq_. |