offlineimap
This commit is contained in:
40
content/posts/2025/mail/offlineimap.md
Normal file
40
content/posts/2025/mail/offlineimap.md
Normal file
@@ -0,0 +1,40 @@
|
|||||||
|
---
|
||||||
|
title: "📧 Бэкап электронной почты | OfflineIMAP"
|
||||||
|
date: 2025-07-25T22:51:37+03:00
|
||||||
|
draft: false
|
||||||
|
tags: [linux, mail, tips]
|
||||||
|
---
|
||||||
|
|
||||||
|
[OfflineIMAP](https://www.offlineimap.org/) — Утилита для резервного копирования почты.
|
||||||
|
Написана на `Python`.
|
||||||
|
|
||||||
|
Краткая инструкция по использованию лежит на сайте, [Quick Start](https://www.offlineimap.org/doc/quick_start.html).
|
||||||
|
|
||||||
|
Но по инструкции не работает, жалуется на `No CA certificates and no server fingerprints configured.`.
|
||||||
|
|
||||||
|
Решается добавлением файла корневых сертификатор в конфиг `sslcacertfile = /etc/ssl/certs/ca-certificates.crt`.
|
||||||
|
|
||||||
|
Ниже представлен мой конфиг для почтового сервиса **FastMail**.
|
||||||
|
|
||||||
|
Письма сохраняются в директорию `~/Mail`.
|
||||||
|
|
||||||
|
```text
|
||||||
|
[general]
|
||||||
|
accounts = Fastmail
|
||||||
|
ssl = yes
|
||||||
|
|
||||||
|
[Account Fastmail]
|
||||||
|
localrepository = Local
|
||||||
|
remoterepository = Fastmail
|
||||||
|
|
||||||
|
[Repository Local]
|
||||||
|
type = Maildir
|
||||||
|
localfolders = ~/Mail
|
||||||
|
|
||||||
|
[Repository Fastmail]
|
||||||
|
sslcacertfile = /etc/ssl/certs/ca-certificates.crt
|
||||||
|
type = IMAP
|
||||||
|
remotehost = imap.fastmail.com
|
||||||
|
remoteport = 993
|
||||||
|
remoteuser = iiiypuk@fastmail.fm
|
||||||
|
```
|
Reference in New Issue
Block a user