см. предыдущий пост на эту тему Как работает почта в Авангарде (продолжение)
отправляем почту на Yandex сразу после установки sendmail:
Connecting to [127.0.0.1] via relay...
220 ubuntu.localdomain ESMTP Sendmail 8.14.3/8.14.3/Debian-9.2ubuntu1; Tue, 25 Jan 2011 12:14:47 -0800; (No UCE/UBE) logging access from: localhost(OK)-localhost [127.0.0.1]
>>> EHLO ubuntu.localdomain
250-ubuntu.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:<murat@ubuntu.localdomain> SIZE=77 AUTH=murat@ubuntu.localdomain
250 2.1.0 <murat@ubuntu.localdomain>... Sender ok
>>> RCPT To:<-s@ubuntu.localdomain>
>>> RCPT To:<cvx@yandex.ru>
>>> DATA
550 5.1.1 <-s@ubuntu.localdomain>... User unknown
250 2.1.5 <cvx@yandex.ru>... Recipient ok
354 Enter mail, end with "." on a line by itself
>>> .
050 <cvx@yandex.ru>... Connecting to mx.yandex.ru. via esmtp...
050 220 mxfront22.mail.yandex.net (Want to use Yandex.Mail for your domain? Visit http://pdd.yandex.ru)
050 >>> EHLO ubuntu.localdomain
050 250-mxfront22.mail.yandex.net
050 250-8BITMIME
050 250-PIPELINING
050 250-SIZE 42991616
050 250 ENHANCEDSTATUSCODES
050 >>> MAIL From:<murat@ubuntu.localdomain> SIZE=308
050 250 2.1.0 <murat@ubuntu.localdomain> ok
050 >>> RCPT To:<cvx@yandex.ru>
050 >>> DATA
050 250 2.1.5 <cvx@yandex.ru> recipient ok
050 354 Enter mail, end with "." on a line by itself
050 >>> .
050 250 2.0.0 Ok: queued on mxfront22.mail.yandex.net as EUQSBfhG-EUQ0a0jG
050 <cvx@yandex.ru>... Sent (Ok: queued on mxfront22.mail.yandex.net as EUQSBfhG-EUQ0a0jG)
250 2.0.0 p0PKEljG013567 Message accepted for delivery
cvx@yandex.ru... Sent (p0PKEljG013567 Message accepted for delivery)
/home/murat/dead.letter... Saved message in /home/murat/dead.letter
Closing connection to [127.0.0.1]
>>> QUIT
221 2.0.0 ubuntu.localdomain closing connection
всё ок, письмо дошло.
отправляем на soap@mail.spbnit.ru (sendmail -i -v soap@mail.spbnit.ru -s < body.txt):
Connecting to [127.0.0.1] via relay...
220 ubuntu.localdomain ESMTP Sendmail 8.14.3/8.14.3/Debian-9.2ubuntu1; Tue, 25 Jan 2011 12:25:28 -0800; (No UCE/UBE) logging access from: localhost(OK)-localhost [127.0.0.1]
>>> EHLO ubuntu.localdomain
250-ubuntu.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:<murat@ubuntu.localdomain> SIZE=77 AUTH=murat@ubuntu.localdomain
250 2.1.0 <murat@ubuntu.localdomain>... Sender ok
>>> RCPT To:<-s@ubuntu.localdomain>
>>> RCPT To:<soap@mail.spbnit.ru>
>>> DATA
550 5.1.1 <-s@ubuntu.localdomain>... User unknown
250 2.1.5 <soap@mail.spbnit.ru>... Recipient ok
354 Enter mail, end with "." on a line by itself
>>> .
050 <soap@mail.spbnit.ru>... Connecting to mx.spbnit.ru. via esmtp...
050 220 mx.spbnit.ru ESMTP Postfix
050 >>> EHLO ubuntu.localdomain
050 250-mx.spbnit.ru
050 250-PIPELINING
050 250-SIZE 10240000
050 250-ETRN
050 250-ENHANCEDSTATUSCODES
050 250-8BITMIME
050 250 DSN
050 >>> MAIL From:<murat@ubuntu.localdomain> SIZE=308
050 250 2.1.0 Ok
050 >>> RCPT To:<soap@mail.spbnit.ru>
050 >>> DATA
050 550 5.1.8 <murat@ubuntu.localdomain>: Sender address rejected: Domain not found
050 554 5.5.1 Error: no valid recipients
050 >>> RSET
050 250 2.0.0 Ok
050 <murat@ubuntu.localdomain>... Connecting to local...
050 <murat@ubuntu.localdomain>... Sent
250 2.0.0 p0PKPSfP013665 Message accepted for delivery
soap@mail.spbnit.ru... Sent (p0PKPSfP013665 Message accepted for delivery)
/home/murat/dead.letter... Saved message in /home/murat/dead.letter
Closing connection to [127.0.0.1]
>>> QUIT
221 2.0.0 ubuntu.localdomain closing connection
говорит, что «Sender address rejected: Domain not found», меняем /etc/hosts:
127.0.0.1 localhost
127.0.1.1 beauty-exclusive.ru ubuntu.localdomain ubuntu
# The following lines are desirable for IPv6 capable hosts
::1 localhost ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
(далее…)