sendmail ne marche pas Ubuntu 16.04 LTS

J'ai installé sendmail Sur votre serveur en utilisant les commandes suivantes:

sudo apt-get install sendmail
sudo sendmailconfig

Avant de courir

sudo sendmailconfig

ive Ajouté un nom d'hôte de mon serveur à mon

/etc/hosts

. Maintenant, quand j'essaie de courir sendmail, Il vient de geler.

> echo "Subject: sendmail test" | sendmail -v my@mail.de
mp@borntocreate.de... Connecting to [127.0.0.1] via relay...
220 localhost.localdomain ESMTP Sendmail 8.15.2/8.15.2/Debian-3; Sun, 12 Nov 2017 13:02:49 GMT; (No UCE/UBE) logging access from: localhost(OK)-localhost [127.0.0.1]
>>> EHLO localhost.localdomain
250-localhost.localdomain 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:<ubuntu@localhost.localdomain> SIZE=23 AUTH=ubuntu@localhost.localdomain
250 2.1.0 <ubuntu@localhost.localdomain>... Sender ok
&gt;&gt;&gt; RCPT To:<my@mail.de>
&gt;&gt;&gt; DATA
250 2.1.5 <my@mail.de>... Recipient ok
354 Enter mail, end with "." on a line by itself
&gt;&gt;&gt; .

Je ne peux pas comprendre comment le réparer. Mon pare-feu est allumé, mais tous mes ports sortants sont autorisés.

Un email est ajouté à la file d'attente de messagerie, mais le temps d'attente a expiré.

&gt; sudo mailq

vACD6HYe002871* 0 Sun Nov 12 13:06 <ubuntu@localhost.localdomain>
(Deferred: Connection timed out with aspmx2.googlemail.com.)
<my@mail.de>

</my@mail.de></ubuntu@localhost.localdomain></my@mail.de></my@mail.de></ubuntu@localhost.localdomain></ubuntu@localhost.localdomain>
Invité:

Pour répondre aux questions, connectez-vous ou registre