OVH Community, votre nouvel espace communautaire.

Problème avec Dovecot


florent060
18/05/2016, 08h13
Bonjour

May 11 14:05:35 vps264432 postfix/postmap[19331]: fatal: table mysql:/etc/postfix/mysql-virtual-mailbox-domains.cf: query error: Success
Si je comprends bien dans ce log, Postfix n'arrive pas a ouvrir la table contenant les domaines en messagerie non ?

cdt

Electrizia
17/05/2016, 21h17
Citation Envoyé par florent060
Problème avec Mysql également non ?


l'adresse bastien@siruge.net n'existe pas ?

Bonjour Florent,
l'adresse bastien@sirugue.net existe. Elle arrive à envoyer des messages, mais pas à en recevoir.

Pour la connexion mySql je ne comprends pas trop pourquoi il y aurait un problème puisque j'ai rentré les même informations que pour postfix... je vais regarder ça.

florent060
13/05/2016, 08h05
Citation Envoyé par Electrizia
De ce genre là?


May 11 13:58:26 vps264432 postfix/smtpd[19317]: NOQUEUE: reject: RCPT from localhost[127.0.0.1]: 550 5.1.1 : Recipient address rejected: User unknown in local recipient table; from= to= proto=ESMTP helo=
May 11 13:58:26 vps264432 postfix/smtpd[19317]: warning: non-SMTP command from localhost[127.0.0.1]: To: bastien@sirugue.net
May 11 13:58:26 vps264432 postfix/smtpd[19317]: disconnect from localhost[127.0.0.1]
May 11 14:05:35 vps264432 postfix/postmap[19331]: warning: connect to mysql server 127.0.0.1: Access denied for user 'mailuser'@'localhost' (using password: YES)
May 11 14:05:35 vps264432 postfix/postmap[19331]: fatal: table mysql:/etc/postfix/mysql-virtual-mailbox-domains.cf: query error: Success
May 11 14:06:03 vps264432 postfix/postmap[19333]: warning: connect to mysql server 127.0.0.1: Access denied for user 'mailuser'@'localhost' (using password: YES)
May 11 14:06:03 vps264432 postfix/postmap[19333]: fatal: table mysql:/etc/postfix/mysql-virtual-mailbox-domains.cf: query error: Success
May 11 14:06:44 vps264432 postfix/postmap[19340]: warning: connect to mysql server 127.0.0.1: Access denied for user 'mailuser'@'localhost' (using password: YES)
May 11 14:06:44 vps264432 postfix/postmap[19340]: fatal: table mysql:/etc/postfix/mysql-virtual-mailbox-domains.cf: query error: Success
May 11 14:20:00 vps264432 postfix/postmap[19387]: warning: mysql query failed: Table 'postfixadmin.aloas' doesn't exist
May 11 14:20:00 vps264432 postfix/postmap[19387]: fatal: table mysql:/etc/postfix/mysql-virtual-alias-maps.cf: query error: Success
Problème avec Mysql également non ?
Recipient address rejected: User unknown in local recipient table; from= to= proto=ESMTP helo=
l'adresse bastien@siruge.net n'existe pas ?

janus57
12/05/2016, 22h05
Bonjour,

visiblement je dirais qu'il y a un problème de config :

May 12 20:40:17 vps264432 dovecot: auth: Fatal: mysql: Unknown connect string: hosts
Cordialement, janus57

Electrizia
12/05/2016, 19h54
Citation Envoyé par florent060
Pourtant pas si vieux ce tuto !

Est ce possible d'avoir un meilleur copier coller ?
De ce genre là?


