Twitter iPhone pliant OnePlus 11 PS5 Disney+ Orange Livebox Windows 11

debian + exim + gmail : SMTP protocol synchronization error (input sent without waiting for greeting)

1 réponse
Avatar
Revolver Onslaught
Ehlo (sic),

J'ai configur=E9 ma Debian afin de pouvoir envoyer des mails sur mon
compte gmail (http://wiki.debian.org/GmailAndExim4).

Si j'envoie un mail manuellement :
ro@neptune:~$ nc 0 25
220 neptune.milkyway ESMTP Exim 4.63 Fri, 06 Feb 2009 16:18:26 +0100
HELO YOU
250 neptune.milkyway Hello ro at localhost [127.0.0.1]
mail from:<revolver.onslaught@gmail.com>
250 OK
rcpt to:<revolver.onslaught@gmail.com>
250 Accepted
DATA
354 Enter message, ending with "." on a line by itself
subject "test"
cdzsoucvjiosdvhilsjhvl
.
250 OK id=3D1LVSUN-0001mC-QE
2009-02-06 16:19:45 1LVSUN-0001mC-QE <=3D revolver.onslaught@gmail.com
H=3Dlocalhost (YOU) [127.0.0.1] U=3Dro P=3Dsmtp S=3D401
QUIT

L=E0, pas de probl=E8me.

Par contre, si je fais ceci:
nc 0 25 < mon_mail.txt (o=F9 mon_mail.txt est le contenu des commandes
tap=E8es pr=E9c=E9demment)...

Ca tombe en erreur :
2009-02-06 16:05:05 SMTP protocol synchronization error (input sent
without waiting for greeting): rejected connection from H=3Dlocalhost
[127.0.0.1] U=3Droot input=3D"HELO neptune.milkyway\nmail
from:<root@neptune.milkyway>\nrcpt to:<ro>\nDATA\nsubject: System is
going down for halt now!\nSystem is going down for halt now!\n."


Avez-vous une id=E9e ?

Merci d'avance.

R.O.

--
Lisez la FAQ de la liste avant de poser une question :
http://wiki.debian.org/DebFrFrenchLists
Vous pouvez aussi ajouter le mot ``spam'' dans vos champs "From" et
"Reply-To:"

To UNSUBSCRIBE, email to debian-user-french-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org

1 réponse

Avatar
Sylvain Sauvage
Revolver Onslaught, vendredi 6 février 2009, 17:28:51 CET

Ehlo (sic),



’lo,

[…]
Par contre, si je fais ceci:
nc 0 25 < mon_mail.txt (où mon_mail.txt est le contenu des
commandes tapèes précédemment)...

Ca tombe en erreur :
2009-02-06 16:05:05 SMTP protocol synchronization error (input
sent without waiting for greeting): rejected connection from
H=localhost [127.0.0.1] U=root input="HELO
neptune.milkywaynmail from:nrcpt
to:<ro>nDATAnsubject: System is going down for halt
now!nSystem is going down for halt now!n."


Avez-vous une idée ?



Oui, l’erreur est claire : en passant le fichier de commandes
en entier, tu ne te soucies pas des réponses. Or le MTA aime
bien qu’on l’écoute quand il cause. Il aime avoir de v raies
conversations, dans lesquelles les interlocuteurs s’écoutent
avant de se répondre. Il est poli, lui :o)

Donc ce n’est pas « < » dont tu dois te servi r mais de, p.ex.,
« expect » (paquet du même nom), lequel, comme son nom
l’indique, attendra les réponses du serveur avant de lui envoy er
d’autres commandes.

(Un bon début de doc : http://en.wikipedia.org/wiki/Expect )

--
Sylvain Sauvage

--
Lisez la FAQ de la liste avant de poser une question :
http://wiki.debian.org/DebFrFrenchLists
Vous pouvez aussi ajouter le mot ``spam'' dans vos champs "From" et
"Reply-To:"

To UNSUBSCRIBE, email to
with a subject of "unsubscribe". Trouble? Contact