Linux serverNETWORK ADMINISTRATIONSsmtp server liux

mutt Email + OfflineIMAP and msmtp – See your email offline!

Stop relying on the internet you need your email. Get OfflineIMAP and msmtp and sync them up with mutt for a lightweight, keyboard-centered and flexible email experience! lmao

The links to the templates I showed in the video are here: https://github.com/LukeSmithxyz/voidrice

I didn’t mention this in the video, but if using Gmail with this, you have to allow “less secure apps” (newspeak for non-Google apps) to access your gmail. To do this, go here: https://myaccount.google.com/lesssecureapps

BTW, excuse the flickering in this video, I’m experimenting with new compton settings, and while they’re 100% fine in actual use, they’ve been producing occasional flickering when I screencast!

Email me: luke@lukesmith.xyz
Send donations easily with PayPal: https://PayPal.me/LukeMSmith
Github: https://github.com/LukeSmithxyz
See my website: http://lukesmith.xyz

source

by Luke Smith

linux smtp client

25 thoughts on “mutt Email + OfflineIMAP and msmtp – See your email offline!

  • I like your way of thinking. I wonder were is the beautiful nature (without Internet) from your desktop?

  • is there any way I can make offlineimap only copy the last 100 or so emails to my computer? I think it is copying something like 50,000 emails to my computer, most of which are over a year old.

  • Does mutt support OAuth2 authentication? Would be nice not to have the plaintext password in a textfile

  • Hey Luke, have been using LARBS for a few weeks now and it's great, thanks a tonne for this awesome setup!!
    Today I've tried to setup my gmail acc with neomutt and offlineimap but when I run ./offlineimap… I get SSL failures:
    ERROR: Unknown SSL protocol connecting to host 'imap.gmail.com'
    [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:726)
    – followed by several (14) python traceback msgs relating to ssl.py, cert-libs and 'handshakes' failing.
    Have tried to follow the tracebacks but my python isn't that good!
    The imap settings for the gmail servers check out ok and I believe I've enabled imap access for 'other email clients' also.

    The searches I've read so far all speak of 'alternative protocols' for SSLs- so now totally lost.
    Any ideas, clues, pointers, directions, suggested docs-to-read would be greatly appreciated.
    This is on a very fresh archlinux (re)install (2 days old) all up to date. Fresh gpg keys created, but hardly any other messing about so far (ie, not yet broken again)

    Many thanks in advance, George

  • Does anyone know if you can make sure that you dont sync any mail that is older than a certain time. My mail accounts are pretty old and I dont want any mails older than 6 months to be synced.

  • offlineimap on Arch comes with systemd configs…

    So, all you need to do is:
    systemctl –user enable offlineimap-oneshot.timer

  • I came here to learn about mutt but now I'm wondering how you got that centered fullscreen view of vim at 2:27 😮

  • what font are you using for your terminal? also nice video

  • Great quality content,
    I would love to hear your opinion on taking research notes in the Linux ecosystem.

    Lately, I've been scratching my head trying to figure out a good solution.
    I used to use Evernote but quickly outgrew it, currently I have more than a 1000 notes/documents both technical and research focused.
    I then transitioned to LibreOffice and stored all my notes as separate documents on the disk (using Recoll for search and Ranger as a file manager) but LibreOffice (while a good effort) is rather hefty and tends to have bugs and interface issues that are hard to fix and work with on a daily basis.
    I'm currently considering using Git+LaTeX to store each of my notes inside it's own repository but that has the unfortunate overhead of having to compile the note with every change and also having to store multiple files for each note instead of just having a single document.
    I also tested some of the new Electron and web-based applications (e.g. GitBook, Boostnote, SimpleNote, MedleyText, Skrifa, Nteract …) but I haven't found anything that would suit my needs, not to mention the performance issues associated with Electron.

    Most of my notes are visual in nature (embedded images, graphs, tables, code-blocks etc.) but not much else beyond that.

    So I wonder if you have any advice to give on how to effectively manage your notes/reasearch material.

    Thanks!

  • Brief question, do you encrypt the password for your accounts or how do you manage your dotfiles?

  • Luke, thanks for the channel! Maybe you've already explained how to make that awesome tray you have on the desktop with system monitoring tools and other stats? I tried to do this in tint2, but no chance so far. Thanks again!

  • what email services do you use? or is it just gmail for all of them?

  • There's probably a way you can set things up with runit so that you have a class of services that only run when you have a net connection, so you'd have a script that synchronises offlineimap every minute or whatever set up as a service. I haven't looked into it myself, but that is the direction I'd take.

  • 4:21 I got scared of the name until I read that m here stands for mini (and SMTP is the protocol)

  • Luke you should make a distro and name it Hipster. Base if off gentoo while you're at it. Only a hipster would love using the terminal so much. I only use terminal when I have to. If I wanted to use nothing but a keyboard and terminal I would bust out my old commodore 64 or my tandy tsr-80. I remember the days of nothing but terminal and it was shit. I love my mouse and gui.

    Now to sit back and wait for the NaCl flood.
    get@rekt ~>$ systemctl enable saltbarrier.service topkek.service urgaypwned.service

    P.S. For you gentoo and slackware fanboys do this as root. dd if=/dev/zero of=/dev/sda. It may take a while to finish but you will be better off.

  • Two things to note before issuing `offlineimap`:

    1. Visit https://myaccount.google.com/lesssecureapps make sure it is OFF, else Google will block your app and notify you by email; also being kind to notify you again after you allowed the access about the change in your security settings, namely on your account no longer being protected by modern security standards. But failing to elaborate on why it is being unsecure. 🙂

    2. Case in stanza names and repository types MATTERS (Account, Repository, Gmail, Maildir). Don't lowercase 🙂

    I wonder if there's other accounts included or at least easily available, and why they included (only) Gmail by default? 🙂

  • notmuch is a good addition to this setup

  • This is great 😀 You should also make a video about managing passwords for all us newbs <3

  • Luke, what video editor do you use? Which one did you use for that Ubuntu going back to Gnome meme vid

  • "I dont have internet at home"
    … what?

  • What's the difference and or point of using the 'neo' suite of applications (neo vim, neomutt) vs the full versions, any benefits?

Comments are closed.