defaults logfile /var/log/msmtp.log account noreply host smtp.yandex.ru port 465 tls on tls_starttls off tls_certcheck off timeout 10 auth on from noreply@mycompany.com user noreply@mycompany.com password xXXx0x00Xx0xXXx account default : noreply # echo "test test" | msmtp -v mymail@gmail.com # #To: username@domain.com #From: noreply@mycompany.com #Subject: A test # #Hello there. #$ cat test.mail | msmtp @domain.com