root@vps264432:/var/log# tail /var/log/mail.log
May 12 20:27:20 vps264432 postfix/anvil[6414]: statistics: max cache size 1 at May 12 20:25:38
May 12 20:40:16 vps264432 postfix/smtpd[6428]: connect from mail-io0-f174.google.com[209.85.223.174]
May 12 20:40:17 vps264432 dovecot: auth: Fatal: mysql: Unknown connect string: hosts
May 12 20:40:17 vps264432 dovecot: master: Error: service(auth): command startup failed, throttling for 60 secs
May 12 20:40:17 vps264432 postfix/smtpd[6428]: fatal: no SASL authentication mechanisms
May 12 20:40:18 vps264432 postfix/master[2685]: warning: process /usr/lib/postfix/smtpd pid 6428 exit status 1
May 12 20:40:18 vps264432 postfix/master[2685]: warning: /usr/lib/postfix/smtpd: bad command startup -- throttling
May 12 20:41:58 vps264432 postfix/anvil[6430]: statistics: max connection rate 1/60s for (smtp:209.85.223.174) at May 12 20:40:16
May 12 20:41:58 vps264432 postfix/anvil[6430]: statistics: max connection count 1 for (smtp:209.85.223.174) at May 12 20:40:16
May 12 20:41:58 vps264432 postfix/anvil[6430]: statistics: max cache size 1 at May 12 20:40:16
root@vps264432:/var/log# vi mail.log
May 11 11:58:14 vps264432 postfix/master[14182]: daemon started -- version 2.9.6, configuration /etc/postfix
May 11 12:00:28 vps264432 dovecot: master: Dovecot v2.1.7 starting up (core dumps disabled)
May 11 12:00:28 vps264432 dovecot: ssl-params: Generating SSL parameters
May 11 12:00:29 vps264432 dovecot: master: Warning: Killed with signal 15 (by pid=18645 uid=0 code=kill)
May 11 12:00:29 vps264432 dovecot: master: Dovecot v2.1.7 starting up (core dumps disabled)
May 11 12:00:29 vps264432 dovecot: master: Warning: Killed with signal 15 (by pid=18808 uid=0 code=kill)
May 11 12:00:29 vps264432 dovecot: master: Dovecot v2.1.7 starting up (core dumps disabled)
May 11 12:00:29 vps264432 dovecot: master: Warning: Killed with signal 15 (by pid=18971 uid=0 code=kill)
May 11 12:00:29 vps264432 dovecot: master: Dovecot v2.1.7 starting up (core dumps disabled)
May 11 12:00:30 vps264432 dovecot: master: Warning: Killed with signal 15 (by pid=19134 uid=0 code=kill)
May 11 12:00:30 vps264432 dovecot: master: Dovecot v2.1.7 starting up (core dumps disabled)
May 11 12:00:30 vps264432 dovecot: ssl-params: SSL parameters regeneration completed
May 11 13:58:26 vps264432 postfix/smtpd[19317]: connect from localhost[127.0.0.1]
May 11 13:58:26 vps264432 postfix/smtpd[19317]: NOQUEUE: reject: RCPT from localhost[127.0.0.1]: 550 5.1.1 : Recipient address rejected: User unknown in local recipient table; from= to= proto=ESMTP helo=
May 11 13:58:26 vps264432 postfix/smtpd[19317]: warning: non-SMTP command from localhost[127.0.0.1]: To: bastien@sirugue.net
May 11 13:58:26 vps264432 postfix/smtpd[19317]: disconnect from localhost[127.0.0.1]
May 11 14:05:35 vps264432 postfix/postmap[19331]: warning: connect to mysql server 127.0.0.1: Access denied for user 'mailuser'@'localhost' (using password: YES)
May 11 14:05:35 vps264432 postfix/postmap[19331]: fatal: table mysql:/etc/postfix/mysql-virtual-mailbox-domains.cf: query error: Success
May 11 14:06:03 vps264432 postfix/postmap[19333]: warning: connect to mysql server 127.0.0.1: Access denied for user 'mailuser'@'localhost' (using password: YES)
May 11 14:06:03 vps264432 postfix/postmap[19333]: fatal: table mysql:/etc/postfix/mysql-virtual-mailbox-domains.cf: query error: Success
May 11 14:06:44 vps264432 postfix/postmap[19340]: warning: connect to mysql server 127.0.0.1: Access denied for user 'mailuser'@'localhost' (using password: YES)
May 11 14:06:44 vps264432 postfix/postmap[19340]: fatal: table mysql:/etc/postfix/mysql-virtual-mailbox-domains.cf: query error: Success
May 11 14:20:00 vps264432 postfix/postmap[19387]: warning: mysql query failed: Table 'postfixadmin.aloas' doesn't exist
May 11 14:20:00 vps264432 postfix/postmap[19387]: fatal: table mysql:/etc/postfix/mysql-virtual-alias-maps.cf: query error: Success
May 11 14:50:46 vps264432 dovecot: master: Warning: Killed with signal 15 (by pid=19451 uid=0 code=kill)
May 11 14:50:46 vps264432 dovecot: master: Dovecot v2.1.7 starting up (core dumps disabled)
May 11 14:57:36 vps264432 postfix/postmap[19490]: fatal: usage: postmap [-Nfinoprsvw] [-c config_dir] [-d key] [-q key] [map_type:]file...
May 11 14:58:30 vps264432 dovecot: master: Warning: Killed with signal 15 (by pid=19505 uid=0 code=kill)
May 11 14:58:30 vps264432 dovecot: master: Dovecot v2.1.7 starting up (core dumps disabled)
May 11 15:02:35 vps264432 postfix/master[14182]: terminating on signal 15
May 11 15:02:35 vps264432 postfix/master[19678]: daemon started -- version 2.9.6, configuration /etc/postfix
May 11 15:06:10 vps264432 postfix/pickup[19683]: 1157514A13: uid=0 from=
May 11 15:06:10 vps264432 postfix/cleanup[19928]: 1157514A13: message-id=<20160511130610.1157514A13@vps264432.ovh.net>
May 11 15:06:10 vps264432 postfix/qmgr[19684]: 1157514A13: from=, size=412, nrcpt=1 (queue active)
May 11 15:06:10 vps264432 postfix/trivial-rewrite[19929]: warning: do not list domain sirugue.net in BOTH mydestination and virtual_mailbox_domains
May 11 15:06:10 vps264432 postfix/local[19933]: 1157514A13: to=, relay=local, delay=0.05, delays=0.03/0.01/0/0.01, dsn=5.1.1, status=bounced (unknown user: "bastien")
May 11 15:06:10 vps264432 postfix/cleanup[19928]: 18FA714A16: message-id=<20160511130610.18FA714A16@vps264432.ovh.net>
May 11 15:06:10 vps264432 postfix/qmgr[19684]: 18FA714A16: from=<>, size=2136, nrcpt=1 (queue active)
May 11 15:06:10 vps264432 postfix/bounce[19934]: 1157514A13: sender non-delivery notification: 18FA714A16
May 11 15:06:10 vps264432 postfix/trivial-rewrite[19929]: warning: do not list domain sirugue.net in BOTH mydestination and virtual_mailbox_domains
May 11 15:06:10 vps264432 postfix/qmgr[19684]: 1157514A13: removed

