2017-08-24 4 views
0

J'essaie d'envoyer un e-mail à partir d'une boîte Unix. Ça fonctionnait plus tôt mais maintenant ça ne l'est pas et je pense que j'ai encore plus foiré le /etc/hosts. Ci-dessous les résultats de l'essai:Problème Ubuntu 16.04 avec l'adresse sendmail -sender non valide

echo "Subject: sendmail test" | sendmail -v [email protected] 
[email protected] Connecting to [127.0.0.1] via relay... 
220 hugheseurope.com ESMTP Sendmail 8.15.2/8.15.2/Debian-3; Thu, 24 Aug 2017 22:29:12 +0200; (No UCE/UBE) logging access from: localhost(OK)-localhost [127.0.0.1] 
>>> EHLO hugheseurope.com 
250-hugheseurope.com Hello localhost [127.0.0.1], pleased to meet you 
250-ENHANCEDSTATUSCODES 
250-PIPELINING 
250-EXPN 
250-VERB 
250-8BITMIME 
250-SIZE 
250-DSN 
250-ETRN 
250-AUTH DIGEST-MD5 CRAM-MD5 
250-DELIVERBY 
250 HELP 
>>> VERB 
250 2.0.0 Verbose mode 
>>> MAIL From:<[email protected]> SIZE=23 [email protected] 
250 2.1.0 <[email protected]>... Sender ok 
>>> RCPT To:<[email protected]> 
>>> DATA 
250 2.1.5 <[email protected]>... Recipient ok 
354 Enter mail, end with "." on a line by itself 
>>> . 
050 <[email protected]>... Connecting to gmail-smtp-in.l.google.com. via esmtp... 
050 220 mx.google.com ESMTP 40si3960062wrz.258 - gsmtp 
050 >>> EHLO hugheseurope.com 
050 250-mx.google.com at your service, [192.168.1.1] 
050 250-SIZE 157286400 
050 250-8BITMIME 
050 250-STARTTLS 
050 250-ENHANCEDSTATUSCODES 
050 250-PIPELINING 
050 250-CHUNKING 
050 250 SMTPUTF8 
050 >>> STARTTLS 
050 220 2.0.0 Ready to start TLS 
050 >>> EHLO hugheseurope.com 
050 250-mx.google.com at your service, [192.168.1.1] 
050 250-SIZE 157286400 
050 250-8BITMIME 
050 250-ENHANCEDSTATUSCODES 
050 250-PIPELINING 
050 250-CHUNKING 
050 250 SMTPUTF8 
050 >>> MAIL From:<[email protected]@hugheseurope.com> SIZE=310 
050 553-5.1.2 The sender address <[email protected]@hugheseurope.com> is not a valid 
050 553 5.1.2 RFC-5321 address. 40si3960062wrz.258 - gsmtp 
050 <[email protected]>... Connecting to local... 
050 <[email protected]>... Sent 
250 2.0.0 v7OKTCHO001397 Message accepted for delivery 
[email protected] Sent (v7OKTCHO001397 Message accepted for delivery) 
Closing connection to [127.0.0.1] 
>>> QUIT 
221 2.0.0 hugheseurope.com closing connection 

D'où je reçois cette ligne: et pourquoi est maintenant hnsuser @ scan @ hugheseurope.com?

050 >>> MAIL From:<[email protected]@hugheseurope.com> SIZE=310 
     050 553-5.1.2 The sender address <[email protected]@hugheseurope.com> is not a valid 

et suivants ainsi:

Aug 24 22:29:12 hugheseurope.com sm-mta[1397]: v7OKTCHO001397: from=<[email protected]>, size=310, class=0, nrcpts=1, msgid=<[email protected]>, proto=ESMT 
Aug 24 22:29:12 hugheseurope.com sm-mta[1397]: STARTTLS=client, relay=gmail-smtp-in.l.google.com., version=TLSv1.2, verify=FAIL, cipher=ECDHE-RSA-AES128-GCM-SHA256, bits=128/128 
Aug 24 22:29:12 hugheseurope.com sm-mta[1397]: v7OKTCHO001397: to=<[email protected]>, ctladdr=<[email protected]> (1000/1000), delay=00:00:00, xdelay=00:00:00, mailer=esmtp, pri=3 
Aug 24 22:29:12 hugheseurope.com sm-mta[1397]: v7OKTCHO001397: v7OKTCHP001397: DSN: Data format error 

Répondre

1

En tant que root exécuter le script de test ci-dessous:

#!/bin/sh 
/usr/sbin/sedndmail -d60.5 -bt <<END 
/tryflags es 
/try esmtp [email protected] 
END 

Il devrait permettre de réduire "la liste des suspects".

+0

-Merci! En fait, je l'ai compris mais je l'ai obtenu maintenant: 250 2.1.5 <[email protected]> ... Destinataire ok 354 Entrez le courrier, terminez par "." sur une ligne à part >>>. 050 <[email protected]> ... Connexion à hugheseurope.com. via relais ... 050 <[email protected]> ... Différé: Connexion refusée par hugheseurope.com. travaillait le premier jour .. Espoir que vous pouvez fournir quelques conseils .. –

+0

question est pourquoi ne se connecte pas à MX comme d'autres domaines? comme: 050 <[email protected]> ... Connexion à alln-mx-01.cisco.com. via esmtp ... –