cat /etc/redhat-release
uname -a
rpm -q postfix
salut
voici ce qui retourne ces commande
[root@localhost ~]# cat /etc/redhat-release
Fedora release 10 (Cambridge)
[root@localhost ~]# uname -a
Linux localhost.localdomain 2.6.27.41-170.2.117.fc10.i686 #1 SMP Thu Dec 10 11:00:29 EST 2009 i686 i686 i386 GNU/Linux
[root@localhost ~]# rpm -q postfix
postfix-2.5.6-1.fc10.i386
[root@localhost ~]#
Bon essaye :
/usr/bin/newaliases.postfix
mais normalement le alternatives --config mta aurait du créer le lien symbolique /usr/bin/newaliases
il ne donne aucun resultat
[root@localhost ~]# /usr/bin/newaliases.postfix
C'est le grand bazar sur ton serveur !!!!
ls -l /etc/alternatives/mta*
Elle est où l'erreur ? Là il te dis que l'email a été bien envoyé.
bonjour
voici ce qui retourne cette commande:
[root@localhost ~]# ls -l /etc/alternatives/mta*
lrwxrwxrwx 1 root root 26 avril 21 16:33 /etc/alternatives/mta -> /usr/sbin/sendmail.postfix
lrwxrwxrwx 1 root root 40 avril 21 16:33 /etc/alternatives/mta-aliasesman -> /usr/share/man/man5/aliases.postfix.5.gz
lrwxrwxrwx 1 root root 22 avril 21 16:33 /etc/alternatives/mta-mailq -> /usr/bin/mailq.postfix
lrwxrwxrwx 1 root root 38 avril 21 16:33 /etc/alternatives/mta-mailqman -> /usr/share/man/man1/mailq.postfix.1.gz
lrwxrwxrwx 1 root root 27 avril 21 16:33 /etc/alternatives/mta-newaliases -> /usr/bin/newaliases.postfix
lrwxrwxrwx 1 root root 43 avril 21 16:33 /etc/alternatives/mta-newaliasesman -> /usr/share/man/man1/newaliases.postfix.1.gz
lrwxrwxrwx 1 root root 23 avril 21 16:33 /etc/alternatives/mta-pam -> /etc/pam.d/smtp.postfix
lrwxrwxrwx 1 root root 22 avril 21 16:33 /etc/alternatives/mta-rmail -> /usr/bin/rmail.postfix
lrwxrwxrwx 1 root root 25 avril 21 16:33 /etc/alternatives/mta-sendmail -> /usr/lib/sendmail.postfix
lrwxrwxrwx 1 root root 41 avril 21 16:33 /etc/alternatives/mta-sendmailman -> /usr/share/man/man1/sendmail.postfix.1.gz
[root@localhost ~]#
Je ne sais pas comment tu as installé ton serveur, mais les droits sur les fichiers sont corrompus.
On va tenter de les réparer :
alternatives --remove mta /usr/sbin/sendmail.postfix
rpm --setperms postfix
alternatives --config mta (choisir postfix puis valider)
ls -l /usr/bin/newaliases
voici le resultat
[root@localhost ~]# alternatives --remove mta /usr/sbin/sendmail.postfix
[root@localhost ~]# rpm --setperms postfix
[root@localhost ~]# alternatives --config mta

Il existe 1 programmes qui fournissent mta.

  Sélection    Commande
-----------------------------------------------
*  1           /usr/sbin/sendmail.ssmtp

Entrez pour garder la sélection courante [+] ou saisissez le numéro de type de sélection :2   

Il existe 1 programmes qui fournissent mta.

  Sélection    Commande
-----------------------------------------------
*  1           /usr/sbin/sendmail.ssmtp

