modoboa / modoboa-imap-migration

An extension to ease the migration between 2 IMAP servers using offlineimap
ISC License
16 stars 12 forks source link

offline imap fails #12

Closed oconshaw closed 6 years ago

oconshaw commented 7 years ago

The default configuration for offline imap as generated by modoboa (.offlineimaprc) seems to require some additional details to work. I'm not sure how it could ever work without some "tweaking" if you are using a secure connection. I think you must reference a security certificate.

In my case, I am NOT making a secure connection to the source server. I am using port 143, but it fails. I think the default for offlineimap is to assume a secure connection. I searched for a way to change this default, but couldn't find one. To resolve this I put ssl = false and it started working. The problem now is the .offlineimaprc file gets regenerated and overwritten from the CRON job every time this runs.

kryskool commented 7 years ago

Hi

in the template i see

{% if imap_server_secured == "yes" %}
ssl = yes
sslcacertfile = /etc/ssl/certs/ca-certificates.crt
{% endif %}

If you don't check the secure box, it does works. can you try ?

oconshaw commented 7 years ago

It is NOT checked. Just verified.

tonioo commented 7 years ago

Looks like the default value for ssl is true. I'll force it to false when the checkbox is not checked.

tonioo commented 7 years ago

@oconshaw why did you reopen this issue?