Précédent   Forum du club des développeurs et IT Pro > Systèmes > Linux > Administration système
Administration système Vos questions autour de l'administration système
Partagez cette discussion sur d'autres réseaux sociaux : Viadeo Twitter Google Facebook Digg Delicious MySpace Yahoo
Réponse
 
Outils de la discussion
Publicité
'
Vieux 05/12/2012, 17h30   #1
flyingman
Membre du Club
 
Inscription : décembre 2005
Messages : 183
Détails du profil
Informations forums :
Inscription : décembre 2005
Messages : 183
Points : 61
Points : 61
Par défaut configuration dovecot pour Maildir SVP.

Bonjour à tous.

Pouvez-vous m'indiquer d'où vient mon erreur sur mon fichier de config de dovecot, car je n'arrive pas a "lire" mes emails.
Mes emails se trouvent sur ~/Maildir/new.

(Mon Serveur SMTP est postfix)
Code :
1
2
3
4
 
protocols = imap
mechanisms = plain login
mail_location = maildir:~/Maildir/
D'avance, merci.
flyingman est déconnecté   Envoyer un message privé Réponse avec citation 10
Vieux 06/12/2012, 14h37   #2
mathv
Membre du Club
 
Homme
Administrateur systèmes et réseaux
Inscription : octobre 2012
Messages : 28
Détails du profil
Informations personnelles :
Sexe : Homme
Localisation : Belgique

Informations professionnelles :
Activité : Administrateur systèmes et réseaux
Secteur : Arts - Culture

Informations forums :
Inscription : octobre 2012
Messages : 28
Points : 41
Points : 41
salut,

tu sais les afficher dans une console tes mails?

si ils se trouvent bien dans le dossier "new" c'est qu'ils sont livrés, ton erreur n'est donc pas la, mais peut etre dans la configuration de ton thunderbird ou evolution (ou outlook, Mail,....)
mathv est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 06/12/2012, 15h11   #3
flyingman
Membre du Club
 
Inscription : décembre 2005
Messages : 183
Détails du profil
Informations forums :
Inscription : décembre 2005
Messages : 183
Points : 61
Points : 61
Citation:
tu sais les afficher dans une console tes mails?
Veux-tu dire avec VI par exemple?
flyingman est déconnecté   Envoyer un message privé Réponse avec citation 10
Vieux 06/12/2012, 15h14   #4
flyingman
Membre du Club
 
Inscription : décembre 2005
Messages : 183
Détails du profil
Informations forums :
Inscription : décembre 2005
Messages : 183
Points : 61
Points : 61
Citation:
si ils se trouvent bien dans le dossier "new" c'est qu'ils sont livrés, ton erreur n'est donc pas la, mais peut etre dans la configuration de ton thunderbird ou evolution (ou outlook, Mail,....)

Oui, ils se trouvent tous bien là.

Sinon, mon dovecot est bien configuré?

Cordialement.
flyingman est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 07/12/2012, 15h09   #5
mathv
Membre du Club
 
Homme
Administrateur systèmes et réseaux
Inscription : octobre 2012
Messages : 28
Détails du profil
Informations personnelles :
Sexe : Homme
Localisation : Belgique

Informations professionnelles :
Activité : Administrateur systèmes et réseaux
Secteur : Arts - Culture

Informations forums :
Inscription : octobre 2012
Messages : 28
Points : 41
Points : 41
salut,

