I was looking to set up the mutt email client on my Ubuntu box to go through my gmail account. Since it took me a couple of hours to figure out, and I’ll probably forget by the time I need to know again, I figure I’d post my steps here.
I’m on Ubuntu 16.04 LTS (lsb_release -a)
Install mutt:
1
| |
In gmail, allow other apps to access gmail:
Allowing less secure apps to access your account Less Secure Apps
Create the folder
1 2 3 | |
where $MAIL for me was /var/mail/nick.
Create the ~/.muttrc file
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | |
I’m sure there’s better/more config options. Feel free to go wild, this is by no means a comprehensive setup.
Run mutt:
1
| |
We should see it connect and download our messages. m to start sending new
messages. G to fetch new messages.
