Contenu | Rechercher | Menus

Annonce

Si vous avez des soucis pour rester connecté, déconnectez-vous puis reconnectez-vous depuis ce lien en cochant la case
Me connecter automatiquement lors de mes prochaines visites.

À propos de l'équipe du forum.

#1 Le 04/11/2012, à 21:54

ines2012

Postfix test sur ubuntu/serveur mail

Bonjour,

Je voulais installer un serveur mail sur Ubuntu.

J'ai suivi (pas à pas) la vidéo de cette page web ainsi que cette dernière. Je me suis arrivée à la configuration du fichier main.cf. Je l'ai copié tel qu'il est (pas de changements concernant my hostname, etc). J'ai gardé "REVERSE_DNS". J'ai redemarré postfix et j'ai voulu tester le service telnet "telnet 127.0.0.1 25"

Voici ce que j'ai eu sur le terminal

Trying 127.0.0.1...
Connected to 127.0.0.1.
Escape character is '^]'.
220 REVERSE_DNS ESMTP Postfix (Debian/GNU)
ehlo tutorielvideo.fr
250-REVERSE_DNS
250-PIPELINING
250-SIZE 10240000
250-ETRN
250-ENHANCEDSTATUSCODES
250-8BITMIME
250 DSN
mail from:<test@test.com>

=======================================

A ce niveau, le service telnet se bloque.

J'ai testé plusieurs fois mais toujours j'ai eu le même résultat.

J'ai vu le syslog

Voici ce que j'ai eu:


Fichier cat /var/log/syslog:

------------------------------------------


