User Tools

Site Tools


ua_mail

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
Last revision Both sides next revision
ua_mail [2011/11/30 10:52]
127.0.0.1 внешнее изменение
ua_mail [2020/11/10 16:11]
val [Отправка почты]
Line 1: Line 1:
 ====== UA mail ====== ====== UA mail ======
  
- +  * [[http://​rus-linux.net/​MyLDP/​consol/​mails.html|Прием и отправка почты из командной строки]] 
-===== Установка ​(Ubuntu) ​=====+===== Установка =====
 <​code>​ <​code>​
-root@server:​~# apt-get install mailutils+debian# apt install mailutils 
 +  или 
 +debian# apt install bsd-mailx 
 + 
 +centos# yum info mailx
 </​code>​ </​code>​
  
 ===== Отправка почты ===== ===== Отправка почты =====
 <​code>​ <​code>​
-server# ​mail root+mail user1
  
-server# ​mail root@server.corpX.un+mail user1@server.corpX.un 
 + 
 +freebsd$ uuencode /​tmp/​virus.zip film.zip | mail -s superfilm user1@corpX.un 
 + 
 +$ echo '​XJS*C4JDBQADN1.NSBN3*2IDNEN*GTUBE-STANDARD-ANTI-UBE-TEST-EMAIL*C.34X'​ | mail -s 'kupi slona' user1@corpX.un
 </​code>​ </​code>​
  
 ===== Чтение почты ===== ===== Чтение почты =====
 +
 +==== Входящей (/​var/​mail/​user) ====
 +<​code>​
 +$ mail
 +</​code>​
 +
 +==== Прочитанной (~user/​mbox) ====
 +
 <​code>​ <​code>​
-server# ​mail +mail -f
-Mail version 8.1 6/​6/​93. ​ Type ? for help. +
-"/​var/​mail/​root":​ 2 messages 2 new +
->N  1 user@server.corpX.un ​     Wed Oct 26 16:33  22/​814 ​  "​w"​ +
- ​N ​ 2 root@server.corpX.un ​     Wed Oct 26 16:35  12/​425  ​+
 </​code>​ </​code>​
  
-===== Команды UA mail =====+==== Команды UA mail ====
 <​code>​ <​code>​
 h - список писем h - список писем
ua_mail.txt · Last modified: 2021/04/28 13:11 by admin