This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
утилита_msmtp [2024/12/30 07:04] val |
утилита_msmtp [2025/04/03 13:13] (current) val |
||
---|---|---|---|
Line 23: | Line 23: | ||
#domain corpX.un | #domain corpX.un | ||
#from root@lan.corpX.un | #from root@lan.corpX.un | ||
+ | #aliases /etc/aliases | ||
</code><code> | </code><code> | ||
$ cat mail.txt | $ cat mail.txt | ||
Line 35: | Line 36: | ||
cat mail.txt | msmtp -f asterisk@server.corpX.un userX@isp.un | cat mail.txt | msmtp -f asterisk@server.corpX.un userX@isp.un | ||
</code> | </code> | ||
+ | |||
+ | ==== Утилита mail без mta ==== | ||
+ | |||
<code> | <code> | ||
# apt install msmtp-mta bsd-mailx | # apt install msmtp-mta bsd-mailx | ||
+ | |||
+ | # cat /etc/msmtprc | ||
+ | ... | ||
+ | |||
+ | # cat /etc/aliases | ||
+ | ... | ||
+ | |||
+ | # newaliases | ||
# mail root | # mail root | ||
</code> | </code> |