====== Утилита msmtp ====== * [[https://gist.github.com/movd/7a9e3db63d076f85d16c7dcde62fe401|Setting up email with SMTP on Ubuntu/Debian Servers]] # apt install msmtp # cat /etc/msmtprc defaults port 25 tls off #tls on auth off account default host mail.isp.un domain server.corpX.un #from asterisk@server.corpX.un #need for mutt #host server.corpX.un #domain corpX.un #from root@lan.corpX.un #aliases /etc/aliases $ cat mail.txt Content-Type: text/plain; charset=UTF-8 To: userX@isp.un From: Asterisk Subject: Record Запись cделана cat mail.txt | msmtp -f asterisk@server.corpX.un userX@isp.un ==== Утилита mail без mta ==== # apt install msmtp-mta bsd-mailx # cat /etc/msmtprc ... # cat /etc/aliases ... # newaliases # mail root