Nov  4 20:23:20 ines-VirtualBox postfix/trivial-rewrite[2009]: warning: connect to mysql server 127.0.0.1: Access denied for user 'postfix'@'localhost' (using password: YES)
Nov  4 20:23:20 ines-VirtualBox postfix/trivial-rewrite[2009]: fatal: mysql:/etc/postfix/mysql-virtual_aliases.cf(0,lock|fold_fix): table lookup problem
Nov  4 20:23:20 ines-VirtualBox postfix/trivial-rewrite[2010]: warning: connect to mysql server 127.0.0.1: Access denied for user 'postfix'@'localhost' (using password: YES)
Nov  4 20:23:20 ines-VirtualBox postfix/trivial-rewrite[2010]: fatal: mysql:/etc/postfix/mysql-virtual_aliases.cf(0,lock|fold_fix): table lookup problem
Nov  4 20:23:21 ines-VirtualBox postfix/smtpd[1781]: warning: problem talking to service rewrite: Success
Nov  4 20:23:21 ines-VirtualBox postfix/cleanup[1050]: warning: problem talking to service rewrite: Connection reset by peer
Nov  4 20:23:21 ines-VirtualBox postfix/master[1010]: warning: process /usr/lib/postfix/trivial-rewrite pid 2009 exit status 1
Nov  4 20:23:21 ines-VirtualBox postfix/master[1010]: warning: /usr/lib/postfix/trivial-rewrite: bad command startup -- throttling
Nov  4 20:23:21 ines-VirtualBox postfix/smtpd[1985]: warning: problem talking to service rewrite: Success
Nov  4 20:23:21 ines-VirtualBox postfix/master[1010]: warning: process /usr/lib/postfix/trivial-rewrite pid 2010 exit status 1
Nov  4 20:24:21 ines-VirtualBox postfix/trivial-rewrite[2012]: warning: connect to mysql server 127.0.0.1: Access denied for user 'postfix'@'localhost' (using password: YES)
Nov  4 20:24:21 ines-VirtualBox postfix/trivial-rewrite[2012]: fatal: mysql:/etc/postfix/mysql-virtual_aliases.cf(0,lock|fold_fix): table lookup problem
Nov  4 20:24:21 ines-VirtualBox postfix/trivial-rewrite[2013]: warning: connect to mysql server 127.0.0.1: Access denied for user 'postfix'@'localhost' (using password: YES)
Nov  4 20:24:21 ines-VirtualBox postfix/trivial-rewrite[2013]: fatal: mysql:/etc/postfix/mysql-virtual_aliases.cf(0,lock|fold_fix): table lookup problem
Nov  4 20:24:22 ines-VirtualBox postfix/smtpd[1781]: warning: problem talking to service rewrite: Success
Nov  4 20:24:22 ines-VirtualBox postfix/cleanup[1050]: warning: problem talking to service rewrite: Connection reset by peer
Nov  4 20:24:22 ines-VirtualBox postfix/master[1010]: warning: process /usr/lib/postfix/trivial-rewrite pid 2012 exit status 1
Nov  4 20:24:22 ines-VirtualBox postfix/master[1010]: warning: /usr/lib/postfix/trivial-rewrite: bad command startup -- throttling
Nov  4 20:24:22 ines-VirtualBox postfix/smtpd[1985]: warning: problem talking to service rewrite: Success
Nov  4 20:24:22 ines-VirtualBox postfix/master[1010]: warning: process /usr/lib/postfix/trivial-rewrite pid 2013 exit status 1
Nov  4 20:25:22 ines-VirtualBox postfix/trivial-rewrite[2119]: warning: connect to mysql server 127.0.0.1: Access denied for user 'postfix'@'localhost' (using password: YES)
Nov  4 20:25:22 ines-VirtualBox postfix/trivial-rewrite[2119]: fatal: mysql:/etc/postfix/mysql-virtual_aliases.cf(0,lock|fold_fix): table lookup problem
Nov  4 20:25:22 ines-VirtualBox postfix/trivial-rewrite[2120]: warning: connect to mysql server 127.0.0.1: Access denied for user 'postfix'@'localhost' (using password: YES)
Nov  4 20:25:22 ines-VirtualBox postfix/trivial-rewrite[2120]: fatal: mysql:/etc/postfix/mysql-virtual_aliases.cf(0,lock|fold_fix): table lookup problem
Nov  4 20:25:23 ines-VirtualBox postfix/smtpd[1781]: warning: problem talking to service rewrite: Success
Nov  4 20:25:23 ines-VirtualBox postfix/cleanup[1050]: warning: problem talking to service rewrite: Connection reset by peer
Nov  4 20:25:23 ines-VirtualBox postfix/master[1010]: warning: process /usr/lib/postfix/trivial-rewrite pid 2119 exit status 1
Nov  4 20:25:23 ines-VirtualBox postfix/master[1010]: warning: /usr/lib/postfix/trivial-rewrite: bad command startup -- throttling
Nov  4 20:25:23 ines-VirtualBox postfix/smtpd[1985]: warning: problem talking to service rewrite: Success
Nov  4 20:25:23 ines-VirtualBox postfix/master[1010]: warning: process /usr/lib/postfix/trivial-rewrite pid 2120 exit status 1
=====================================================

fichier

