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:53] – 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 49: | Line 72: | ||
| Sincronizza una cartella su server **IMAP remoto** con una **Maildir locale** oppure un altro **server IMAP**. Sembra il programma più flessibile e semplice da utilizzare rispetto a **isync**, **mailsync**, | Sincronizza una cartella su server **IMAP remoto** con una **Maildir locale** oppure un altro **server IMAP**. Sembra il programma più flessibile e semplice da utilizzare rispetto a **isync**, **mailsync**, | ||
| - | La versione | + | **ATTENZIONE** :!: Le versioni |
| + | |||
| + | **ATTENZIONE** :!: La versione | ||
| + | |||
| + | **ATTENZIONE** :!: Il programma effettua una sincronizzazione **bidirezionale**, | ||
| - | **ATTENZIONE** :!: Il programma offre una funzione di sincronizzazione | + | **ATTENZIONE** :!: La versione |
| 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.1615225981.txt.gz · Last modified: by niccolo
