утилита_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/05/20 15:48]
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 9: Line 11:
 port 25 port 25
 tls off tls off
 +#tls on
 auth off auth off
  
Line 20: 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 31: Line 35:
 </​code><​code>​ </​code><​code>​
 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>​
 +
 +==== Утилита mail без mta ====
 +
 +<​code>​
 +# apt install msmtp-mta bsd-mailx
 +
 +# cat /​etc/​msmtprc
 +...
 +
 +# cat /​etc/​aliases
 +...
 +
 +# newaliases
 +
 +# mail root
 </​code>​ </​code>​
утилита_msmtp.1716209298.txt.gz · Last modified: 2024/05/20 15:48 by val