App for email backup - imap

hakamairi

Cadet
Joined
Dec 30, 2021
Messages
3
I'm looking for a way to backup my gmail and some custom imap servers to TrueNAS scale.

Found some topics on forums that recommended imapsync (https://github.com/imapsync/imapsync/) but this seems to sync data between two imap servers, not to mention that they were for TrueNAS Core.
In my mind that would do a DB like backup, full, incremental with option to restore.

Taking this into account I found
- https://github.com/joeyates/imap-backup
- https://github.com/GAM-team/got-your-back/wiki
They both seem maintained

Sadly I haven't found apps in official catalogue nor TrueCharts. I'm now to TrueNAS, but I know some docker.

Is there an app for that?
If no, how do I do that in TNS? Is there any guide or recommendation for creating new docker images? Or maybe there's another way to tackle this?
 

inSparks

Cadet
Joined
Apr 24, 2023
Messages
5
If I remember correctly, Paperless-ngx has the ability to archive emails from IMAP accounts, certainly as they come in. I think Nextcloud might be able to do it too, though you'd need to find the app through Nextcloud itself..
 

stefmari

Cadet
Joined
May 3, 2023
Messages
1
I'm looking for a way to backup my gmail and some custom imap servers to TrueNAS scale.

Found some topics on forums that recommended imapsync (https://github.com/imapsync/imapsync/) but this seems to sync data between two imap servers, not to mention that they were for TrueNAS Core.
In my mind that would do a DB like backup, full, incremental with option to restore.

Taking this into account I found
- https://github.com/joeyates/imap-backup
- https://github.com/GAM-team/got-your-back/wiki
They both seem maintained

Sadly I haven't found apps in official catalogue nor TrueCharts. I'm now to TrueNAS, but I know some docker.

Is there an app for that?
If no, how do I do that in TNS? Is there any guide or recommendation for creating new docker images? Or maybe there's another way to tackle this?
I am certainly into this also. I know of implementations with getmail() on Debian but not FreeBSD... but we shall dig for more and post it here...
 

Patrick M. Hausen

Hall of Famer
Joined
Nov 25, 2013
Messages
7,776
You could run a dovecot docker image. Dovecot is the standard IMAP server for Unix systems. Then run that imapsync script on the TrueNAS SCALE host as a cron job. Some assembly required, batteries not included.

Keep the dovecot IMAP store an a mounted volume and snapshot that. Voila - backup of a remote IMAP account.

I would definitely go that route if I was set to that task. Although I would use a CORE jail instead of docker.
 
Top