avec VI ou VIM ou nano, peut importe, le but c'est d'avoir les droits pour les ouvrir aussi (je te conseil d'employer ton user et pas root pour les vérifications)

tu utilises quel programme pour lire tes mails ?

donne-nous ta config postfix / dovecot aussi s'il te plait
mathv est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 08/12/2012, 15h24   #6
flyingman
Membre du Club
 
Inscription : décembre 2005
Messages : 183
Détails du profil
Informations forums :
Inscription : décembre 2005
Messages : 183
Points : 61
Points : 61
Citation:
tu utilises quel programme pour lire tes mails ?
thunderbird.


La config dovecot est celle écrite plus haut.

Pour la config de postfix je la mettrais sur le post Lundi (du boulot)

Bon week end à tous.
flyingman est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 09/12/2012, 10h34   #7
mathv
Membre du Club
 
Homme
Administrateur systèmes et réseaux
Inscription : octobre 2012
Messages : 28
Détails du profil
Informations personnelles :
Sexe : Homme
Localisation : Belgique

Informations professionnelles :
Activité : Administrateur systèmes et réseaux
Secteur : Arts - Culture

Informations forums :
Inscription : octobre 2012
Messages : 28
Points : 41
Points : 41
quid de l'iptables ? est ce que tu n'as pas de problème pour lancer un telnet par exemple, tu sais te connecter sur ton serveur mail depuis un autre poste ?

exemple
Code :
1
2
3
4
5
6
7
8
 
telnet 62.xx.xx.xx imap
Trying 62.xx.xx.xx...
Connected to 62.xx.xx.xx.
Escape character is '^]'.
* OK [CAPABILITY IMAP4rev1 LITERAL+ SASL-IR LOGIN-REFERRALS ID ENABLE IDLE AUTH=PLAIN] Dovecot ready.
1 login test@domain.com test
1 OK [CAPABILITY IMAP4rev1 LITERAL+ SASL-IR LOGIN-REFERRALS ID ENABLE IDLE SORT ...] Logged in
pour la config de thunderbird, les points à vérifier :
dans Edit ou Tools > Accounts settings (en fonction de la version)
- server settings : server type / serveur name / port username
- security settings type de connection (TLS/SSL/type de mdp)

dans outgoing server : server name / port / username

Bon weekend !
mathv est déconnecté   Envoyer un message privé Réponse avec citation 01
Vieux 10/12/2012, 09h48   #8
flyingman
Membre du Club
 
Inscription : décembre 2005
Messages : 183
Détails du profil
Informations forums :
Inscription : décembre 2005
Messages : 183
Points : 61
Points : 61
Bonjour à tous.
Voici la config de dovecot:

Code :
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
## Dovecot configuration file
 
# If you're in a hurry, see http://wiki2.dovecot.org/QuickConfiguration
 
# "doveconf -n" command gives a clean output of the changed settings. Use it
# instead of copy&pasting files when posting to the Dovecot mailing list.
 
# '#' character and everything after it is treated as comments. Extra spaces
# and tabs are ignored. If you want to use either of these explicitly, put the
# value inside quotes, eg.: key = "# char and trailing whitespace  "
 
# Default values are shown for each setting, it's not required to uncomment
# those. These are exceptions to this though: No sections (e.g. namespace {})
# or plugin settings are added by default, they're listed only as examples.
# Paths are also just examples with the real defaults being based on configure
# options. The paths listed here are for configure --prefix=/usr
# --sysconfdir=/etc --localstatedir=/var
 
# Enable installed protocols
!include_try /usr/share/dovecot/protocols.d/*.protocol
 
# A comma separated list of IPs or hosts where to listen in for connections. 
# "*" listens in all IPv4 interfaces, "::" listens in all IPv6 interfaces.
# If you want to specify non-default ports or anything more complex,
# edit conf.d/master.conf.
#listen = *, ::
 
# Base directory where to store runtime data.
#base_dir = /var/run/dovecot/
 
# Name of this instance. Used to prefix all Dovecot processes in ps output.
#instance_name = dovecot
 
# Greeting message for clients.
#login_greeting = Dovecot ready.
 
# Space separated list of trusted network ranges. Connections from these
# IPs are allowed to override their IP addresses and ports (for logging and
# for authentication checks). disable_plaintext_auth is also ignored for
# these networks. Typically you'd specify your IMAP proxy servers here.
#login_trusted_networks =
 
# Sepace separated list of login access check sockets (e.g. tcpwrap)
#login_access_sockets = 
 
# Show more verbose process titles (in ps). Currently shows user name and
# IP address. Useful for seeing who are actually using the IMAP processes
# (eg. shared mailboxes or if same uid is used for multiple accounts).
#verbose_proctitle = no
 
# Should all processes be killed when Dovecot master process shuts down.
# Setting this to "no" means that Dovecot can be upgraded without
# forcing existing client connections to close (although that could also be
# a problem if the upgrade is e.g. because of a security fix).
#shutdown_clients = yes
 
# If non-zero, run mail commands via this many connections to doveadm server,
# instead of running them directly in the same process.
#doveadm_worker_count = 0
# UNIX socket or host:port used for connecting to doveadm server
#doveadm_socket_path = doveadm-server
 
# Space separated list of environment variables that are preserved on Dovecot
# startup and passed down to all of its child processes. You can also give
# key=value pairs to always set specific settings.
#import_environment = TZ
 
##
## Dictionary server settings
##
 
# Dictionary can be used to store key=value lists. This is used by several
# plugins. The dictionary can be accessed either directly or though a
# dictionary server. The following dict block maps dictionary names to URIs
# when the server is used. These can then be referenced using URIs in format
# "proxy::<name>".
 
dict {
  #quota = mysql:/etc/dovecot/dovecot-dict-sql.conf.ext
  #expire = sqlite:/etc/dovecot/dovecot-dict-sql.conf.ext
}
 
# Most of the actual configuration gets included below. The filenames are
# first sorted by their ASCII value and parsed in that order. The 00-prefixes
# in filenames are intended to make it easier to understand the ordering.
!include conf.d/*.conf
 
# A config file can also tried to be included without giving an error if
# it's not found:
!include_try local.conf
 
 
 
#*********************************************************
protocols = imap
 
#protocols = imaps
#ssl_cert_file = /chemin/vers/votre/certificat/ssl
#ssl_key_file = /chemin/vers/votre/clé/ssl
&#65279;
mechanisms = plain login
 
mail_location = maildir:~/Maildir/new
 
#************************************************************

et celle de postfix

Code :
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# See /usr/share/postfix/main.cf.dist for a commented, more complete version
 
 
# Debian specific:  Specifying a file name will cause the first
# line of that file to be used as the name.  The Debian default
# is /etc/mailname.
 
myorigin = /etc/mailname
 
smtpd_banner = $myhostname ESMTP $mail_name (Ubuntu)
biff = no
 
# appending .domain is the MUA's job.
append_dot_mydomain = no
 
# Uncomment the next line to generate "delayed mail" warnings
#delay_warning_time = 4h
 
readme_directory = no
 
myhostname = serveur2.legabion.com
 
home_mailbox = Maildir/ 
#myorigin = /etc/mailname
mydestination = toto.com, localhost.toto.com, localhost
relayhost = 
mynetworks = 127.0.0.0/8 192.168.0.0/24
mailbox_size_limit = 51200000
recipient_delimiter = +
inet_interfaces = all
inet_protocols = all
flyingman est déconnecté   Envoyer un message privé Réponse avec citation 01
Vieux 10/12/2012, 17h39   #9
mathv
Membre du Club
 
Homme
Administrateur systèmes et réseaux
Inscription : octobre 2012
Messages : 28
Détails du profil
Informations personnelles :
Sexe : Homme
Localisation : Belgique

Informations professionnelles :
Activité : Administrateur systèmes et réseaux
Secteur : Arts - Culture

Informations forums :
Inscription : octobre 2012
Messages : 28
Points : 41
Points : 41
Salut,

Ok pour la config postfix, on y reviendra plus tard (si tu en as besoin, rajouter TLS/SSL)

Pour dovecot, même chose, on reverra ta config en fonction de ce que tu as besoin.

Peux-tu nous renseigner sur le retour de la commande telnet ?
Code :
1
2
 
telnet 192.168.xx.xx imap
Une fois la connexion telnet établie, essayes de te connecter avec ton login/mot de passe.

exemple :

Code :
1 login test@domain.com test
et donne nous le résultat
mathv est déconnecté   Envoyer un message privé Réponse avec citation 10
Vieux 11/12/2012, 19h42   #10
flyingman
Membre du Club
 
Inscription : décembre 2005
Messages : 183
Détails du profil
Informations forums :
Inscription : décembre 2005
Messages : 183
Points : 61
Points : 61
Bonsoir à tous.

Je suis désolé, je ne vais pas pouvoir faire les tests rapidement car j'ai du réinstaller un nouvel OS sur la machine de test de postfix et dovecot!

Je pense tout réinstaller d'ici jeudi, et je vous donnerais le résultat de ces tests.


Cordialement.
flyingman est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 17/12/2012, 17h16   #11
flyingman
Membre du Club
 
Inscription : décembre 2005
Messages : 183
Détails du profil
Informations forums :
Inscription : décembre 2005
Messages : 183
Points : 61
Points : 61
Bonjour à tous.

Comment dire... je n'ai pas pu faire les tests car je viens de préparer (migration ubuntu --> debian) ma machine de test seulement aujourd'hui.

Et pour couronner le tous, mon serveur SMTP (postfix) ne marche plus !
Il faut que je m'occupe de refaire marcher ça avant de revenir au problème de dovecot.

Je vous tiendrais au courant.

Cordialement.
flyingman est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 16/01/2013, 15h33   #12
flyingman
Membre du Club
 
Inscription : décembre 2005
Messages : 183
Détails du profil
Informations forums :
Inscription : décembre 2005
Messages : 183
Points : 61
Points : 61
Bonjour à tous.

Je reviens vers vous après moult péripéties

Après avoir migrer mes 4 serveurs sur debian (non sans mal) et modifier en profondeur ma stratégie de sauvegarde, me voilà de retour sur la configuration de dovecot.


Exim4 étant le serveur SMTP par défaut de Debian, et ayant échouer à faire fonctionner Postfix sur celle-ci, j'ai fini par utiliser exim4 et réussi à la faire fonctionner de la même manière que postfix fonctionnait sur ubuntu (cad envoie et réception d'email OK dans ~/Maildir/new).

Je me retrouve donc là, où je vous avez quitter....Voici le résultat des tests:

Citation:
Peux-tu nous renseigner sur le retour de la commande telnet ?
Code :
telnet 192.168.xx.xx imap
Resultat:

Code :
OK [CAPABILITY IMAP4rev1 LITERAL+ SASL-IR LOGIN-REFERRALS ID ENABLE STARTTLS AUTH=PLAIN] Dovecot ready.
Ca parait OK.

Citation:
Une fois la connexion telnet établie, essayes de te connecter avec ton login/mot de passe.

exemple :
Code :
login test@domain.com test
et donne nous le résultat
Résultat:
Code :
login BAD Error in IMAP command received by server.
A la place du 1er "test" j'ai mis mon login (toto@machin.com) et motdepasse à la place du 2ième "test".

Cordialement.
flyingman est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 16/01/2013, 16h05   #13
flyingman
Membre du Club
 
Inscription : décembre 2005
Messages : 183
Détails du profil
Informations forums :
Inscription : décembre 2005
Messages : 183
Points : 61
Points : 61
Re bonjour à tous.

Dovecot fonctionne à présent (j'accède, je ne sais pas comment, à mes email via avec thunderbird )

Je marque le post comme résolu pour cette configuration de dovecot qui semble fonctionner avec exim4.

Cordialement.
flyingman est déconnecté   Envoyer un message privé Réponse avec citation 00
Réponse Cette discussion est résolue.
Outils de la discussion

Navigation rapide


Fuseau horaire GMT +2. Il est actuellement 06h40.


 
 
 
 
Partenaires

Hébergement Web