GioielloSendMail

Da Wiki-itsos.

Situazione iniziale

Macchina virtuale indicare specifiche

apt-get install sendmail

root@GioielloMail:/var/mail# echo "Subject: test" | sendmail -v esempio@gmail.com

WARNING: local host name (GioielloMail) is not qualified; see cf/README: WHO AM I?
esempio@gmail.com... Connecting to [127.0.0.1] via relay...
220 GioielloMail ESMTP Sendmail 8.14.4/8.14.4/Debian-4.1ubuntu1; Fri, 13 Nov 2015 09:42:09 +0100; (No UCE/UBE) logging access from:
localhost(OK)-localhost [127.0.0.1]
>>> EHLO GioielloMail
250-GioielloMail 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:<tech@GioielloMail> SIZE=14 AUTH=tech@GioielloMail
250 2.1.0 <tech@GioielloMail>... Sender ok
>>> RCPT To:<esempio@gmail.com>
>>> DATA
250 2.1.5 <esempio@gmail.com>... Recipient ok
354 Enter mail, end with "." on a line by itself
>>> .
050 <esempio@gmail.com>... Connecting to gmail-smtp-in.l.google.com. via esmtp...
050 220 mx.google.com ESMTP l11si24358661wjw.184 - gsmtp
050 >>> EHLO GioielloMail
050 250-mx.google.com at your service, [94.84.57.166]
050 250-SIZE 35882577
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 GioielloMail
050 250-mx.google.com at your service, [94.84.57.166]
050 250-SIZE 35882577
050 250-8BITMIME
050 250-ENHANCEDSTATUSCODES
050 250-PIPELINING
050 250-CHUNKING
050 250 SMTPUTF8
050 >>> MAIL From:<tech@GioielloMail> SIZE=295
050 250 2.1.0 OK l11si24358661wjw.184 - gsmtp
050 >>> RCPT To:<esempio@gmail.com>
050 >>> DATA
050 250 2.1.5 OK l11si24358661wjw.184 - gsmtp
050 354 Go ahead l11si24358661wjw.184 - gsmtp
050 >>> .
050 250 2.0.0 OK 1447404132 l11si24358661wjw.184 - gsmtp
050 <esempio@gmail.com>... Sent (OK 1447404132 l11si24358661wjw.184 - gsmtp)
250 2.0.0 tAD8g9Wg003383 Message accepted for delivery
esempio@gmail.com... Sent (tAD8g9Wg003383 Message accepted for delivery)
Closing connection to [127.0.0.1]
>>> QUIT
221 2.0.0 GioielloMail closing connection


GioielloMail01.png