[<-] 354 Enter message, ending with "." on a line by itself
[->] Received: by setevoy-arch-home (sSMTP sendmail emulation); Sun, 07 Oct 2018 11:06:15 +0300
[->] From: setevoy-arch-home@example.org.ua
[->] Date: Sun, 07 Oct 2018 11:06:15 +0300
[->] To: 1th@example.kiev.ua
[->] Subject: Test
[->] User-Agent: mail v14.9.11
[->]
[->] Test
[->] .
[<-] 250 OK id=1g944t-00060X-At
[->] QUIT
[<-] 221 mail.example.org.ua closing connection
Лог на отправителе:
...
Oct 07 11:06:15 setevoy-arch-home sSMTP[27962]: Creating SSL connection to host
Oct 07 11:06:15 setevoy-arch-home sSMTP[27962]: SSL connection using ECDHE-RSA-AES256-GCM-SHA384
Oct 07 11:06:16 setevoy-arch-home sSMTP[27962]: Sent mail for setevoy-arch-home@example.org.ua (221 mail.example.org.ua closing connection) uid=1000 username=setevoy outbytes=438
...
И лог exim-а на принимающем сервере:
...
2018-10-07 11:07:27 1g9462-00062x-LO <= setevoy-arch-home@example.org.ua H=(setevoy-arch-home) [188.190.246.48] I=[77.120.103.20]:587 P=esmtpsa X=TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256 CV=no A=auth_plain:setevoy-arch-home@example.org.ua S=536 from <setevoy-arch-home@example.org.ua> for 1th@example.kiev.ua
Проверим отправку системных уведомлений, например о неудачах cron.
Добавляем задачу с вызовом несуществующего скрипта, в MAILTO указываем ящик, на который шлём уведомления:
MAILTO=1th@example.kiev.ua
* * * * * /bla/bla.sh
Ждём выполнения:
...
Oct 07 11:16:01 setevoy-arch-home CROND[28321]: (setevoy) CMD (/bla/bla.sh)
Oct 07 11:16:01 setevoy-arch-home sSMTP[28322]: Creating SSL connection to host
Oct 07 11:16:01 setevoy-arch-home sSMTP[28322]: SSL connection using ECDHE-RSA-AES256-GCM-SHA384
Oct 07 11:16:03 setevoy-arch-home sSMTP[28322]: Sent mail for setevoy-arch-home@example.org.ua (221 mail.example.org.ua closing connection) uid=1000 username=setevoy outbytes=834