florent060
12/05/2016, 19h43
Pourtant pas si vieux ce tuto !

Est ce possible d'avoir un meilleur copier coller ?

Electrizia
12/05/2016, 19h12
Citation Envoyé par janus57
Bonjour,

cela ressemble surtout à un copier coller foireux quand on vois plein de "-bash: May : commande introuvable"

Cordialement, janus57
rectification, même pas car j'ai utilisé la commande

apt-get install dovecot-mysql dovecot-pop3d dovecot-imapd dovecot-managesieved

J'ai suivi ce tuto : http://www.tictech.info/post/mail_dovecot

Electrizia
12/05/2016, 17h33
Oui j'ai fait un mv. Vous pensez que je devrais supprimer et réinstaller? Mais si je fais ça je dois supprimer quoi? Et je le réinstalle au même endroit?

janus57
12/05/2016, 17h27
Bonjour,

cela ressemble surtout à un copier coller foireux quand on vois plein de "-bash: May : commande introuvable"

Cordialement, janus57

florent060
12/05/2016, 09h19
Bonjour

Vous avez bien dans /etc/ un dossier dovecot ?

on n'a l'impression que Dovecot n'est pas installé

Electrizia
11/05/2016, 16h07
Bien le bonjour !
Je me tourne vers vous en ce jour de beau temps (#bretagne) car j'ai quelques petits souci.
Depuis quelques temps maintenant, à mes heures perdus, je me suis lancé dans la réalisation d'un serveur de messagerie sur mon vps sous debian 7. Seulement voilà: il y a un hic!

L'envoi de message fonctionne à merveille, mais pas la réception. J'ai cherché sur internet mais je ne comprends pas trop ce qu'il y a donc un peu de mal à savoir ce que je dois chercher.

Code:
root@vps264432:/etc/dovecot# root@vps264432:/etc/dovecot# tail /var/log/mail.log
-bash: root@vps264432:/etc/dovecot#: Aucun fichier ou dossier de ce type
root@vps264432:/etc/dovecot# May 11 16:38:29 vps264432 postfix/smtp[20558]: 6D50314A16: to=, rel                                                                                                      ay=gmail-smtp-in.l.google.com[74.125.133.27]:25, delay=0.62, delays=0.02/0.01/0.23/0.36, dsn=2.                                                                                                      0.0, status=sent (250 2.0.0 OK 1462977509 k128si10363551wmb.103 - gsmtp)
-bash: Erreur de syntaxe près du symbole inattendu « ( »
root@vps264432:/etc/dovecot# May 11 16:38:29 vps264432 postfix/qmgr[19684]: 6D50314A16: removed
-bash: May : commande introuvable
root@vps264432:/etc/dovecot# May 11 16:49:13 vps264432 dovecot: master: Warning: Killed with signal 15 (by pid=20594 uid=0 c                                                                                                      ode=kill)
-bash: Erreur de syntaxe près du symbole inattendu « ( »
root@vps264432:/etc/dovecot# May 11 16:49:13 vps264432 dovecot: master: Dovecot v2.1.7 starting up (core dumps disabled)
-bash: Erreur de syntaxe près du symbole inattendu « ( »
root@vps264432:/etc/dovecot# May 11 16:58:40 vps264432 postfix/smtpd[20626]: connect from mail-io0-f181.google.com[209.85.22                                                                                                      3.181]
-bash: May : commande introuvable
root@vps264432:/etc/dovecot# May 11 16:58:41 vps264432 dovecot: auth: Fatal: mysql: Unknown connect string: hosts
-bash: May : commande introuvable
root@vps264432:/etc/dovecot# May 11 16:58:41 vps264432 dovecot: master: Error: service(auth): command startup failed, thrott                                                                                                      ling for 2 secs
-bash: Erreur de syntaxe près du symbole inattendu « ( »
root@vps264432:/etc/dovecot# May 11 16:58:41 vps264432 postfix/smtpd[20626]: fatal: no SASL authentication mechanisms
-bash: May : commande introuvable
root@vps264432:/etc/dovecot# May 11 16:58:42 vps264432 postfix/master[19678]: warning: process /usr/lib/postfix/smtpd pid 20                                                                                                      626 exit status 1
-bash: May : commande introuvable
root@vps264432:/etc/dovecot# May 11 16:58:42 vps264432 postfix/master[19678]: warning: /usr/lib/postfix/smtpd: bad command s                                                                                                      tartup -- throttling
.

Visiblement il y a pas mal d'erreur, même mysql alors que ce sont les mêmes données de connection que pour postfix :/

Est que vous auriez là solution à ce problème ou un indice peut être?
Merci d'avance pour votre aide,
Bien cordialement,
Elec.