Entrez pour garder la sélection courante [+] ou saisissez le numéro de type de sélection :1
[root@localhost ~]# ls -l /usr/bin/newaliases
-rw-r--r-- 1 root root 0 avril 22 09:54 /usr/bin/newaliases
[root@localhost ~]#
oups, il en manquait un bout :
/usr/sbin/alternatives --install /usr/sbin/sendmail mta /usr/sbin/sendmail.postfix 30 \
--slave /usr/bin/mailq mta-mailq /usr/bin/mailq.postfix \
--slave /usr/bin/newaliases mta-newaliases /usr/bin/newaliases.postfix \
--slave /etc/pam.d/smtp mta-pam /etc/pam.d/smtp.postfix \
--slave /usr/bin/rmail mta-rmail /usr/bin/rmail.postfix \
--slave /usr/lib/sendmail mta-sendmail /usr/lib/sendmail.postfix \
--slave /usr/share/man/man1/mailq.1.gz mta-mailqman /usr/share/man/man1/mailq.postfix.1.gz \
--slave /usr/share/man/man1/newaliases.1.gz mta-newaliasesman /usr/share/man/man1/newaliases.postfix.1.gz \
--slave /usr/share/man/man8/sendmail.8.gz mta-sendmailman /usr/share/man/man1/sendmail.postfix.1.gz \
--slave /usr/share/man/man5/aliases.5.gz mta-aliasesman /usr/share/man/man5/aliases.postfix.5.gz \
--initscript postfix
puis
alternatives --config mta (choisir postfix puis valider)
ls -l /usr/bin/newaliases
voici le code
[root@localhost ~]# alternatives --config mta

Il existe 2 programmes qui fournissent « mta ».

  Sélection    Commande
-----------------------------------------------
*+ 1           /usr/sbin/sendmail.ssmtp
   2           /usr/sbin/sendmail.postfix

Entrez pour garder la sélection courante [+] ou saisissez le numéro de type de sélection :2
[root@localhost ~]# ls -l /usr/bin/newaliases
-rw-r--r-- 1 root root 0 avril 22 09:54 /usr/bin/newaliases
[root@localhost ~]#
Ça me semble mieux :
refais tes aliases (commande newaliases), puis relance postfix (service postfix restart) et réessaye d'envoyer un mail
salut
je reinstalle postfix et je tappe la commande d'envoi d'emain mais l'email ne recoit pas à l'utilisateur
svp aider moi et merci d'avance
Quelles sont les logs dans /var/log/maillog ?

