Tuesday, 21 January 2020

mutt esmpt

Yahoo:

https://help.yahoo.com/kb/generate-password-sln15241.html

Under "Account Security", In "Manage app passwords"
Generate 2 passwords, one for smtp <SMTP_PASS> and one for imap <IMAP_PASS>

esmtp:
vim ~/.esmtprc

identity "name@yahoo.com"
hostname smtp.mail.yahoo.com:587
username "name@yahoo.com"
password "<SMTP_PASS>"
starttls required

mutt:
vim ~/.muttrc

set sendmail="/usr/bin/esmtp"
set envelope_from=yes
set from="NAME <name@yahoo.com>"
set use_from=yes
set edit_headers=yes

set header_cache=~/.mutt/cache/headers
set message_cachedir=~/.mutt/cache/bodies
set certificate_file=~/.mutt/certificates

set folder = "imaps://export.imap.mail.yahoo.com:993"
set spoolfile="imaps://imap.mail.yahoo.com/INBOX"
set postponed="imaps://imap.mail.yahoo.com/Drafts"
set record="imaps://imap.mail.yahoo.com/Sent"

set imap_user = 'name@yahoo.com'
set imap_pass = "<IMAP_PASS>"

set timeout = 10

Google:

mutt:
vim ~/.muttrc

set realname = "XXXXXXXX"
set from = "XXXXXXXX@gmail.com"
set use_from = yes
set envelope_from = yes
set edit_headers=yes

set smtp_url = "smtps://XXXXXXXX@gmail.com@smtp.gmail.com:465/"
set smtp_pass = "XXXXXXXX"
set imap_user = "XXXXXXXX@gmail.com"
set imap_pass = "XXXXXXXX"
set imap_keepalive = 900
set timeout = 10
set ssl_force_tls = yes
set ssl_starttls = yes

# G to get mail
bind index G imap-fetch-mail
set folder = "imaps://imap.gmail.com:993"
set spoolfile = "imaps://imap.gmail.com/INBOX"
set header_cache=~/.mutt/cache/headers
set message_cachedir=~/.mutt/cache/bodies
set certificate_file=~/.mutt/certificates
set record = ""
set postponed = "imaps://imap.gmail.com/[Gmail]/Draft"
set editor = "vim"
set charset = "utf-8"

No comments:

Post a Comment

vm - Centos - Boot into latest Kernel

sudo grub2-set-default 0 sudo grub2-mkconfig -o /boot/grub2/grub.cfg sudo reboot