=====================================================
Nov  4 20:26:24 ines-VirtualBox postfix/trivial-rewrite[2124]: warning: connect to mysql server 127.0.0.1: Access denied for user 'postfix'@'localhost' (using password: YES)
Nov  4 20:26:24 ines-VirtualBox postfix/trivial-rewrite[2124]: fatal: mysql:/etc/postfix/mysql-virtual_aliases.cf(0,lock|fold_fix): table lookup problem
Nov  4 20:26:25 ines-VirtualBox postfix/smtpd[1781]: warning: problem talking to service rewrite: Success
Nov  4 20:26:25 ines-VirtualBox postfix/cleanup[1050]: warning: problem talking to service rewrite: Connection reset by peer
Nov  4 20:26:25 ines-VirtualBox postfix/master[1010]: warning: process /usr/lib/postfix/trivial-rewrite pid 2123 exit status 1
Nov  4 20:26:25 ines-VirtualBox postfix/master[1010]: warning: /usr/lib/postfix/trivial-rewrite: bad command startup -- throttling
Nov  4 20:26:25 ines-VirtualBox postfix/smtpd[1985]: warning: problem talking to service rewrite: Success
Nov  4 20:26:25 ines-VirtualBox postfix/master[1010]: warning: process /usr/lib/postfix/trivial-rewrite pid 2124 exit status 1
Nov  4 20:27:25 ines-VirtualBox postfix/trivial-rewrite[2148]: warning: connect to mysql server 127.0.0.1: Access denied for user 'postfix'@'localhost' (using password: YES)
Nov  4 20:27:25 ines-VirtualBox postfix/trivial-rewrite[2148]: fatal: mysql:/etc/postfix/mysql-virtual_aliases.cf(0,lock|fold_fix): table lookup problem
Nov  4 20:27:25 ines-VirtualBox postfix/trivial-rewrite[2149]: warning: connect to mysql server 127.0.0.1: Access denied for user 'postfix'@'localhost' (using password: YES)
Nov  4 20:27:25 ines-VirtualBox postfix/trivial-rewrite[2149]: fatal: mysql:/etc/postfix/mysql-virtual_aliases.cf(0,lock|fold_fix): table lookup problem
Nov  4 20:27:26 ines-VirtualBox postfix/smtpd[1781]: warning: problem talking to service rewrite: Success
Nov  4 20:27:26 ines-VirtualBox postfix/cleanup[1050]: warning: problem talking to service rewrite: Connection reset by peer
Nov  4 20:27:26 ines-VirtualBox postfix/master[1010]: warning: process /usr/lib/postfix/trivial-rewrite pid 2148 exit status 1
Nov  4 20:27:26 ines-VirtualBox postfix/master[1010]: warning: /usr/lib/postfix/trivial-rewrite: bad command startup -- throttling
Nov  4 20:27:26 ines-VirtualBox postfix/smtpd[1985]: warning: problem talking to service rewrite: Success
Nov  4 20:27:26 ines-VirtualBox postfix/master[1010]: warning: process /usr/lib/postfix/trivial-rewrite pid 2149 exit status 1
Nov  4 20:28:26 ines-VirtualBox postfix/trivial-rewrite[2152]: warning: connect to mysql server 127.0.0.1: Access denied for user 'postfix'@'localhost' (using password: YES)
Nov  4 20:28:26 ines-VirtualBox postfix/trivial-rewrite[2152]: fatal: mysql:/etc/postfix/mysql-virtual_aliases.cf(0,lock|fold_fix): table lookup problem
Nov  4 20:28:26 ines-VirtualBox postfix/trivial-rewrite[2153]: warning: connect to mysql server 127.0.0.1: Access denied for user 'postfix'@'localhost' (using password: YES)
Nov  4 20:28:26 ines-VirtualBox postfix/trivial-rewrite[2153]: fatal: mysql:/etc/postfix/mysql-virtual_aliases.cf(0,lock|fold_fix): table lookup problem
Nov  4 20:28:27 ines-VirtualBox postfix/smtpd[1781]: warning: problem talking to service rewrite: Success
Nov  4 20:28:27 ines-VirtualBox postfix/cleanup[1050]: warning: problem talking to service rewrite: Connection reset by peer
Nov  4 20:28:27 ines-VirtualBox postfix/master[1010]: warning: process /usr/lib/postfix/trivial-rewrite pid 2152 exit status 1
Nov  4 20:28:27 ines-VirtualBox postfix/master[1010]: warning: /usr/lib/postfix/trivial-rewrite: bad command startup -- throttling
Nov  4 20:28:27 ines-VirtualBox postfix/smtpd[1985]: warning: problem talking to service rewrite: Success
Nov  4 20:28:27 ines-VirtualBox postfix/master[1010]: warning: process /usr/lib/postfix/trivial-rewrite pid 2153 exit status 1
Nov  4 20:29:27 ines-VirtualBox postfix/trivial-rewrite[2155]: warning: connect to mysql server 127.0.0.1: Access denied for user 'postfix'@'localhost' (using password: YES)
Nov  4 20:29:27 ines-VirtualBox postfix/trivial-rewrite[2155]: fatal: mysql:/etc/postfix/mysql-virtual_aliases.cf(0,lock|fold_fix): table lookup problem
Nov  4 20:29:27 ines-VirtualBox postfix/trivial-rewrite[2156]: warning: connect to mysql server 127.0.0.1: Access denied for user 'postfix'@'localhost' (using password: YES)
Nov  4 20:29:27 ines-VirtualBox postfix/trivial-rewrite[2156]: fatal: mysql:/etc/postfix/mysql-virtual_aliases.cf(0,lock|fold_fix): table lookup problem
Nov  4 20:29:28 ines-VirtualBox postfix/smtpd[1781]: warning: problem talking to service rewrite: Success
Nov  4 20:29:28 ines-VirtualBox postfix/cleanup[1050]: warning: problem talking to service rewrite: Connection reset by peer
Nov  4 20:29:28 ines-VirtualBox postfix/master[1010]: warning: process /usr/lib/postfix/trivial-rewrite pid 2155 exit status 1
Nov  4 20:29:28 ines-VirtualBox postfix/master[1010]: warning: /usr/lib/postfix/trivial-rewrite: bad command startup -- throttling
Nov  4 20:29:28 ines-VirtualBox postfix/smtpd[1985]: warning: problem talking to service rewrite: Success
Nov  4 20:29:28 ines-VirtualBox postfix/master[1010]: warning: process /usr/lib/postfix/trivial-rewrite pid 2156 exit status 1
=================================================================

J'ai tapé la commande newaliases.

Mais, j'ai au toujours le même problème.

Est ce que je dois configurer un serveur DNS pour avoir un nom de domaine ou quoi?


Merci de m'aider SVP,

Dernière modification par slasher-fun (Le 04/11/2012, à 22:07)

Hors ligne

#2 Le 04/11/2012, à 22:57

xavier4811

Re : Postfix test sur ubuntu/serveur mail

Et quelle vidéo ?
En premier il y a un problème de connexion MySQL

Nov  4 20:29:27 ines-VirtualBox postfix/trivial-rewrite[2155]: warning: connect to mysql server 127.0.0.1: Access denied for user 'postfix'@'localhost' (using password: YES)

d'ailleurs pourquoi MySQL ? C'est vraiment nécéssaire ? Postfix peut tourner sans.

Hors ligne

#3 Le 11/11/2012, à 22:52

tiramiseb

Re : Postfix test sur ubuntu/serveur mail

Une personne avait estimé que ce message un doublon mais en fait non ; cette discussion a été rouverte depuis.
Je reprend ici le message que j'avais posté sur un autre fil suite à cette fermeture afin de rester cohérent dans le suivi des conversations.

----

Nov  4 20:27:25 ines-VirtualBox postfix/trivial-rewrite[2148]: warning: connect to mysql server 127.0.0.1: Access denied for user 'postfix'@'localhost' (using password: YES)
Nov  4 20:27:25 ines-VirtualBox postfix/trivial-rewrite[2148]: fatal: mysql:/etc/postfix/mysql-virtual_aliases.cf(0,lock|fold_fix): table lookup problem

Comme l'a pointé xavier4811, tu as un problème de connexion à une base de données MySQL.
Comme l'a également précisé xavier4811, MySQL n'est pas nécessaire pour Postfix.

Il me semble que le didacticiel que tu as suivi est bien trop compliqué pour une première mise en place pour un "débutant".
Soit tu souhaites conserver cette base SQL (peut-être ce fonctionnement correspond-il à ton besoin) et il faut donc corriger cette erreur d'accès (Postfix est-il bien configuré avec un bon mot de passe et le bon nom de base de données ? La base de données en question existe-t-elle ? Les droits dans la base sont-ils bon ?).
Soit cette base n'est pas nécessaire et je te conseillerais alors de configurer Postfix sans MySQL (avec par exemple la ligne

virtual_alias_maps = hash:/etc/postfix/virtual

dans ton fichier mail.cf).

Dans tous les cas, je pense qu'il te faut lire la documentation de Postfix (http://www.postfix.org/documentation.html), sur ton problème précis tu peux trouver http://www.postfix.org/VIRTUAL_README.html, et la page http://www.postfix.org/BASIC_CONFIGURATION_README.html est vachement bien faite pour apprendre Postfix.

Hors ligne