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
ua_mail [2012/01/10 11:28]
val
ua_mail [2021/04/28 13:11] (current)
admin [Отправка почты]
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 user1+mail user1
  
-server# ​mail user1@server.corpX.un+mail user1@server.corpX.un 
 + 
 +freebsd$ uuencode /​tmp/​virus.zip film.zip | mail -s superfilm user1@corpX.un ​   # не ловит cgpav 
 + 
 +$ 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.1326180497.txt.gz · Last modified: 2013/05/22 13:50 (external edit)