Mutt

6 risposte [Ultimo contenuto]
Jorgefsf
Offline
Iscritto: 09/02/2013

Hola muchachXs!!

Desde hace unos días estoy intentando configurar la herramienta Mutt con dos cuentas de correos distintas (disroot y yahoo). El caso es que sólo me "acepta" una alguien por acá sabe como realizar esta hazaña?

Jorgefsf
Offline
Iscritto: 09/02/2013

Por acá comparto la configuración de Mutt, que realice para revisar una cuenta de correo desde la consola. No se como configurarlo para dos cuentas simultaneas.

Para proteger la cuenta con nuestra clave GPG, se debe hacer lo siguiente:

1.- Crear un directorio (en este caso fue ./secret) que contenga el fichero .passwd

2.- En el fichero .passwd se coloca Cuenta: muestra clave del correo

3.- Cifrar éste fichero usando esta linea de comando gpg -o .passwd.gpg -r correo -e .passwd

4.- Luego se crear el fichero .muttrc, con la siguiente configuración:

set my_tmpsecret=`gpg -o ~/.secret/.tmp -d ~/.secret/.passwd.gpg`
set my_password=`awk '/Cuenta:/ {print $2}' ~/.secret/.tmp`
set my_del=`rm -f ~/.secret/.tmp`
set my_email=name at domain
set my_user= "Nombre"
set from = "name at domain"
set realname = "Nombre"
set imap_user = "name at domain"
set imap_pass = "$my_password"
set folder = "imaps://Servidor imap de su cuenta.org:puerto imap de su cuenta"
set spoolfile = "+INBOX"
set hostname = nombre de su servidor de correo
set mail_check = 120
set timeout = 300
set imap_keepalive = 300
set postponed ="Borrador"
set record = "Enviados"
set header_cache =~/.mutt/cache/headers
set message_cachedir =~/.mutt/cache/bodies
set certificate_file =~/.mutt/certificates
set smtp_url = "smtp://Servidor smtp de su cuenta.org:puerto smpt de su cuenta/"
set smtp_pass = "$my_password"
set move = no
set include=yes
set reply_to=yes
set pager_index_lines=6
set imap_keepalive = 993
set editor='nano'
set header_cache=~/.mutt/cache/headers
set message_cachedir=~/.mutt/cache/bodies
set certificate_file=~/.mutt/certificates
set smart_wrap=yes
set sort='threads'
set sort_aux='reverse-last-date-received'
set auto_tag=yes
set imap_check_subscribed
set timeout=60 #Check for mail every minute
set check_new
set mail_check=60
set beep_new
set markers=no
set alias_file=~/.mutt.aliases
set forward_decrypt
set pgp_autoencrypt
set pgp_autosign
set pgp_replyencrypt
set pgp_replysign
set pgp_replysignencrypted
set pgp_verify_sig=yes
set pgp_sign_as=0xLos 8 caracteres de su clave pub GPG
set pgp_show_unusable
set pgp_ignore_subkeys
macro index M "T.*\n;WN" "Mark all messages as read"
ignore "Authentication-Results:"
ignore "DomainKey-Signature:"
ignore "DKIM-Signature:"
hdr_order Date From To Cc
alternative_order text/plain text/html *
auto_view text/html
bind editor ^T complete
-----------------COLORES --------------------
# custom body highlights
# highlight my name and other personally relevant strings
-----------------------------
#color body brightcyan default "(ethan|schoonover)"
# custom index highlights
# messages which mention my name in the body
-----------------------------
#color index yellow default "~b \"phil(_g|\!| gregory| gold)|pgregory\" !~N !~T !~F !~p !~P"
#color index J_cream brightwhite "~b \"phil(_g|\!| gregory| gold)|pgregory\" ~N !~T !~F !~p !~P"
#color index yellow cyan "~b \"phil(_g|\!| gregory| gold)|pgregory\" ~T !~F !~p !~P"
#color index yellow J_magent "~b \"phil(_g|\!| gregory| gold)|pgregory\" ~F !~p !~P"
## messages which are in reference to my mails
#color index J_magent default "~x \"(mithrandir|aragorn)\\.aperiodic\\.net|thorin\\.hillmgt\\.com\" !~N !~T !~F !~p !~P"
#color index J_magent brightwhite "~x \"(mithrandir|aragorn)\\.aperiodic\\.net|thorin\\.hillmgt\\.com\" ~N !~T !~F !~p !~P"
#color index J_magent cyan "~x \"(mithrandir|aragorn)\\.aperiodic\\.net|thorin\\.hillmgt\\.com\" ~T !~F !~p !~P"
#color index J_magent red "~x \"(mithrandir|aragorn)\\.aperiodic\\.net|thorin\\.hillmgt\\.com\" ~F !~p !~P"
# for background in 16 color terminal, valid background colors include:
# base03, bg, black, any of the non brights
# basic colors
-----------------------------
color normal brightyellow default
color error red default
color tilde black default
color message brightred default
color markers red white
color attachment brightcyan default
color search brightmagenta default
#color status J_black J_status
color status brightyellow black
color indicator brightyellow red
color tree yellow default # arrow in threads
# basic monocolor screen
-----------------------------
mono bold bold
mono underline underline
mono indicator reverse
mono error bold
# index
-----------------------------
#color index red default "~D(!~p|~p)" # deleted
#color index black default ~F # flagged
#color index brightred default ~= # duplicate messages
#color index brightgreen default "~A!~N!~T!~p!~Q!~F!~D!~P" # the rest
#color index J_base default "~A~N!~T!~p!~Q!~F!~D" # the rest, new
color index red default "~A" # all messages
color index brightred default "~E" # expired messages
color index blue default "~N" # new messages
color index blue default "~O" # old messages
color index brightmagenta default "~Q" # messages that have been replied to
color index brightgreen default "~R" # read messages
color index blue default "~U" # unread messages
color index blue default "~U~$" # unread, unreferenced messages
color index brightyellow default "~v" # messages part of a collapsed thread
color index brightyellow default "~P" # messages from me
color index cyan default "~p!~F" # messages to me
color index cyan default "~N~p!~F" # new messages to me
color index cyan default "~U~p!~F" # unread messages to me
color index brightgreen default "~R~p!~F" # messages to me
color index red default "~F" # flagged messages
color index red default "~F~p" # flagged messages to me
color index red default "~N~F" # new flagged messages
color index red default "~N~F~p" # new flagged messages to me
color index red default "~U~F~p" # new flagged messages to me
color index black red "~D" # deleted messages
color index brightcyan default "~v~(!~N)" # collapsed thread with no unread
color index yellow default "~v~(~N)" # collapsed thread with some unread
color index green default "~N~v~(~N)" # collapsed thread with unread parent
# statusbg used to indicated flagged when foreground color shows other status
# for collapsed thread
color index red black "~v~(~F)!~N" # collapsed thread with flagged, no unread
color index yellow black "~v~(~F~N)" # collapsed thread with some unread & flagged
color index green black "~N~v~(~F~N)" # collapsed thread with unread parent & flagged
color index green black "~N~v~(~F)" # collapsed thread with unread parent, no unread inside, but some flagged
color index cyan black "~v~(~p)" # collapsed thread with unread parent, no unread inside, some to me directly
color index yellow red "~v~(~D)" # thread with deleted (doesn't differentiate between all or partial)
#color index yellow default "~(~N)" # messages in threads with some unread
#color index green default "~S" # superseded messages
#color index red default "~T" # tagged messages
#color index brightred red "~=" # duplicated messages
# message headers
-----------------------------
#color header brightgreen default "^"
color hdrdefault brightgreen default
color header brightyellow black ^Subject:
color header brightgreen black ^From:
color header brightred black ^To:
color header red black ^Cc:
color header brightcyan black ^Date:
color body magenta black "(ftp|http)://[^ ]+"
color body magenta black [-a-z_0-9.]+@[-a-z_0-9.]+
# body
-----------------------------
color quoted blue default
color quoted1 cyan default
color quoted2 yellow default
color quoted3 red default
color quoted4 brightred default
color signature brightgreen default
color bold black default
color underline black default
color normal white default # Color del texto
#
color body brightcyan default "[;:][-o][)/(|]" # emoticons
color body brightcyan default "[;:][)(|]" # emoticons
color body brightcyan default "[*]?((N)?ACK|CU|LOL|SCNR|BRB|BTW|CWYL|\
|FWIW|vbg|GD&R|HTH|HTHBE|IMHO|IMNSHO|\
|IRL|RTFM|ROTFL|ROFL|YMMV)[*]?"
color body brightcyan default "[ ][*][^*]*[*][ ]?" # more emoticon?
color body brightcyan default "[ ]?[*][^*]*[*][ ]" # more emoticon?
## pgp
-----------------------------
color body red default "(BAD signature)"
color body cyan default "(Good signature)"
color body brightblack default "^gpg: Good signature .*"
color body brightyellow default "^gpg: "
color body brightyellow red "^gpg: BAD signature from.*"
mono body bold "^gpg: Good signature"
mono body bold "^gpg: BAD signature from.*"
# yes, an insance URL regex
-----------------------------
color body yellow default "([a-z][a-z0-9+-]*://(((([a-z0-9_.!~*'();:&=+$,-]|%[0-9a-f][0-9a-f])*@)?((([a-z0-9]([a-z0-9-]*[a-z0-9])?)\\.)*([a-z]([a-z0-9-]*[a-z0-9])?)\\.?|[0-9]+\\.[0-9]+\\.[0-9]+\\.[0-9]+)(:[0-9]+)?)|([a-z0-9_.!~*'()$,;:@&=+-]|%[0-9a-f][0-9a-f])+)(/([a-z0-9_.!~*'():@&=+$,-]|%[0-9a-f][0-9a-f])*(;([a-z0-9_.!~*'():@&=+$,-]|%[0-9a-f][0-9a-f])*)*(/([a-z0-9_.!~*'():@&=+$,-]|%[0-9a-f][0-9a-f])*(;([a-z0-9_.!~*'():@&=+$,-]|%[0-9a-f][0-9a-f])*)*)*)?(\\?([a-z0-9_.!~*'();/?:@&=+$,-]|%[0-9a-f][0-9a-f])*)?(#([a-z0-9_.!~*'();/?:@&=+$,-]|%[0-9a-f][0-9a-f])*)?|(www|ftp)\\.(([a-z0-9]([a-z0-9-]*[a-z0-9])?)\\.)*([a-z]([a-z0-9-]*[a-z0-9])?)\\.?(:[0-9]+)?(/([-a-z0-9_.!~*'():@&=+$,]|%[0-9a-f][0-9a-f])*(;([-a-z0-9_.!~*'():@&=+$,]|%[0-9a-f][0-9a-f])*)*(/([-a-z0-9_.!~*'():@&=+$,]|%[0-9a-f][0-9a-f])*(;([-a-z0-9_.!~*'():@&=+$,]|%[0-9a-f][0-9a-f])*)*)*)?(\\?([-a-z0-9_.!~*'();/?:@&=+$,]|%[0-9a-f][0-9a-f])*)?(#([-a-z0-9_.!~*'();/?:@&=+$,]|%[0-9a-f][0-9a-f])*)?)[^].,:;!)? \t\r\n<>\"]"
# and a heavy handed email regex
-----------------------------
#color body J_magent default "((@(([0-9a-z-]+\\.)*[0-9a-z-]+\\.?|#[0-9]+|\\[[0-9]?[0-9]?[0-9]\\.[0-9]?[0-9]?[0-9]\\.[0-9]?[0-9]?[0-9]\\.[0-9]?[0-9]?[0-9]\\]),)*@(([0-9a-z-]+\\.)*[0-9a-z-]+\\.?|#[0-9]+|\\[[0-9]?[0-9]?[0-9]\\.[0-9]?[0-9]?[0-9]\\.[0-9]?[0-9]?[0-9]\\.[0-9]?[0-9]?[0-9]\\]):)?[0-9a-z_.+%$-]+@(([0-9a-z-]+\\.)*[0-9a-z-]+\\.?|#[0-9]+|\\[[0-2]?[0-9]?[0-9]\\.[0-2]?[0-9]?[0-9]\\.[0-2]?[0-9]?[0-9]\\.[0-2]?[0-9]?[0-9]\\])"
# Various smilies and the like
-----------------------------
#color body brightwhite default "<[Gg]>" #
#color body brightwhite default "<[Bb][Gg]>" #
#color body yellow default " [;:]-*[})>{(<|]" # :-) etc...
# *bold*
#color body blue default "(^|[[:space:][:punct:]])\\*[^*]+\\*([[:space:][:punct:]]|$)"
#mono body bold "(^|[[:space:][:punct:]])\\*[^*]+\\*([[:space:][:punct:]]|$)"
# _underline_
#color body blue default "(^|[[:space:][:punct:]])_[^_]+_([[:space:][:punct:]]|$)"
#mono body underline "(^|[[:space:][:punct:]])_[^_]+_([[:space:][:punct:]]|$)"
# /italic/ (Sometimes gets directory names)
#color body blue default "(^|[[:space:][:punct:]])/[^/]+/([[:space:][:punct:]]|$)"
#mono body underline "(^|[[:space:][:punct:]])/[^/]+/([[:space:][:punct:]]|$)"
# Border lines.
#color body blue default "( *[-+=#*~_]){6,}"
#folder-hook . "color status J_black J_status "
#folder-hook disroot/inbox "color status J_black yellow "
#folder-hook disroot/important "color status J_black yellow "

