doc:appunti:linux:sa:imap
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
doc:appunti:linux:sa:imap [2021/03/08 18:54] – [offlineimap] niccolo | doc:appunti:linux:sa:imap [2024/03/21 12:56] (current) – [offlineimap] niccolo | ||
---|---|---|---|
Line 41: | Line 41: | ||
a6 OK FETCH completed. | a6 OK FETCH completed. | ||
a7 LOGOUT | a7 LOGOUT | ||
+ | </ | ||
+ | |||
+ | Some IMAP servers present all the folders as subfolders of the INBOX: | ||
+ | |||
+ | < | ||
+ | a3 LIST "" | ||
+ | * LIST (\HasNoChildren) | ||
+ | * LIST (\HasNoChildren) | ||
+ | * LIST (\HasNoChildren) | ||
+ | * LIST (\Marked \HasChildren) " | ||
+ | a4 CREATE INBOX.Archive | ||
+ | </ | ||
+ | |||
+ | For other IMAP servers, the folders are outside the INBOX: | ||
+ | |||
+ | < | ||
+ | a3 LIST "" | ||
+ | * LIST (\HasNoChildren) | ||
+ | * LIST (\HasNoChildren \Drafts) | ||
+ | * LIST (\HasNoChildren \UnMarked \Sent) " | ||
+ | * LIST (\HasNoChildren \Trash) | ||
+ | * LIST (\HasNoChildren) | ||
+ | a4 CREATE Archive | ||
</ | </ | ||
Line 51: | Line 74: | ||
**ATTENZIONE** :!: Le versioni **6.3.4** di Debian Wheezy e **6.5.4** hanno diversi bug. | **ATTENZIONE** :!: Le versioni **6.3.4** di Debian Wheezy e **6.5.4** hanno diversi bug. | ||
- | **ATTENZIONE** :!: Il programma | + | **ATTENZIONE** :!: La versione **7.3.0** (git20210225) di Debian 11.3 Bullseye ha un bug con le cartelle IMAP che **contengono degli spazi** (vedere pull risolutivo [[https:// |
+ | |||
+ | **ATTENZIONE** :!: Il programma | ||
+ | |||
+ | **ATTENZIONE** :!: La versione **8.0.0** (Debian GNU/Linux 12 Bookworm) non riesce a gestire correttamente la sincronizzazione con server Courier IMAP in presenza di sottocartelle di primo livello o ulteriori. Vedere l' | ||
Pertanto, prima di iniziare la sincronizzazione, | Pertanto, prima di iniziare la sincronizzazione, | ||
Line 78: | Line 105: | ||
remotepass = MySecret | remotepass = MySecret | ||
createfolders = False | createfolders = False | ||
- | sslcacertfile = / | + | sslcacertfile = / |
+ | ssl_version = tls1_2 | ||
+ | # If you don't want IMAPS on port 993, you can use STARTTLS on port 143. | ||
+ | #ssl = no | ||
+ | #starttls = yes | ||
[Repository Localhost] | [Repository Localhost] | ||
Line 84: | Line 115: | ||
localfolders = / | localfolders = / | ||
</ | </ | ||
+ | |||
+ | Per impostazione predefinita offlineimap tenta una connessione **SSL** su porta **993/ | ||
+ | |||
+ | < | ||
+ | offlineimap.error.OfflineImapError: | ||
+ | You must configure at least something, otherwise having SSL helps nothing. | ||
+ | </ | ||
+ | |||
+ | Per vedere quale Certification Authority deve essere usata è necessario recuperare il certificato SSL dal server remoto, ad esempio con il comando: | ||
+ | |||
+ | < | ||
+ | openssl s_client -showcerts -connect mail.example.org: | ||
+ | </ | ||
+ | |||
+ | Quindi si ispeziona la **certificate chain** alla ricerca di **O**rganization e **C**ommon **N**ame con valori del tipo: | ||
+ | |||
+ | * O = Actalis S.p.A., CN = Actalis Organization Validated Server CA G3 | ||
+ | * O = Let's Encrypt, CN = R3 | ||
+ | |||
+ | Avendo installato il pacchetto **ca-certificates**, | ||
+ | |||
+ | < | ||
+ | [SSL: DH_KEY_TOO_SMALL] dh key too small (_ssl.c: | ||
+ | </ | ||
+ | |||
+ | Questo significa che il server utilizza una versione debole di SSL, vulnerabile ad attacchi del tipo //Factoring RSA Export Keys// poiché usa una chiave Diffie-Hellman più corta di 768 byte. In questo caso, se non possiamo correggere il server, è necessario aggiungere l' | ||
+ | |||
+ | Se si desidera utilizzare una connessione con STARTTLS su porta 143, è necessario aggiungere le opzioni '' | ||
Si esegue il programma in modalità **%%--info%%**, | Si esegue il programma in modalità **%%--info%%**, | ||
Line 193: | Line 252: | ||
* La '' | * La '' | ||
* Potrebbe essere necessario specificare l' | * Potrebbe essere necessario specificare l' | ||
+ | |||
+ | === Soluzione problemi === | ||
+ | |||
+ | Vedere **[[offlineimap3]]**. | ||
+ | |||
==== isync ==== | ==== isync ==== |
doc/appunti/linux/sa/imap.1615226056.txt.gz · Last modified: 2021/03/08 18:54 by niccolo