Configuring Mutt for Gandi Mail (IMAP and SMTP)
Gandi is my favorite registrar for many reasons. Their motto is “No Bullshit” and they mean it. They make it super easy to manage domains, and offer tons of great services. One of the best things about buying a domain from Gandi is that they provide you with free email for the life of your domain. Setting up a mail server can be a pain in the ass, so this is really kind of awesome. mutt is an awesome MUA (Mail User Agent) that is light weight, terminal based, and highly customizable. Your local mail system can be as complex or as simple as you want it to be. There are countless guides out there on how to mutt, but a lot of them seem way to complex for my use case and can get very confusing. This guide will help you get mutt working with Gandi mail. Gandi mail is a pretty generic mail stack so this should also apply to any other IMAP/SMTP mail system that uses Dovecot, Postfix, etc… as well. My use case is this:
- I use Gandi mail for all of my personal email for a single address.
- I want to connect to Gandi using IMAP with mutt
- I want to send mail with mutt by connecting to Gandi with SMTP
- If you have not already, install mutt.
#On Debian Based Distros apt-get install mutt
#On Red Hat Based Distros
yum install mutt#On Mac OS X, assuming you have Homebrew Installed brew install mutt
- Open up a text editor and put the following in your \~/.muttrc file
# Configure imap username and password set imap_user="[email protected]" set imap_pass="YourPassword"
Configure Default Folder and where to put Sent Mail set folder=“imaps://mail.gandi.net:993/”
set spoolfile=$folder set record="=Sent"
Configure SMTP Settings
set smtp_url = “smtp://$imap_user:$imap_[email protected]:587/” set realname=“Your Name” set from=“[email protected]” set use_from = yes
Enable STARTTLS for Security set ssl_starttls=yes
- Fire up
mutt
, you will be logged into your Gandi inbox and you can start rocking out your mail.
UPDATE 1:
Added STARTTLS to .muttrc example, thanks to Kenn for the catch.
Thank you for reading! Share your thoughts with me on bluesky, mastodon, or via email.
Check out some more stuff to read down below.
Most popular posts this month
- 2024
- Reinstalling Windows at 1am
- SQLite DB Migrations with PRAGMA user_version
- My Custom Miniflux CSS Theme
- How to Disable Wayland in Debian Testing
Recent Favorite Blog Posts
This is a collection of the last 8 posts that I bookmarked.
- 21st Century C++ from Communications of the ACM
- Submarines DevCon 2025 Keynote Speech from JoshHaines.com
- How I Use AI: Meet My Promptly Hired Model Intern from Armin Ronacher's Thoughts and Writings
- DeepSeek from Maggie Appleton
- Digital Reality Digital Shock from Christopher Butler
- 10 habits to help becoming a Debian Maintainer from Optimized by Otto
- Tiny corners from Manuel Moreale RSS Feed
- Build It Yourself from Armin Ronacher's Thoughts and Writings
Articles from blogs I follow around the net
Pluralistic: America and "national capitalism" (18 Feb 2025)
Today's links America and "national capitalism": How the EU should respond to Trumpism. Hey look at this: Delights to delectate. Object permanence: 2005, 2010, 2015 Upcoming appearances: Where to find me. Recent appearances: Where I've bee…
via Pluralistic: Daily links from Cory Doctorow February 18, 2025My Life in Weeks by Gina Trapani
OMG. Life perspective through UI. I freaking love it. Check out My Life in Weeks by Gina Trapani
via Blog – Brad Frost February 18, 2025Argentinian president Javier Milei promotes memecoin that then crashes 95% in apparent $100 million+ rug pull
A tweet from Argentina's president Javier Milei promoted a memecoin called Libra, which he described as a "private project [that] will [be] dedicated to encouraging the growth of the Argentine economy by funding small Argenti…
via Web3 is Going Just Great February 18, 2025Generated by openring