Lo que esta en negro es lo que se debería cambiar según el caso.

SuperTramp83

I am a translator!

Offline
Iscritto: 10/31/2014

Probò usted claws-mail? Es un cliente liviano y seguro. Se lo digo porquè creo que son esas las caracteristicas que usted va buscando en un cliente de correo, pero para usar claws-mail no hace falta ser un ingeniero.. :P

Gnu
Gnu
Offline
Iscritto: 03/08/2012

con Riseup Mail:


#si quieren almacenar las password con archivo gpg
#source "gpg -d ~/.mutt/password.gpg |"

# Account
set realname = 'TU NOMBRE'
set from = name at domain

# Send
set smtp_url = smtps:name at domain/
#si las passwords no son almacenadas en un archivo gpg quitar "#"
#set smtp_pass = $imap_pass

# Connection
set ssl_force_tls = yes
set ssl_starttls = yes

# Receive
set imap_user = name at domain
#si las passwords no son almacenadas en un archivo gpg quitar "#"
#set imap_pass = 'password'
set folder = imaps:name at domain/
set imap_check_subscribed

# Folder
set spoolfile = +INBOX
set postponed = +Drafts
set record = +Sent

# User Agent
#set user_agent = no

#
# Si quieren utilizar gnupg
#
set pgp_decode_command="gpg %?p?--passphrase-fd 0? --no-verbose --batch --output - %f"
set pgp_verify_command="gpg --no-verbose --batch --output - --verify %s %f"
set pgp_decrypt_command="gpg --passphrase-fd 0 --no-verbose --batch --output - %f"
set pgp_sign_command="gpg --no-verbose --batch --output - --passphrase-fd 0 --armor --detach-sign --textmode %?a?-u %a? %f"
set pgp_clearsign_command="gpg --no-verbose --batch --output - --passphrase-fd 0 --armor --textmode --clearsign %?a?-u %a? %f"
set pgp_encrypt_only_command="pgpewrap gpg --batch --quiet --no-verbose --output - --encrypt --textmode --armor --always-trust --encrypt-to 0xGPG--KEY -- -r %r -- %f"
set pgp_encrypt_sign_command="pgpewrap gpg --passphrase-fd 0 --batch --quiet --no-verbose --textmode --output - --encrypt --sign %?a?-u %a? --armor --always-trust --encrypt-to 0xGPG--KEY -- -r %r -- %f"
set pgp_import_command="gpg --no-verbose --import -v %f"
set pgp_export_command="gpg --no-verbose --export --armor %r"
set pgp_verify_key_command="gpg --no-verbose --batch --fingerprint --check-sigs %r"
set pgp_list_pubring_command="gpg --no-verbose --batch --with-colons --list-keys %r"
set pgp_list_secring_command="gpg --no-verbose --batch --with-colons --list-secret-keys %r"
set pgp_autosign=yes
set pgp_sign_as=0xGPG--KEY
#set postpone_encrypt_as=0xGPG--KEY
#set postpone_encrypt=yes
set pgp_replyencrypt=yes
set pgp_timeout=1800
set pgp_good_sign="^gpg: Good signature from"

