Advertisement
Guest User

Untitled

a guest
May 10th, 2016
123
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.86 KB | None | 0 0
  1. # Instalar mutt (Debian y derivados)
  2.  
  3. ```
  4. sudo apt-get update
  5. sudo apt-get install mutt
  6. ```
  7.  
  8. # Configuración MUTT
  9.  
  10. Hay que crear un archivo en la carpeta raíz del usuario de donde se quieren enviar. Si estamos en una **Raspberry Pi**, se
  11. puede configurar en la carpeta raíz del usuario _pi_
  12.  
  13. ```
  14. nano /home/pi/.muttrc
  15. ```
  16.  
  17. y añadimos la siguiente información:
  18.  
  19. **Para una cuenta de Gmail:**
  20.  
  21. ```
  22. set from = "miraspberry@gmail.com"
  23. set realname = "Avisos Pi Raspberry"
  24. set imap_user = "mirraspberry@gmail.com"
  25. set imap_pass = "contraseña-del-email"
  26. set folder = "imaps://imap.gmail.com:993"
  27. set spoolfile = "+INBOX"
  28. set postponed ="+[Gmail]/Drafts"
  29. set header_cache =~/.mutt/cache/headers
  30. set message_cachedir =~/.mutt/cache/bodies
  31. set certificate_file =~/.mutt/certificates
  32. set smtp_url = "smtp://miraspberry@smtp.gmail.com:587/"
  33. set smtp_pass = "contraseña-del-email"
  34. ```
  35.  
  36. **Para una cuenta de openmailbox.org:**
  37.  
  38. ```
  39. set from = "USUARIO@openmailbox.org"
  40. set realname = "NOMBRE"
  41. set imap_user = "USUARIO@openmailbox.org"
  42. set imap_pass = "CONTRASEÑA"
  43. set folder = "imaps://imap.openmailbox.org:993"
  44. set spoolfile = "+INBOX"
  45. set postponed ="+[openmailbox]/Drafts"
  46. set header_cache =~/.mutt/cache/headers
  47. set message_cachedir =~/.mutt/cache/bodies
  48. set certificate_file =~/.mutt/certificates
  49. set smtp_url = "smtp://USUARIO@openmailbox.org@openmailbox.org:587/"
  50. set smtp_pass = "CONTRASEÑA"
  51. set move = no
  52. set imap_keepalive = 900
  53. set editor = nano
  54. ```
  55.  
  56. Lógicamente, hay que cambiar el email y la contraseña... ;)
  57.  
  58. Por último, creamos una carpeta: `mkdir -p /home/pi/.mutt/cache`
  59.  
  60. #Prueba de campo:
  61.  
  62. Desde la terminal mandamos un e-mail:
  63.  
  64. ```
  65. echo "Hola, esto es un e-mail de prueba" | mutt -s "e-mail de prueba" destino@e-mail.com
  66. ```
  67.  
  68. Mandando adjuntos con mutt:
  69.  
  70. ```
  71. echo "Este es un email con un archivo adjunto." | mutt -s "Otra Prueba" -a /path/del/archivo/archivo.txt destino@e-mail.com
  72. ```
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement