Better HN
topnewbestaskshowjobs
Log inSign up

al8ieK4o

3 karma · joined Jun 4, 2020 (6y ago) · 2 submissions

Submissions

comment 6y ago · link · parent

> Nowadays I just use rsync on Maildirs because I don't have any IMAP mail on servers where I don't have shell access, so I'm a bit out of date what the modern state of these tools is. Interesting to hear of another option I'd not come across back then

If you use rsync through ssh, I would say that's a very good option, if anything because on your server, you only need ssh to be exposed to the internet rather than ssh + an imap server. Given how servers are constantly attacked, this is way safer.

comment 6y ago · link · parent

I've been using a similar setup for a few years, and can totally vouch for it. Emails are probably one of the most important things to backup. Not sure what `imapgrab` adds, since fetching mails from imap is exactly what getmail is doing.

That being said, if you go on and set up getmail, I'm not sure what's the point to continue to use mutt through imap (the author mentions decrypting the archive before reading them, so I assume it's not their daily driver and they keep using direct imap connection otherwise). Imap is still useful if you want to read mails on your mobile.

For the encryption part, I found cryfs [1] to be very useful. It's a fuse based app that encrypts files on the fly as they are written to the pseudo fs and stores them in partioned small size encrypted files. Basically, it means you can use the pseudo fs as a regular directory, store your mail in it and read them from it, and then the special layout of the encrypted directory with its small files is especially rsync-friendly (outside of email system, if I store a big file where only a small part has changed, only the files related to these small changes will be uploaded).

An other advantage of going full local : you can use notmuch [2]. It's a mail indexer that allows fast and advanced search within mails. I have all my mails since 2013 locally, and it takes less than a second to make a full text search within them.

The last thing that I love is the ability to use maildrop [3]. It's regexp based filtering and can forward the mail to anything (mailbox or program), so it allows to have advanced filters that can do quite crazy things (my phone sends me mails when my battery is depleted or fully charged, and it triggers desktop notifications on my computer). Not to be abused, obviously. Don't allow anyone to shut down your computer by sending a email :)

[1] https://github.com/cryfs/cryfs

[2] https://notmuchmail.org/

[3] https://www.courier-mta.org/maildrop/