diff --git a/lib/api/asps.js b/lib/api/asps.js index c64a3e9d..f09c34df 100644 --- a/lib/api/asps.js +++ b/lib/api/asps.js @@ -332,7 +332,8 @@ module.exports = (db, server, userHandler) => { let accountPort; let accountSecure; - if (scopes.includes('imap')) { + if (scopes.includes('*') || scopes.includes('imap')) { + // prefer IMAP accountType = 'EmailTypeIMAP'; accountHost = config.imap.setup.hostname; accountPort = config.imap.setup.port || config.imap.port;