Mutt como cliente de correo

Cuando usted accede a un servidor con pop3 y smtp y desea tener una configuración liviana de correo, esta es la solución.

Para las configuraciones siguientes, asegúrese de hacer coincidir las variables :

MISERVIDORPOP3=pop3.micorreo.org
MIEMAIL=pepito@micorreo.org
MISERVIDORSMTP=smtp.micorreo.org
USUARIOSERVIDOR=pepito
CLAVESMTP=cambialaynoseladigasanadie
CLAVEPOP3=cambialaynoseladigasanadie
TULOGIN=tuloginenlamaquinadondetienestumutt
MIDOMINIO=micorreo.org

Instalación

apt-get install mutt procmail msmtp fetchmail

Configuración

El archivo de configuración es .fetchmailrc que podría haber sido generado fácilmente con fetchmailconf

fetchmail

set postmaster "TULOGIN"
set bouncemail
set no spambounce
set properties ""
poll MISERVIDORPOP3 with proto POP3
       user 'USUARIOSERVIDOR' there with password 'CLAVEPOP3' is 'TULOGIN' here

msmtp

Así lucirá el archivo ~/.msmtprc , suponiendo que el servidor smtp NO tiene seguridad

defaults
logfile ~/.msmtp.log

account micuenta
host MISERVIDORSMTP
from MIEMAIL
auth login 
user USUARIOSERVIDOR
password CLAVESMTP

procmail

El archivo estaría en ~/.procmailrc

:0:
* ^From:(.*pepaa@informatik.uni-kl.de|.*pepita@gefece.edu.co|.*pepina@cui.org)
familia/pepita

mutt

#descargar correo
macro generic G <shell-escape>'fetchmail'<enter> 'Fetchmail'
macro index G <shell-escape>'fetchmail'<enter> 'Fetchmail'

#pager
set pager_index_lines=10 #show a part of the inbox of the upper part

#the macros below allow toggling the wrapping of the messages, forcing them to be
#at most 80 chars long, or showing the message as it is (wrap=0)
macro pager ,@F0 "<enter-command>set wrap=0; macro pager F ,@F80<Enter>"
macro pager ,@F80 "<enter-command>set wrap=80; macro pager F ,@F0<Enter>" 
macro pager F ,@F0

#Send mail
set sendmail="/usr/bin/msmtp -f MIEMAIL"

#aliases
set alias_file=~/.mail.aliases
macro generic \ea "!vim ~/.mail.aliases\n:source =~/.mail.aliases\n"
source ~/.mail.aliases

#Ponerle colores a los mensajes
color normal default default
color index yellow default "~x MIDOMINIO" # References
color index green default "~h in-reply-to:.*MIDOMINIO"
# in-reply-to
color index green default "~P" # From me
color index red default "~=" # Duplicates
color index default blue "~N" # New
color index magenta default "~T" # Tagged
color index white default "~D" #deleted

Referentes


CategoriaDebian CategoriaAdministradorDeRed

BuenClienteDeCorreo (last edited 2009-07-15 15:25:09 by localhost)