PS : pas la peine d'ouvrir un nouveau thread !!!
salut proxy,
le fichier de log sarrete a executer les erreur je ne sait pas pourquoi?
Es tu certain que postfix est lancé ?
Montre quand même la fin du fichier de log
voici le fichier de log fonctionne un temps puis s'arrete
Apr 22 12:46:48 tarek postfix/postfix-script[2352]: starting the Postfix mail system
Apr 22 12:46:48 tarek postfix/master[2353]: daemon started -- version 2.5.6, configuration /etc/postfix
Apr 22 12:46:49 tarek postfix/postfix-script[2364]: stopping the Postfix mail system
Apr 22 12:46:49 tarek postfix/master[2353]: terminating on signal 15
Apr 22 12:46:49 tarek postfix/postfix-script[2415]: starting the Postfix mail system
Apr 22 12:46:49 tarek postfix/master[2416]: daemon started -- version 2.5.6, configuration /etc/postfix
Apr 22 14:04:51 tarek postfix/postfix-script[2379]: fatal: the Postfix mail system is not running
Apr 22 14:04:51 tarek postfix/postfix-script[2428]: starting the Postfix mail system
Apr 22 14:04:51 tarek postfix/master[2429]: daemon started -- version 2.5.6, configuration /etc/postfix
Apr 22 14:04:53 tarek postfix/postfix-script[2440]: stopping the Postfix mail system
Apr 22 14:04:53 tarek postfix/master[2429]: terminating on signal 15
Apr 22 14:04:53 tarek postfix/postfix-script[2491]: starting the Postfix mail system
Apr 22 14:04:53 tarek postfix/master[2492]: daemon started -- version 2.5.6, configuration /etc/postfix
en principe, les messages que tu envoies ( et qui ne sont pas partis) sont sous /var/spool/mail.
Regarde les mails (le nom est celui de ton login ou bien de root si tu envoies tes messages par root), il y a l'indication du problème.
Pour mon postfix, je me suis inspiré de : http://www.linux-france.org/article/mail/postfix-jaco/
Cordialement.
bonjour proxy,
voici les erreur du mon fichier log et svp aider moi de les recuperer
Apr 23 09:29:17 tarek postfix/master[2544]: daemon started -- version 2.5.6, configuration /etc/postfix
Apr 23 09:29:17 tarek postfix/pickup[2546]: 53985644065: uid=0 from=<root>
Apr 23 09:29:17 tarek postfix/cleanup[2548]: 53985644065: message-id=<20100423072917.53985644065@tarek.isitcom>
Apr 23 09:29:17 tarek postfix/qmgr[2547]: 53985644065: from=<root@tarek.isitcom>, size=764, nrcpt=1 (queue active)
Apr 23 09:29:17 tarek postfix/pickup[2546]: 5BEB9644069: uid=0 from=<root>
Apr 23 09:29:17 tarek postfix/cleanup[2548]: 5BEB9644069: message-id=<20100423072917.5BEB9644069@tarek.isitcom>
Apr 23 09:29:17 tarek postfix/qmgr[2547]: 5BEB9644069: from=<root@tarek.isitcom>, size=764, nrcpt=1 (queue active)
Apr 23 09:29:17 tarek postfix/pickup[2546]: 62234644360: uid=0 from=<root>
Apr 23 09:29:17 tarek postfix/cleanup[2550]: 62234644360: message-id=<20100423072917.62234644360@tarek.isitcom>
Apr 23 09:29:17 tarek postfix/qmgr[2547]: 62234644360: from=<root@tarek.isitcom>, size=764, nrcpt=1 (queue active)
Apr 23 09:29:17 tarek postfix/pickup[2546]: 65279644361: uid=0 from=<root>
Apr 23 09:29:17 tarek postfix/cleanup[2548]: 65279644361: message-id=<20100423072917.65279644361@tarek.isitcom>
Apr 23 09:29:17 tarek postfix/qmgr[2547]: 65279644361: from=<root@tarek.isitcom>, size=764, nrcpt=1 (queue active)
Apr 23 09:29:17 tarek postfix/pickup[2546]: 6E84E644362: uid=0 from=<root>
Apr 23 09:29:17 tarek postfix/cleanup[2550]: 6E84E644362: message-id=<20100423072917.6E84E644362@tarek.isitcom>
Apr 23 09:29:17 tarek postfix/local[2551]: 53985644065: to=<root@tarek.isitcom>, orig_to=<root>, relay=local, delay=55756, delays=55755/0.06/0/0.02, dsn=2.0.0, status=sent (delivered to mailbox)
Apr 23 09:29:17 tarek postfix/qmgr[2547]: 53985644065: removed
Apr 23 09:29:17 tarek postfix/qmgr[2547]: 6E84E644362: from=<root@tarek.isitcom>, size=822, nrcpt=1 (queue active)
Apr 23 09:29:17 tarek postfix/pickup[2546]: 6F404644065: uid=0 from=<root>
Apr 23 09:29:17 tarek postfix/cleanup[2548]: 6F404644065: message-id=<20100423072917.6F404644065@tarek.isitcom>
Apr 23 09:29:17 tarek postfix/local[2551]: 62234644360: to=<root@tarek.isitcom>, orig_to=<root>, relay=local, delay=34156, delays=34156/0.04/0/0.01, dsn=2.0.0, status=sent (delivered to mailbox)
Apr 23 09:29:17 tarek postfix/qmgr[2547]: 62234644360: removed
Apr 23 09:29:17 tarek postfix/qmgr[2547]: 6F404644065: from=<root@tarek.isitcom>, size=16106, nrcpt=1 (queue active)
Apr 23 09:29:17 tarek postfix/pickup[2546]: 71CED644360: uid=0 from=<root>
Apr 23 09:29:17 tarek postfix/cleanup[2550]: 71CED644360: message-id=<20100423072917.71CED644360@tarek.isitcom>
Apr 23 09:29:17 tarek postfix/local[2553]: 65279644361: to=<root@tarek.isitcom>, orig_to=<root>, relay=local, delay=1756, delays=1756/0.01/0/0.01, dsn=2.0.0, status=sent (delivered to mailbox)
Apr 23 09:29:17 tarek postfix/qmgr[2547]: 65279644361: removed
Apr 23 09:29:17 tarek postfix/qmgr[2547]: 71CED644360: from=<root@tarek.isitcom>, size=764, nrcpt=1 (queue active)
Apr 23 09:29:17 tarek postfix/pickup[2546]: 74238644437: uid=0 from=<root>
Apr 23 09:29:17 tarek postfix/cleanup[2548]: 74238644437: message-id=<20100423072917.74238644437@tarek.isitcom>
Apr 23 09:29:17 tarek postfix/local[2551]: 6E84E644362: to=<root@tarek.isitcom>, orig_to=<root>, relay=local, delay=18118, delays=18118/0.02/0/0, dsn=2.0.0, status=sent (delivered to mailbox)
Apr 23 09:29:17 tarek postfix/qmgr[2547]: 6E84E644362: removed
Apr 23 09:29:17 tarek postfix/qmgr[2547]: 74238644437: from=<root@tarek.isitcom>, size=764, nrcpt=1 (queue active)
Apr 23 09:29:17 tarek postfix/local[2553]: 6F404644065: to=<root@tarek.isitcom>, orig_to=<root>, relay=local, delay=18374, delays=18374/0.01/0/0, dsn=2.0.0, status=sent (delivered to mailbox)
Apr 23 09:29:17 tarek postfix/qmgr[2547]: 6F404644065: removed
Apr 23 09:29:17 tarek postfix/local[2551]: 71CED644360: to=<root@tarek.isitcom>, orig_to=<root>, relay=local, delay=12556, delays=12556/0/0/0, dsn=2.0.0, status=sent (delivered to mailbox)
Apr 23 09:29:17 tarek postfix/qmgr[2547]: 71CED644360: removed
Apr 23 09:29:17 tarek postfix/local[2553]: 74238644437: to=<root@tarek.isitcom>, orig_to=<root>, relay=local, delay=23356, delays=23356/0/0/0, dsn=2.0.0, status=sent (delivered to mailbox)
Apr 23 09:29:17 tarek postfix/qmgr[2547]: 74238644437: removed
Apr 23 09:29:18 tarek postfix/local[2552]: 5BEB9644069: to=<root@tarek.isitcom>, orig_to=<root>, relay=local, delay=44957, delays=44956/0.04/0/0.8, dsn=2.0.0, status=sent (delivered to mailbox)
Apr 23 09:29:18 tarek postfix/qmgr[2547]: 5BEB9644069: removed
Apr 23 09:29:18 tarek postfix/postfix-script[2561]: stopping the Postfix mail system
Apr 23 09:29:18 tarek postfix/master[2544]: terminating on signal 15
Apr 23 09:29:18 tarek postfix/postfix-script[2612]: starting the Postfix mail system
Apr 23 09:29:18 tarek postfix/master[2613]: daemon started -- version 2.5.6, configuration /etc/postfix
Apr 23 09:29:20 tarek postfix/postfix-script[2624]: stopping the Postfix mail system
Apr 23 09:29:20 tarek postfix/master[2613]: terminating on signal 15
Apr 23 09:29:20 tarek postfix/postfix-script[2675]: starting the Postfix mail system
Apr 23 09:29:20 tarek postfix/master[2676]: daemon started -- version 2.5.6, configuration /etc/postfix
                                                                                                                                                                                         128,1         Bas
Je ne vois pas d'erreurs
status=sent (delivered to mailbox)
.
Je vois que depuis root tu as envoyé des mails à root.
Pour les lire, depuis root, utilise la commande mail