# Mutt Configuration for Yahoo! (Working sol -)

**URL:** <https://community.unix.com/t/mutt-configuration-for-yahoo-working-sol/371571>\
**Category:** UNIX and Linux Applications\
**Created:** [March 31, 2018, 8:00am UTC](https://community.unix.com/t/mutt-configuration-for-yahoo-working-sol/371571 "2018-03-31T08:00:20Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![puneet\_bapna](https://community.unix.com/letter_avatar/puneet_bapna/32/6_22734026db12803ebb3e059622ac3534.png) [@puneet\_bapna](https://community.unix.com/u/puneet_bapna)\
**Post date:** [March 31, 2018, 8:00am UTC](https://community.unix.com/t/mutt-configuration-for-yahoo-working-sol/371571/1 "2018-03-31T08:00:20Z")

</div>

First configure the directory as so--

```plaintext
mkdir -p ~/.mutt/cache/headers
mkdir ~/.mutt/cache/bodies
touch ~/.mutt/certificates

```

Then create the config file --

```plaintext
touch ~/.mutt/muttrc

```

Now, edit the file  
sudo nano ~/.mutt/muttrc

Thanks to iandexter/github for the script:-

```plaintext
# Gmail settings
set imap_user = "username@yahoo.com"
set imap_pass = "password"
set smtp_url = "smtp://username@smtp.mail.yahoo.com:465/"
set smtp_pass = "password"
set from = "username@yahoo.com"
set realname = "Your real name"
set folder = "imaps://imap.mail.yahoo.com:993"
set spoolfile = "+INBOX"
set postponed="+[Gmail]/Drafts"
set header_cache=~/.mutt/cache/headers
set message_cachedir=~/.mutt/cache/bodies
set certificate_file=~/.mutt/certificates
set move = no
set sort = 'threads'
set sort_aux = 'last-date-received'
set imap_check_subscribed

# Some tweaks
set imap_keepalive = 300
set mail_check = 90
set timeout = 15
set charset = iso-8859-1

```

~Thanks  
[https://help.yahoo.com/kb/SLN4075.html](https://help.yahoo.com/kb/SLN4075.html)

> <https://unix.stackexchange.com/questions/226936/how-to-install-setup-mutt-with-gmail-on-centos-and-ubuntu>

> <https://gist.github.com/iandexter/467664>

---------- Post updated at 07:00 AM ---------- Previous update was at 04:19 AM ----------

Thanks to

> **[\[Solved\] How does the SMTP url look like](https://discourse.mailinabox.email/t/solved-how-does-the-smtp-url-look-like/731/4)**
>
> It looks like this is the right way: smtp://$my\_emailaddress:$my\_password@box.domain.com:587 with this setting: set ssl\_starttls = yes At least it works this way 👍

---

<div class="post-metadata">

**Author:** ![puneet\_bapna](https://community.unix.com/letter_avatar/puneet_bapna/32/6_22734026db12803ebb3e059622ac3534.png) [@puneet\_bapna](https://community.unix.com/u/puneet_bapna)\
**Post date:** [March 31, 2018, 8:07am UTC](https://community.unix.com/t/mutt-configuration-for-yahoo-working-sol/371571/2 "2018-03-31T08:07:36Z")

</div>

Unfortunately sending did not work with the above,  
here are the changes you have to make

Change

```nohighlight
set smtp_url = "smtp://$imap_user:$imap_pass@smtp.mail.yahoo.com:587"

```

Add

set ssl\_starttls = yes
