This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Last revision Both sides next revision | ||
организация_рассылки_электронной_почты [2019/11/21 11:28] val [Утилита msmtp] |
организация_рассылки_электронной_почты [2020/12/12 18:14] val |
||
---|---|---|---|
Line 3: | Line 3: | ||
* [[https://hostpresto.com/community/tutorials/how-to-send-email-from-the-command-line-with-msmtp-and-mutt/|How to Send Email from the Command Line with MSMTP and Mutt]] | * [[https://hostpresto.com/community/tutorials/how-to-send-email-from-the-command-line-with-msmtp-and-mutt/|How to Send Email from the Command Line with MSMTP and Mutt]] | ||
- | ===== Утилита msmtp ===== | + | * [[Утилита msmtp]] |
- | <code> | + | |
- | # apt install msmtp | + | |
- | # cat /etc/msmtprc | ||
- | </code><code> | ||
- | defaults | ||
- | port 25 | ||
- | tls off | ||
- | auth off | ||
- | |||
- | account default | ||
- | host mail.isp.un | ||
- | from root@server.corp13.un | ||
- | domain server.corp13.un | ||
- | </code><code> | ||
- | $ cat mail.txt | ||
- | </code><code> | ||
- | Content-Type: text/plain; charset=UTF-8 | ||
- | To: userX@isp.un | ||
- | From: asterisk@server.corpX.un | ||
- | Subject: Record | ||
- | Запись | ||
- | cделана | ||
- | </code><code> | ||
- | cat mail.txt | msmtp -f asterisk@server.corpX.un userX@isp.un | ||
- | </code> | ||
===== Утилита mutt ===== | ===== Утилита mutt ===== | ||