Envoie de mail avec Postfix
Résolu
Akku
Messages postés
50
Date d'inscription
Statut
Membre
Dernière intervention
-
Akku Messages postés 50 Date d'inscription Statut Membre Dernière intervention -
Akku Messages postés 50 Date d'inscription Statut Membre Dernière intervention -
Bonjour,
J'ai deux serveurs un chez moi et un chez un client. les deux tournent sur Fedora.
Je n'ai pas de problème pour envoyer des e-mails depuis le serveur de mon entreprise, j'ai parametré le relayhost=smtp.free.fr
et j'ai créé un alias pour que l'utilisateur root envoi des e-mails en tant que root@domaine.com
quand j'utilise la commande
# mail adresse@domaine.fr -s essai
Je reçois bien l'e-mail.
Mais chez le client ça ne fonctionne pas, j'ai pourtant fais la même chose, je lui ai mis l'adresse IP du smtp de son fournisseur et j'ai créé un alias sur root.
mais quand je tape la commande rien n'arrive dans ma boite mail, ni dans mes spams.
J'ai regardé le maillog et voilà ce qu'il me retourne
Apr 7 13:42:54 MACHINECLIENT sendmail[5269]: n37BgsEo005269: from=root, size=47, class=0, nrcpts=1, msgid=<200904071142.n37BgsEo005269@localhost.localdomain>, relay=root@localhost
Apr 7 13:42:54 MACHINECLIENT sendmail[5269]: n37BgsEo005269: to=adresse@domaine.fr, delay=00:00:00, mailer=esmtp, pri=30047, dsn=4.4.3, stat=queued
J'ai deux serveurs un chez moi et un chez un client. les deux tournent sur Fedora.
Je n'ai pas de problème pour envoyer des e-mails depuis le serveur de mon entreprise, j'ai parametré le relayhost=smtp.free.fr
et j'ai créé un alias pour que l'utilisateur root envoi des e-mails en tant que root@domaine.com
quand j'utilise la commande
# mail adresse@domaine.fr -s essai
Je reçois bien l'e-mail.
Mais chez le client ça ne fonctionne pas, j'ai pourtant fais la même chose, je lui ai mis l'adresse IP du smtp de son fournisseur et j'ai créé un alias sur root.
mais quand je tape la commande rien n'arrive dans ma boite mail, ni dans mes spams.
J'ai regardé le maillog et voilà ce qu'il me retourne
Apr 7 13:42:54 MACHINECLIENT sendmail[5269]: n37BgsEo005269: from=root, size=47, class=0, nrcpts=1, msgid=<200904071142.n37BgsEo005269@localhost.localdomain>, relay=root@localhost
Apr 7 13:42:54 MACHINECLIENT sendmail[5269]: n37BgsEo005269: to=adresse@domaine.fr, delay=00:00:00, mailer=esmtp, pri=30047, dsn=4.4.3, stat=queued
A voir également:
- Envoie de mail avec Postfix
- Windows live mail - Télécharger - Mail
- Publipostage mail - Accueil - Word
- Envoyer un mail avec accusé de reception gmail - Guide
- Gmail envoyer un mail - Guide
- Programmer envoi mail gmail - Guide
28 réponses
Bonjour,
C'est probalement un probleme de DNS : sur le serveur du client, il faut mettre les DNS de son fournisseur d'acces, sinon le smtp relai va rejetter les mails.
Au niveau de la config postfix, il faut que le nom du serveur soit canonique : il faut que l'adresse soit routable (directive myhostname) et que le champ MX soit renseigné dans les DNS gerant le nom de domaine (correspondant à la directive mailname). Autrement il n'y pas de retour possible en cas d'erreur (localhost.localdomain ca va pas bien loin...)
donc dans votre main.cf il faut :
myhostname = smtp.domaine.fr ou un nom qui soit déclaré sur les DNS
mailname = domaine.fr
sur le DNS :
MX à domaine.fr
A smtp.domaine.fr x.x.x.x
C'est probalement un probleme de DNS : sur le serveur du client, il faut mettre les DNS de son fournisseur d'acces, sinon le smtp relai va rejetter les mails.
Au niveau de la config postfix, il faut que le nom du serveur soit canonique : il faut que l'adresse soit routable (directive myhostname) et que le champ MX soit renseigné dans les DNS gerant le nom de domaine (correspondant à la directive mailname). Autrement il n'y pas de retour possible en cas d'erreur (localhost.localdomain ca va pas bien loin...)
donc dans votre main.cf il faut :
myhostname = smtp.domaine.fr ou un nom qui soit déclaré sur les DNS
mailname = domaine.fr
sur le DNS :
MX à domaine.fr
A smtp.domaine.fr x.x.x.x
Bonjour dubcek,
oui ça fonctionne.
En retour j'ai
Trying xxx.xxx.xxx.xxx...
Connected to xxx.xxx.xxx.xxx.
Escape character is '^]'.
220 smtp01.fournisseur.net ESMTP
puis il attend une entrée clavier.
oui ça fonctionne.
En retour j'ai
Trying xxx.xxx.xxx.xxx...
Connected to xxx.xxx.xxx.xxx.
Escape character is '^]'.
220 smtp01.fournisseur.net ESMTP
puis il attend une entrée clavier.
Vous n’avez pas trouvé la réponse que vous recherchez ?
Posez votre question
la configuration des 2 serveurs est la même ?
chez le client, le serveur démarre bien en mode daemon ?
dans /var/spool/mqueue, il doit y avoir plusieurs fichiers, dont 1 qui indique la raison du queued,peut-être ou dans /var/spool/postfix/deferred
chez le client, le serveur démarre bien en mode daemon ?
dans /var/spool/mqueue, il doit y avoir plusieurs fichiers, dont 1 qui indique la raison du queued,peut-être ou dans /var/spool/postfix/deferred
j'ai fais un # ls -all
Il semble ne rien avoir
drwx------ 2 root mail 4096 2009-04-07 13:41 .
drwxr-xr-x 14 root root 4096 2009-02-20 14:52 ..
J'ai effectué la même procédure pour configurer les serveurs, seuls les paramètres changent vu qu'ils ne sont pas chez le même fournisseurs
Sinon j'ai relevé le log du serveur local
Apr 7 16:13:27 MACHINELOCAL sendmail[22596]: n37EDRec022596: from=root, size=55, class=0, nrcpts=1, msgid=<200904071413.n37EDRec022596@localhost.localdomain>, relay=root@localhost
Apr 7 16:13:27 MACHINELOCAL postfix/smtpd[22598]: connect from MACHINELOCAL[127.0.0.1]
Apr 7 16:13:27 MACHINELOCAL postfix/smtpd[22598]: D38FB10C823: client=MACHINELOCAL[127.0.0.1]
Apr 7 16:13:27 MACHINELOCAL postfix/cleanup[22601]: D38FB10C823: message-id=<200904071413.n37EDRec022596@localhost.localdomain>
Apr 7 16:13:27 MACHINELOCAL postfix/qmgr[12558]: D38FB10C823: from=<root@expediteur.com>, size=558, nrcpt=1 (queue active)
Apr 7 16:13:27 MACHINELOCAL sendmail[22596]: n37EDRec022596: to=adress@domaine.fr, ctladdr=root (0/0), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=30055, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0,$
Apr 7 16:13:27 MACHINELOCAL postfix/smtpd[22598]: disconnect from MACHINELOCAL[127.0.0.1]
Apr 7 16:13:28 MACHINELOCAL postfix/smtp[22602]: D38FB10C823: to=<adresse@domaine.fr>, relay=212.27.48.4[212.27.48.4]:25, delay=0.21, delays=0.06/0.01/0.08/0.06, dsn=2.0.0, status=sent (250 2.0.0 Ok: que$
Apr 7 16:13:28 MACHINELOCAL postfix/qmgr[12558]: D38FB10C823: removed
---édition---
Je démarre le postfix à la main service postfix start
Il semble ne rien avoir
drwx------ 2 root mail 4096 2009-04-07 13:41 .
drwxr-xr-x 14 root root 4096 2009-02-20 14:52 ..
J'ai effectué la même procédure pour configurer les serveurs, seuls les paramètres changent vu qu'ils ne sont pas chez le même fournisseurs
Sinon j'ai relevé le log du serveur local
Apr 7 16:13:27 MACHINELOCAL sendmail[22596]: n37EDRec022596: from=root, size=55, class=0, nrcpts=1, msgid=<200904071413.n37EDRec022596@localhost.localdomain>, relay=root@localhost
Apr 7 16:13:27 MACHINELOCAL postfix/smtpd[22598]: connect from MACHINELOCAL[127.0.0.1]
Apr 7 16:13:27 MACHINELOCAL postfix/smtpd[22598]: D38FB10C823: client=MACHINELOCAL[127.0.0.1]
Apr 7 16:13:27 MACHINELOCAL postfix/cleanup[22601]: D38FB10C823: message-id=<200904071413.n37EDRec022596@localhost.localdomain>
Apr 7 16:13:27 MACHINELOCAL postfix/qmgr[12558]: D38FB10C823: from=<root@expediteur.com>, size=558, nrcpt=1 (queue active)
Apr 7 16:13:27 MACHINELOCAL sendmail[22596]: n37EDRec022596: to=adress@domaine.fr, ctladdr=root (0/0), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=30055, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0,$
Apr 7 16:13:27 MACHINELOCAL postfix/smtpd[22598]: disconnect from MACHINELOCAL[127.0.0.1]
Apr 7 16:13:28 MACHINELOCAL postfix/smtp[22602]: D38FB10C823: to=<adresse@domaine.fr>, relay=212.27.48.4[212.27.48.4]:25, delay=0.21, delays=0.06/0.01/0.08/0.06, dsn=2.0.0, status=sent (250 2.0.0 Ok: que$
Apr 7 16:13:28 MACHINELOCAL postfix/qmgr[12558]: D38FB10C823: removed
---édition---
Je démarre le postfix à la main service postfix start
les directory de mqueue peuvent varier, qu'y a-t-il dans /var/spool ? si le message est "queued" il doit attendre quelque part
dans /var/spool/ j'ai :
total 56
drwxr-xr-x 14 root root 4096 2009-02-20 14:52 .
drwxr-xr-x 20 root root 4096 2008-11-10 23:40 ..
drwxr-xr-x 2 root root 4096 2008-10-23 16:00 anacron
drwx------ 3 daemon daemon 4096 2008-09-17 11:01 at
drwxrwx--- 2 smmsp smmsp 4096 2009-04-07 16:09 clientmqueue
drwx------ 2 root root 4096 2008-06-04 11:08 cron
drwx--x--- 3 root lp 4096 2008-10-10 10:49 cups
drwxr-xr-x 2 root root 4096 2008-04-07 23:44 lpd
drwxrwxr-x 2 root mail 4096 2009-04-07 13:41 mail
drwx------ 2 root mail 4096 2009-04-07 13:41 mqueue
drwxr-xr-x 16 root root 4096 2009-02-20 14:52 postfix
drwxr-xr-x 2 root root 4096 2008-04-18 18:52 repackage
drwxr-x--- 2 squid squid 4096 2008-07-02 11:33 squid
drwxrwxrwt 2 root root 4096 2008-03-03 18:49 vbox
"queued" doit apparaitre quand je fais un ls ou d'une autre manière?
dans postfix j'ai
drwxr-xr-x 16 root root 4096 2009-02-20 14:52 .
drwxr-xr-x 14 root root 4096 2009-02-20 14:52 ..
drwx------ 2 postfix root 4096 2009-04-07 04:50 active
drwx------ 2 postfix root 4096 2008-09-30 16:36 bounce
drwx------ 2 postfix root 4096 2008-09-30 16:36 corrupt
drwx------ 2 postfix root 4096 2008-09-30 16:36 defer
drwx------ 2 postfix root 4096 2008-09-30 16:36 deferred
drwx------ 2 postfix root 4096 2008-09-30 16:36 flush
drwx------ 2 postfix root 4096 2008-09-30 16:36 hold
drwx------ 2 postfix root 4096 2009-04-07 04:50 incoming
drwx-wx--- 2 postfix postdrop 4096 2008-09-30 16:36 maildrop
drwxr-xr-x 2 root root 4096 2009-02-21 04:50 pid
drwx------ 2 postfix root 4096 2009-04-07 13:42 private
drwx--x--- 2 postfix postdrop 4096 2009-04-07 13:42 public
drwx------ 2 postfix root 4096 2008-09-30 16:36 saved
drwx------ 2 postfix root 4096 2008-09-30 16:36 trace
total 56
drwxr-xr-x 14 root root 4096 2009-02-20 14:52 .
drwxr-xr-x 20 root root 4096 2008-11-10 23:40 ..
drwxr-xr-x 2 root root 4096 2008-10-23 16:00 anacron
drwx------ 3 daemon daemon 4096 2008-09-17 11:01 at
drwxrwx--- 2 smmsp smmsp 4096 2009-04-07 16:09 clientmqueue
drwx------ 2 root root 4096 2008-06-04 11:08 cron
drwx--x--- 3 root lp 4096 2008-10-10 10:49 cups
drwxr-xr-x 2 root root 4096 2008-04-07 23:44 lpd
drwxrwxr-x 2 root mail 4096 2009-04-07 13:41 mail
drwx------ 2 root mail 4096 2009-04-07 13:41 mqueue
drwxr-xr-x 16 root root 4096 2009-02-20 14:52 postfix
drwxr-xr-x 2 root root 4096 2008-04-18 18:52 repackage
drwxr-x--- 2 squid squid 4096 2008-07-02 11:33 squid
drwxrwxrwt 2 root root 4096 2008-03-03 18:49 vbox
"queued" doit apparaitre quand je fais un ls ou d'une autre manière?
dans postfix j'ai
drwxr-xr-x 16 root root 4096 2009-02-20 14:52 .
drwxr-xr-x 14 root root 4096 2009-02-20 14:52 ..
drwx------ 2 postfix root 4096 2009-04-07 04:50 active
drwx------ 2 postfix root 4096 2008-09-30 16:36 bounce
drwx------ 2 postfix root 4096 2008-09-30 16:36 corrupt
drwx------ 2 postfix root 4096 2008-09-30 16:36 defer
drwx------ 2 postfix root 4096 2008-09-30 16:36 deferred
drwx------ 2 postfix root 4096 2008-09-30 16:36 flush
drwx------ 2 postfix root 4096 2008-09-30 16:36 hold
drwx------ 2 postfix root 4096 2009-04-07 04:50 incoming
drwx-wx--- 2 postfix postdrop 4096 2008-09-30 16:36 maildrop
drwxr-xr-x 2 root root 4096 2009-02-21 04:50 pid
drwx------ 2 postfix root 4096 2009-04-07 13:42 private
drwx--x--- 2 postfix postdrop 4096 2009-04-07 13:42 public
drwx------ 2 postfix root 4096 2008-09-30 16:36 saved
drwx------ 2 postfix root 4096 2008-09-30 16:36 trace
Bonjour kiki,
Je n'ai pas bien compris la dernière partie de ton explication sur le DNS
Par contre quand je renseigne myhostname = smtp.fournisseur.net je ne peut plus recharger postfix ni l'arreter
Je n'ai pas bien compris la dernière partie de ton explication sur le DNS
Par contre quand je renseigne myhostname = smtp.fournisseur.net je ne peut plus recharger postfix ni l'arreter
/var/spool/clientmqueue contient :
total 168
drwxrwx--- 2 smmsp smmsp 4096 2009-04-08 04:50 .
drwxr-xr-x 14 root root 4096 2009-02-20 14:52 ..
-rw-rw---- 1 smmsp smmsp 6 2009-04-03 13:29 dfn33BTBwM029541
-rw-rw---- 1 smmsp smmsp 28 2009-04-03 17:26 dfn33FQGDs001355
-rw-rw---- 1 smmsp smmsp 17 2009-04-04 15:17 dfn34DHjaW032678
-rw-rw---- 1 smmsp smmsp 160 2009-04-06 10:30 dfn368UFkB000674
-rw-rw---- 1 smmsp smmsp 10 2009-04-06 12:10 dfn36AAlNg007356
-rw-rw---- 1 smmsp smmsp 7 2009-04-06 12:12 dfn36ACFY7007526
-rw-rw---- 1 smmsp smmsp 7 2009-04-06 12:13 dfn36ADYhJ007699
-rw-rw---- 1 smmsp smmsp 17 2009-04-06 12:25 dfn36APGTo008519
-rw-rw---- 1 smmsp smmsp 17 2009-04-06 16:07 dfn36E7dnn032229
-rw-rw---- 1 smmsp smmsp 21 2009-04-06 16:08 dfn36E8CBN032376
-rw-rw---- 1 smmsp smmsp 12 2009-04-06 17:40 dfn36FeRh6005752
-rw-rw---- 1 smmsp smmsp 22 2009-04-07 10:50 dfn378oBPe014820
-rw-rw---- 1 smmsp smmsp 22 2009-04-07 10:54 dfn378sMr9015889
-rw-rw---- 1 smmsp smmsp 5 2009-04-07 10:57 dfn378vfWe016950
-rw-rw---- 1 smmsp smmsp 6 2009-04-07 12:36 dfn37Aa8Xx014884
-rw-rw---- 1 smmsp smmsp 5 2009-04-07 12:11 dfn37ABLcG008260
-rw-rw---- 1 smmsp smmsp 12 2009-04-07 12:45 dfn37Aje0u019356
-rw-rw---- 1 smmsp smmsp 5 2009-04-07 13:42 dfn37BgsEo005269
-rw-rw---- 1 smmsp smmsp 9 2009-04-07 16:09 dfn37E9X7m012904
-rw-rw---- 1 smmsp smmsp 13 2009-04-07 17:20 dfn37FKdb3011338
-rw-rw---- 1 smmsp smmsp 619 2009-04-07 13:41 qfn33BTBwM029541
-rw-rw---- 1 smmsp smmsp 620 2009-04-07 13:41 qfn33FQGDs001355
-rw-rw---- 1 smmsp smmsp 619 2009-04-07 13:41 qfn34DHjaW032678
-rw-rw---- 1 smmsp smmsp 619 2009-04-07 13:41 qfn368UFkB000674
-rw-rw---- 1 smmsp smmsp 619 2009-04-07 13:41 qfn36AAlNg007356
-rw-rw---- 1 smmsp smmsp 619 2009-04-07 13:41 qfn36ACFY7007526
-rw-rw---- 1 smmsp smmsp 619 2009-04-07 13:41 qfn36ADYhJ007699
-rw-rw---- 1 smmsp smmsp 619 2009-04-07 13:41 qfn36APGTo008519
-rw-rw---- 1 smmsp smmsp 622 2009-04-07 13:41 qfn36E7dnn032229
-rw-rw---- 1 smmsp smmsp 622 2009-04-07 13:41 qfn36E8CBN032376
-rw-rw---- 1 smmsp smmsp 622 2009-04-07 13:41 qfn36FeRh6005752
-rw-rw---- 1 smmsp smmsp 618 2009-04-07 13:41 qfn378oBPe014820
-rw-rw---- 1 smmsp smmsp 618 2009-04-07 13:41 qfn378sMr9015889
-rw-rw---- 1 smmsp smmsp 618 2009-04-07 13:41 qfn378vfWe016950
-rw-rw---- 1 smmsp smmsp 618 2009-04-07 13:41 qfn37Aa8Xx014884
-rw-rw---- 1 smmsp smmsp 618 2009-04-07 13:41 qfn37ABLcG008260
-rw-rw---- 1 smmsp smmsp 618 2009-04-07 13:41 qfn37Aje0u019356
-rw-rw---- 1 smmsp smmsp 602 2009-04-07 13:42 qfn37BgsEo005269
-rw-rw---- 1 smmsp smmsp 602 2009-04-07 16:09 qfn37E9X7m012904
-rw-rw---- 1 smmsp smmsp 602 2009-04-07 17:20 qfn37FKdb3011338
total 168
drwxrwx--- 2 smmsp smmsp 4096 2009-04-08 04:50 .
drwxr-xr-x 14 root root 4096 2009-02-20 14:52 ..
-rw-rw---- 1 smmsp smmsp 6 2009-04-03 13:29 dfn33BTBwM029541
-rw-rw---- 1 smmsp smmsp 28 2009-04-03 17:26 dfn33FQGDs001355
-rw-rw---- 1 smmsp smmsp 17 2009-04-04 15:17 dfn34DHjaW032678
-rw-rw---- 1 smmsp smmsp 160 2009-04-06 10:30 dfn368UFkB000674
-rw-rw---- 1 smmsp smmsp 10 2009-04-06 12:10 dfn36AAlNg007356
-rw-rw---- 1 smmsp smmsp 7 2009-04-06 12:12 dfn36ACFY7007526
-rw-rw---- 1 smmsp smmsp 7 2009-04-06 12:13 dfn36ADYhJ007699
-rw-rw---- 1 smmsp smmsp 17 2009-04-06 12:25 dfn36APGTo008519
-rw-rw---- 1 smmsp smmsp 17 2009-04-06 16:07 dfn36E7dnn032229
-rw-rw---- 1 smmsp smmsp 21 2009-04-06 16:08 dfn36E8CBN032376
-rw-rw---- 1 smmsp smmsp 12 2009-04-06 17:40 dfn36FeRh6005752
-rw-rw---- 1 smmsp smmsp 22 2009-04-07 10:50 dfn378oBPe014820
-rw-rw---- 1 smmsp smmsp 22 2009-04-07 10:54 dfn378sMr9015889
-rw-rw---- 1 smmsp smmsp 5 2009-04-07 10:57 dfn378vfWe016950
-rw-rw---- 1 smmsp smmsp 6 2009-04-07 12:36 dfn37Aa8Xx014884
-rw-rw---- 1 smmsp smmsp 5 2009-04-07 12:11 dfn37ABLcG008260
-rw-rw---- 1 smmsp smmsp 12 2009-04-07 12:45 dfn37Aje0u019356
-rw-rw---- 1 smmsp smmsp 5 2009-04-07 13:42 dfn37BgsEo005269
-rw-rw---- 1 smmsp smmsp 9 2009-04-07 16:09 dfn37E9X7m012904
-rw-rw---- 1 smmsp smmsp 13 2009-04-07 17:20 dfn37FKdb3011338
-rw-rw---- 1 smmsp smmsp 619 2009-04-07 13:41 qfn33BTBwM029541
-rw-rw---- 1 smmsp smmsp 620 2009-04-07 13:41 qfn33FQGDs001355
-rw-rw---- 1 smmsp smmsp 619 2009-04-07 13:41 qfn34DHjaW032678
-rw-rw---- 1 smmsp smmsp 619 2009-04-07 13:41 qfn368UFkB000674
-rw-rw---- 1 smmsp smmsp 619 2009-04-07 13:41 qfn36AAlNg007356
-rw-rw---- 1 smmsp smmsp 619 2009-04-07 13:41 qfn36ACFY7007526
-rw-rw---- 1 smmsp smmsp 619 2009-04-07 13:41 qfn36ADYhJ007699
-rw-rw---- 1 smmsp smmsp 619 2009-04-07 13:41 qfn36APGTo008519
-rw-rw---- 1 smmsp smmsp 622 2009-04-07 13:41 qfn36E7dnn032229
-rw-rw---- 1 smmsp smmsp 622 2009-04-07 13:41 qfn36E8CBN032376
-rw-rw---- 1 smmsp smmsp 622 2009-04-07 13:41 qfn36FeRh6005752
-rw-rw---- 1 smmsp smmsp 618 2009-04-07 13:41 qfn378oBPe014820
-rw-rw---- 1 smmsp smmsp 618 2009-04-07 13:41 qfn378sMr9015889
-rw-rw---- 1 smmsp smmsp 618 2009-04-07 13:41 qfn378vfWe016950
-rw-rw---- 1 smmsp smmsp 618 2009-04-07 13:41 qfn37Aa8Xx014884
-rw-rw---- 1 smmsp smmsp 618 2009-04-07 13:41 qfn37ABLcG008260
-rw-rw---- 1 smmsp smmsp 618 2009-04-07 13:41 qfn37Aje0u019356
-rw-rw---- 1 smmsp smmsp 602 2009-04-07 13:42 qfn37BgsEo005269
-rw-rw---- 1 smmsp smmsp 602 2009-04-07 16:09 qfn37E9X7m012904
-rw-rw---- 1 smmsp smmsp 602 2009-04-07 17:20 qfn37FKdb3011338
contenu de dfn33BTBwM029541 :
test
contenu de qfn33BTBwM029541 :
V8
T1238758151
K1239104506
N3
P210048
I253/1/5324895
Mhost map: lookup (domaine.destinataire.fr): deferred
Fwbs
$_root@localhost
${daemon_flags}c u
Sroot
Aroot@localhost.localdomain
rRFC822; adresse@domaine.destinataire.fr
RPFD:adresse@domaine.destinataire.fr
H?P?Return-Path: <g>
H??Received: (from root@localhost)
by localhost.localdomain (8.14.2/8.14.2/Submit) id n33BTBwM029541
for adresse@domaine.destinataire.fr; Fri, 3 Apr 2009 13:29:11 +0200
H?D?Date: Fri, 3 Apr 2009 13:29:11 +0200
H?F?From: root <root>
H?x?Full-Name: root
H?M?Message-Id: <200904031129.n33BTBwM029541@localhost.localdomain>
H??To: adresse@domaine.destinataire.fr
H??Subject: test
.
test
contenu de qfn33BTBwM029541 :
V8
T1238758151
K1239104506
N3
P210048
I253/1/5324895
Mhost map: lookup (domaine.destinataire.fr): deferred
Fwbs
$_root@localhost
${daemon_flags}c u
Sroot
Aroot@localhost.localdomain
rRFC822; adresse@domaine.destinataire.fr
RPFD:adresse@domaine.destinataire.fr
H?P?Return-Path: <g>
H??Received: (from root@localhost)
by localhost.localdomain (8.14.2/8.14.2/Submit) id n33BTBwM029541
for adresse@domaine.destinataire.fr; Fri, 3 Apr 2009 13:29:11 +0200
H?D?Date: Fri, 3 Apr 2009 13:29:11 +0200
H?F?From: root <root>
H?x?Full-Name: root
H?M?Message-Id: <200904031129.n33BTBwM029541@localhost.localdomain>
H??To: adresse@domaine.destinataire.fr
H??Subject: test
.
j'ai fait un test directement sur le smtp du fournisseur
#nslookup
> smtp.fournisseur.net
Server: 212.216.xxx.xxx
Address: 212.216.xxx.xxx#53
Non-authoritative answer:
Name: smtp.fournisseur.net
Address: 81.18.xxx.xxx
#nslookup
> smtp.fournisseur.net
Server: 212.216.xxx.xxx
Address: 212.216.xxx.xxx#53
Non-authoritative answer:
Name: smtp.fournisseur.net
Address: 81.18.xxx.xxx
#nslookup
> smtp.fournisseur.net
Server: 212.216.xxx.xxx
Address: 212.216.xxx.xxx#53
cette adresse est présente dans /etc/resolv.conf ?
> smtp.fournisseur.net
Server: 212.216.xxx.xxx
Address: 212.216.xxx.xxx#53
cette adresse est présente dans /etc/resolv.conf ?
Oui nameserver 212.216.xxx.xxx
J'avais aussi essayé en mettant directement l'adresse ip du DNS mais ça na rien changé. Je vais remettre l'adresse IP du SMTP et voir ce que me donne le log
J'avais aussi essayé en mettant directement l'adresse ip du DNS mais ça na rien changé. Je vais remettre l'adresse IP du SMTP et voir ce que me donne le log
Bon ça fonctionne en mettant l'adresse IP du SMTP, pourtant j'avais déjà confuiguré le main ainsi et ça n'avait pas envoyé le mail.
Je ne comprend vraiment pas je met le log que j'ai récupéré
Apr 8 17:50:13 MACHINECLIENT postfix/postfix-script[23675]: refreshing the Postfix mail system
Apr 8 17:50:13 MACHINECLIENT postfix/master[5053]: reload configuration /etc/postfix
Apr 8 17:50:51 MACHINECLIENT sendmail[23863]: n38FooAY023863: from=root, size=61, class=0, nrcpts=1, msgid=<200904081550.n38FooAY023863@localhost.localdomain>, relay=root@localhost
Apr 8 17:50:51 MACHINECLIENT postfix/smtpd[23869]: connect from MACHINECLIENT[127.0.0.1]
Apr 8 17:50:51 MACHINECLIENT postfix/smtpd[23869]: 36B7E54E041: client=MACHINECLIENT[127.0.0.1]
Apr 8 17:50:51 MACHINECLIENT postfix/cleanup[23872]: 36B7E54E041: message-id=<200904081550.n38FooAY023863@localhost.localdomain>
Apr 8 17:50:51 MACHINECLIENT sendmail[23863]: n38FooAY023863: to=adresse@domaine.destinataire.fr, ctladdr=root (0/0), delay=00:00:01, xdelay=00:00:00, mailer=relay, pri=30061, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (Ok: queued as 36B7E54E041)
Apr 8 17:50:51 MACHINECLIENT postfix/qmgr[23679]: 36B7E54E041: from=<root@fdne.fr>, size=551, nrcpt=1 (queue active)
Apr 8 17:50:51 MACHINECLIENT postfix/smtpd[23869]: disconnect from MACHINECLIENT[127.0.0.1]
Apr 8 17:50:51 MACHINECLIENT postfix/smtp[23873]: 36B7E54E041: to=<adresse@domaine.destinataire.fr>, relay=81.18.xxx.xxx[81.18.xxx.xxx]:25, delay=0.4, delays=0.09/0.07/0.07/0.17, dsn=2.0.0, status=sent (250 2.0.0 Ok: queued as 6D3DA3E9C0)
Apr 8 17:50:51 MACHINECLIENT postfix/qmgr[23679]: 36B7E54E041: removed
En tout cas merci dubcek et kiki, de votre aide et de votre patience
Je ne comprend vraiment pas je met le log que j'ai récupéré
Apr 8 17:50:13 MACHINECLIENT postfix/postfix-script[23675]: refreshing the Postfix mail system
Apr 8 17:50:13 MACHINECLIENT postfix/master[5053]: reload configuration /etc/postfix
Apr 8 17:50:51 MACHINECLIENT sendmail[23863]: n38FooAY023863: from=root, size=61, class=0, nrcpts=1, msgid=<200904081550.n38FooAY023863@localhost.localdomain>, relay=root@localhost
Apr 8 17:50:51 MACHINECLIENT postfix/smtpd[23869]: connect from MACHINECLIENT[127.0.0.1]
Apr 8 17:50:51 MACHINECLIENT postfix/smtpd[23869]: 36B7E54E041: client=MACHINECLIENT[127.0.0.1]
Apr 8 17:50:51 MACHINECLIENT postfix/cleanup[23872]: 36B7E54E041: message-id=<200904081550.n38FooAY023863@localhost.localdomain>
Apr 8 17:50:51 MACHINECLIENT sendmail[23863]: n38FooAY023863: to=adresse@domaine.destinataire.fr, ctladdr=root (0/0), delay=00:00:01, xdelay=00:00:00, mailer=relay, pri=30061, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (Ok: queued as 36B7E54E041)
Apr 8 17:50:51 MACHINECLIENT postfix/qmgr[23679]: 36B7E54E041: from=<root@fdne.fr>, size=551, nrcpt=1 (queue active)
Apr 8 17:50:51 MACHINECLIENT postfix/smtpd[23869]: disconnect from MACHINECLIENT[127.0.0.1]
Apr 8 17:50:51 MACHINECLIENT postfix/smtp[23873]: 36B7E54E041: to=<adresse@domaine.destinataire.fr>, relay=81.18.xxx.xxx[81.18.xxx.xxx]:25, delay=0.4, delays=0.09/0.07/0.07/0.17, dsn=2.0.0, status=sent (250 2.0.0 Ok: queued as 6D3DA3E9C0)
Apr 8 17:50:51 MACHINECLIENT postfix/qmgr[23679]: 36B7E54E041: removed
En tout cas merci dubcek et kiki, de votre aide et de votre patience