email - Attempting to send mail with sendmail on ubuntu 17.04? -
i first installed sendmail on ubuntu 17.04 running sudo apt-get install sendmail
, made sure hostname of machine added /etc/hosts/
right after localhost
this:
127.0.0.1 localhost myhostname
i ran sudo sendmailconfig
, answered yes questions. i'm trying send mail. this:
echo "subject: sendmail test" | sendmail -v me@gmail.com
sendmail prints following:
ole@mki:~$ echo "subject: sendmail test" | sendmail -v me@gmail.com warning: local host name (localhost) not qualified; see cf/readme: i? me@gmail.com... connecting [127.0.0.1] via relay... 220 localhost esmtp sendmail 8.15.2/8.15.2/debian-8ubuntu1; mon, 14 aug 2017 14:28:56 -0500; (no uce/ube) logging access from: localhost(ok)-localhost [127.0.0.1] >>> ehlo localhost 250-localhost hello localhost [127.0.0.1], pleased meet 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 >>> verb 250 2.0.0 verbose mode >>> mail from:<ole@localhost> size=23 auth=ole@localhost 250 2.1.0 <ole@localhost>... sender ok >>> rcpt to:<me@gmail.com> >>> data 250 2.1.5 <ole.ersoy@gmail.com>... recipient ok 354 enter mail, end "." on line >>> .
i'm not sure i'm supposed @ point. tried putting "." on line , returning nothing happens. if press ctrl c
prompt buy email not appear in gmail inbox. thoughts?
Comments
Post a Comment