утилита_msmtp

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
утилита_msmtp [2024/12/30 06:58]
val
утилита_msmtp [2025/04/03 13:13] (current)
val
Line 1: Line 1:
 ====== Утилита msmtp ====== ====== Утилита msmtp ======
 +
 +  * [[https://​gist.github.com/​movd/​7a9e3db63d076f85d16c7dcde62fe401|Setting up email with SMTP on Ubuntu/​Debian Servers]]
  
 <​code>​ <​code>​
Line 21: 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 33: 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>​
утилита_msmtp.1735531107.txt.gz · Last modified: 2024/12/30 06:58 by val