Salut!
J’ai suivi le tutorial : isalo.org/wiki.debian-fr/In … des_quotas pour l’installation d’un serveur mail. J’ai déjà utilisé ce tutorial sur une Debian Squeeze et cela fonctionne sans soucis.
Là j’ai suivi à nouveau ce tutorial sur une Wheezy mais je rencontre quelques problème.
Tout d’abord, une petite question, pour ce point :
# Ajoutez votre réseau local ici
mynetworks = [b]10.9.8.0[/b]/22 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128
Est-ce qu’ici je dois y mettre l’adresse IP complète de mon serveur ou laisser tel quel ? Je me suis rendu compte que j’avais laissé tel quel sur l’autre serveur et ca fonctionnait quand même, je n’y avais pas fait attention avant du coup je me pose la question.
Ensuite mon problème étant qu’apparement sous Wheezy il y a une autre version de dovecot , je rencontre le même problème que Ricardo ici : debian-fr.org/serveur-squeez … 46052.html
Alors du coup en suivant le tutorial j’arrive à ce point :
vi /etc/dovecot/dovecot.conf
J’y met cette configuration :
[code]## Dovecot configuration file
protocols = imap imaps pop3 pop3s
log_timestamp = "%Y-%m-%d %H:%M:%S "
mail_privileged_group = mail
disable_plaintext_auth = no
mail_location = maildir:/home/facteur/%d/%n:INDEX=/home/facteur/%d/%n/indexes
protocol imap {
}
protocol pop3 {
}
protocol managesieve {
}
protocol lda {
postmaster_address = contact@mondomaine.tld
mail_plugin_dir = /usr/lib/dovecot/modules/lda
auth_socket_path = /var/run/dovecot/auth-master
}
auth default {
userdb sql {
args = /etc/dovecot/dovecot-mysql.conf
}
passdb sql {
args = /etc/dovecot/dovecot-mysql.conf
}
socket listen {
master {
path = /var/run/dovecot/auth-master
mode = 0600
user = facteur
}
client {
path = /var/spool/postfix/private/auth
mode = 0660
user = postfix
group = postfix
}
}
}
dict {
}
plugin {
}[/code]
Lorsque je redémarre dovecot j’obtiens les erreurs suivantes :
[code]doveconf: Warning: NOTE: You can get a new clean config file with: doveconf -n > dovecot-new.conf
doveconf: Warning: Obsolete setting in /etc/dovecot/dovecot.conf:3: ‘imaps’ protocol is no longer necessary, remove it
doveconf: Warning: Obsolete setting in /etc/dovecot/dovecot.conf:3: ‘pop3s’ protocol is no longer necessary, remove it
doveconf: Warning: Obsolete setting in /etc/dovecot/dovecot.conf:14: protocol managesieve {} has been replaced by protocol sieve { }
doveconf: Warning: Obsolete setting in /etc/dovecot/dovecot.conf:21: add auth_ prefix to all settings inside auth {} and remove the auth {} section completely
doveconf: Warning: Obsolete setting in /etc/dovecot/dovecot.conf:22: userdb sql {} has been replaced by userdb { driver=sql }
doveconf: Warning: Obsolete setting in /etc/dovecot/dovecot.conf:25: passdb sql {} has been replaced by passdb { driver=sql }
doveconf: Fatal: Error in configuration file /etc/dovecot/dovecot.conf: ssl enabled, but ssl_cert not set
[…] Restarting IMAP/POP3 mail server: dovecotdoveconf: Warning: NOTE: You can get a new clean config file with: doveconf -n > dovecot-new.conf
doveconf: Warning: Obsolete setting in /etc/dovecot/dovecot.conf:3: ‘imaps’ protocol is no longer necessary, remove it
doveconf: Warning: Obsolete setting in /etc/dovecot/dovecot.conf:3: ‘pop3s’ protocol is no longer necessary, remove it
doveconf: Warning: Obsolete setting in /etc/dovecot/dovecot.conf:14: protocol managesieve {} has been replaced by protocol sieve { }
doveconf: Warning: Obsolete setting in /etc/dovecot/dovecot.conf:21: add auth_ prefix to all settings inside auth {} and remove the auth {} section completely
doveconf: Warning: Obsolete setting in /etc/dovecot/dovecot.conf:22: userdb sql {} has been replaced by userdb { driver=sql }
doveconf: Warning: Obsolete setting in /etc/dovecot/dovecot.conf:25: passdb sql {} has been replaced by passdb { driver=sql }
doveconf: Fatal: Error in configuration file /etc/dovecot/dovecot.conf: ssl enabled, but ssl_cert not set
failed!
[/code]
Si je récupère le code donné par thuban dans l’autre sujet et que je le met en place cela redémarre sans problème mais lorsque je lance l’essai suivant :
echo test | mail -s "Premier test SMTP" essai@mondomaine.tld && tail -f /var/log/mail.info
J’obtiens :
Dec 31 18:59:09 ns1 postfix/cleanup[23230]: 35E3F80006C: message-id=<20131231175909.35E3F80006C@ns1.mondomaine.tld>
Dec 31 18:59:09 ns1 postfix/bounce[23326]: 0232380006B: sender non-delivery notification: 35E3F80006C
Dec 31 18:59:09 ns1 postfix/qmgr[4837]: 35E3F80006C: from=<>, size=2175, nrcpt=1 (queue active)
Dec 31 18:59:09 ns1 postfix/cleanup[23230]: 5C3CD80006A: message-id=<20131231175909.35E3F80006C@ns1.mondomaine.tld>
Dec 31 18:59:09 ns1 postfix/qmgr[4837]: 0232380006B: removed
Dec 31 18:59:09 ns1 postfix/local[23327]: 35E3F80006C: to=<root@ns1.mondomaine.tld>, relay=local, delay=0.29, delays=0.15/0.01/0/0.14, dsn=2.0.0, status=sent (forwarded as 5C3CD80006A)
Dec 31 18:59:09 ns1 postfix/qmgr[4837]: 5C3CD80006A: from=<>, size=2311, nrcpt=1 (queue active)
Dec 31 18:59:09 ns1 postfix/qmgr[4837]: 35E3F80006C: removed
Dec 31 18:59:09 ns1 postfix/pipe[23234]: 5C3CD80006A: to=<contact@mondomaine.tld>, orig_to=<root@ns1.mondomaine.tld>, relay=dovecot, delay=0.22, delays=0.11/0.03/0/0.07, dsn=5.1.1, status=bounced (user unknown)
Dec 31 18:59:09 ns1 postfix/qmgr[4837]: 5C3CD80006A: removed
Dec 31 18:59:19 ns1 postfix/pickup[4836]: 73B6B80006B: uid=0 from=<root>
Dec 31 18:59:19 ns1 postfix/cleanup[23230]: 73B6B80006B: message-id=<20131231175919.73B6B80006B@ns1.mondomaine.tld>
Dec 31 18:59:19 ns1 postfix/qmgr[4837]: 73B6B80006B: from=<root@ns1.mondomaine.tld>, size=447, nrcpt=1 (queue active)
Dec 31 18:59:19 ns1 postfix/pipe[23234]: 73B6B80006B: to=<essai@mondomaine.tld>, relay=dovecot, delay=0.26, delays=0.2/0/0/0.07, dsn=5.1.1, status=bounced (user unknown)
Dec 31 18:59:19 ns1 postfix/cleanup[23230]: A8E0C80006C: message-id=<20131231175919.A8E0C80006C@ns1.mondomaine.tld>
Dec 31 18:59:19 ns1 postfix/bounce[23326]: 73B6B80006B: sender non-delivery notification: A8E0C80006C
Dec 31 18:59:19 ns1 postfix/qmgr[4837]: A8E0C80006C: from=<>, size=2175, nrcpt=1 (queue active)
Dec 31 18:59:19 ns1 postfix/cleanup[23230]: CB14B80006A: message-id=<20131231175919.A8E0C80006C@ns1.mondomaine.tld>
Dec 31 18:59:19 ns1 postfix/qmgr[4837]: 73B6B80006B: removed
Dec 31 18:59:19 ns1 postfix/local[23327]: A8E0C80006C: to=<root@ns1.mondomaine.tld>, relay=local, delay=0.29, delays=0.14/0/0/0.15, dsn=2.0.0, status=sent (forwarded as CB14B80006A)
Dec 31 18:59:19 ns1 postfix/qmgr[4837]: CB14B80006A: from=<>, size=2311, nrcpt=1 (queue active)
Dec 31 18:59:20 ns1 postfix/qmgr[4837]: A8E0C80006C: removed
Dec 31 18:59:20 ns1 postfix/pipe[23234]: CB14B80006A: to=<contact@mondomaine.tld>, orig_to=<root@ns1.mondomaine.tld>, relay=dovecot, delay=0.21, delays=0.11/0.04/0/0.06, dsn=5.1.1, status=bounced (user unknown)
Dec 31 18:59:20 ns1 postfix/qmgr[4837]: CB14B80006A: removed
Donc apparement l’utilisateur n’existe pas ! (si je comprends bien les erreurs)
Du coup j’essaye avec telnet :
telnet 10.10.10.10 25
Trying 10.10.10.10...
Connected to 10.10.10.10.
Escape character is '^]'.
220 ns1.mondomaine.tld ESMTP Postfix (Debian/GNU)
EHLO ns1.mondomaine.tld
250-ns1.mondomaine.tld
250-PIPELINING
250-SIZE 10240000
250-VRFY
250-ETRN
250-STARTTLS
250-AUTH PLAIN LOGIN
250-ENHANCEDSTATUSCODES
250-8BITMIME
250 DSN
AUTH LOGIN ZXNzYWlAZXNzYWkub3Jn
334 UGFzc3dvcmQ6
dGVzdDk4Nw==
[b]535 5.7.8 Error: authentication failed: no mechanism available[/b]
Je n’arrive pas à me connecter… je suppose que c’est dovecot qui merde
Avez vous une idée de comment dois-je configurer le fichier /etc/dovecot/dovecot.conf pour que cela fonctionne ?
Merci à vous de votre réponse et bonne année à tous et toutes