modoboa / modoboa-imap-migration

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

SSL not enabled in offlineimap configuration #19

Closed stooj closed 6 years ago

stooj commented 6 years ago

Version: 1.1.1

I've enabled SSL using modoboa settings:

2017-09-28-102520_3440x1440_scrot

The generated configuration has ssl disabled:

[general]
accounts = stooj@example.com
pythonfile = ~/.offlineimap.py

[Account stooj@example.com]
localrepository = Local_stooj@example.com
remoterepository = Remote_stooj@example.com
status_backend = sqlite

[Repository Local_stooj@example.com]
type = IMAP
ssl = false
remotehost = localhost
remoteuser = stooj@example.com
remotepasseval = get_user_password("stooj@example.com")

[Repository Remote_stooj@example.com]
type = IMAP
remotehost = mail.example.com
remoteport = 993

ssl = no

remoteuser = stooj@example.com
remotepasseval = get_user_password("stooj@example.com")
readonly = true
stooj commented 6 years ago

The template file offlineimap.conf checks to see if the value of imap_server_secured is "yes", but the value that comes from the param dictionary in the management command is True.