Los datos a cambiar son:
"EMAIL"
"0xGPG--KEY"
"[at] mail [dot] riseup [dot] net" >> @mail.riseup.net/ <<

SuperTramp83

I am a translator!

Offline
Iscritto: 10/31/2014

Hola amigo Gnu! Veo que con riseup tiene forcado TLS y tambièn usa StartTLS. Hace justo unos dias leì en el sitio de la riseup esto:
https://riseup.net/en/email/clients

y en particular:

You should not use StartTLS. Instead, it is much better to use regular TLS. For added security, go to your account settings and change your connection type from StartTLS to TLS.

No entiendo por que no recomiendan usar StartTLS, hasta pensè entregarle una mail para preguntarselo..
Tiene usted una idea?

Gnu
Gnu
Offline
Iscritto: 03/08/2012

...yo también había leído el vinculo que has escrito,
pero MUTT y Claws-Mail sin STARTTLS no funcionan con el correo de RISEUP.

Además que las configuraciones de RISEUP para MUTT salen de ellos:
https://riseup.net/es/mutt

SuperTramp83

I am a translator!

Offline
Iscritto: 10/31/2014

>pero MUTT y Claws-Mail sin STARTTLS no funcionan con el correo de RISEUP

Exactamente eso, yo tambien tengo cuenta riseup y uso claws mail. Hice un test aquì y todo està bien (tengo stattls activado), lo que no me sorprende en lo mas minimo pues riseup de todo modo fuerza siempre el TLS..

https://www.checktls.com/perl/TestSender.pl

sds