The users are retrieved from an ldap server. The imap server is dovecot. However the error occurs before even attempting to contact the imap server as can be seen in the log-entry,
I suppose the mail app would use the username and password entered to login to contact the imap server. Is this correct?
Is there any possibility to have separate imap settings for one user?
The problem started to occur after changing the primary email address in nextcloud to another email address, but that is pointing to the same ldap account, and is also equal to the email used to login to nextcloud.
{"reqId":"Bs1heRl1zxhAJwoKg2Bi","level":3,"time":"2020-02-12T11:23:18+00:00","remoteAddr":"87.211.99.127","user":"rportier","app":"index","method":"GET","url":"/apps/mail/","message":{"Exception":"Exception","Message":"Argument 1 passed to OC\Security\Crypto::decrypt() must be of the type string, null given, called in /srv/www/www-nextcloud/public_html/apps/mail/lib/IMAP/IMAPClientFactory.php on line 66","Code":0,"Trace":[{"file":"/srv/www/www-nextcloud/public_html/lib/private/AppFramework/App.php","line":126,"function":"dispatch","class":"OC\AppFramework\Http\Dispatcher","type":"->","args":[{"class":"OCA\Mail\Controller\PageController"},"index"]},{"file":"/srv/www/www-nextcloud/public_html/lib/private/AppFramework/Routing/RouteActionHandler.php","line":47,"function":"main","class":"OC\AppFramework\App","type":"::","args":["OCA\Mail\Controller\PageController","index",{"class":"OC\AppFramework\DependencyInjection\DIContainer"},{"_route":"mail.page.index"}]},{"function":"__invoke","class":"OC\AppFramework\Routing\RouteActionHandler","type":"->","args":[{"_route":"mail.page.index"}]},{"file":"/srv/www/www-nextcloud/public_html/lib/private/Route/Router.php","line":297,"function":"call_user_func","args":[{"class":"OC\AppFramework\Routing\RouteActionHandler"},{"_route":"mail.page.index"}]},{"file":"/srv/www/www-nextcloud/public_html/lib/base.php","line":997,"function":"match","class":"OC\Route\Router","type":"->","args":["/apps/mail/"]},{"file":"/srv/www/www-nextcloud/public_html/index.php","line":42,"function":"handleRequest","class":"OC","type":"::","args":[]}],"File":"/srv/www/www-nextcloud/public_html/lib/private/AppFramework/Http/Dispatcher.php","Line":109,"Previous":{"Exception":"TypeError","Message":"Argument 1 passed to OC\Security\Crypto::decrypt() must be of the type string, null given, called in /srv/www/www-nextcloud/public_html/apps/mail/lib/IMAP/IMAPClientFactory.php on line 66","Code":0,"Trace":[{"file":"/srv/www/www-nextcloud/public_html/apps/mail/lib/IMAP/IMAPClientFactory.php","line":66,"function":"decrypt","class":"OC\Security\Crypto","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/srv/www/www-nextcloud/public_html/apps/mail/lib/IMAP/MailboxSync.php","line":75,"function":"getClient","class":"OCA\Mail\IMAP\IMAPClientFactory","type":"->","args":[{"class":"OCA\Mail\Account"}]},{"file":"/srv/www/www-nextcloud/public_html/apps/mail/lib/Service/MailManager.php","line":93,"function":"sync","class":"OCA\Mail\IMAP\MailboxSync","type":"->","args":[{"class":"OCA\Mail\Account"}]},{"file":"/srv/www/www-nextcloud/public_html/apps/mail/lib/Controller/PageController.php","line":113,"function":"getFolders","class":"OCA\Mail\Service\MailManager","type":"->","args":[{"class":"OCA\Mail\Account"}]},{"file":"/srv/www/www-nextcloud/public_html/lib/private/AppFramework/Http/Dispatcher.php","line":170,"function":"index","class":"OCA\Mail\Controller\PageController","type":"->","args":[]},{"file":"/srv/www/www-nextcloud/public_html/lib/private/AppFramework/Http/Dispatcher.php","line":99,"function":"executeController","class":"OC\AppFramework\Http\Dispatcher","type":"->","args":[{"class":"OCA\Mail\Controller\PageController"},"index"]},{"file":"/srv/www/www-nextcloud/public_html/lib/private/AppFramework/App.php","line":126,"function":"dispatch","class":"OC\AppFramework\Http\Dispatcher","type":"->","args":[{"class":"OCA\Mail\Controller\PageController"},"index"]},{"file":"/srv/www/www-nextcloud/public_html/lib/private/AppFramework/Routing/RouteActionHandler.php","line":47,"function":"main","class":"OC\AppFramework\App","type":"::","args":["OCA\Mail\Controller\PageController","index",{"class":"OC\AppFramework\DependencyInjection\DIContainer"},{"_route":"mail.page.index"}]},{"function":"__invoke","class":"OC\AppFramework\Routing\RouteActionHandler","type":"->","args":[{"_route":"mail.page.index"}]},{"file":"/srv/www/www-nextcloud/public_html/lib/private/Route/Router.php","line":297,"function":"call_user_func","args":[{"class":"OC\AppFramework\Routing\RouteActionHandler"},{"_route":"mail.page.index"}]},{"file":"/srv/www/www-nextcloud/public_html/lib/base.php","line":997,"function":"match","class":"OC\Route\Router","type":"->","args":["/apps/mail/"]},{"file":"/srv/www/www-nextcloud/public_html/index.php","line":42,"function":"handleRequest","class":"OC","type":"::","args":[]}],"File":"/srv/www/www-nextcloud/public_html/lib/private/Security/Crypto.php","Line":113},"CustomMessage":"--"},"userAgent":"Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:72.0) Gecko/20100101 Firefox/72.0","version":"17.0.3.1"}
The users are retrieved from an ldap server. The imap server is dovecot. However the error occurs before even attempting to contact the imap server as can be seen in the log-entry,
I suppose the mail app would use the username and password entered to login to contact the imap server. Is this correct?
Is there any possibility to have separate imap settings for one user?
The problem started to occur after changing the primary email address in nextcloud to another email address, but that is pointing to the same ldap account, and is also equal to the email used to login to nextcloud.
{"reqId":"Bs1heRl1zxhAJwoKg2Bi","level":3,"time":"2020-02-12T11:23:18+00:00","remoteAddr":"87.211.99.127","user":"rportier","app":"index","method":"GET","url":"/apps/mail/","message":{"Exception":"Exception","Message":"Argument 1 passed to OC\Security\Crypto::decrypt() must be of the type string, null given, called in /srv/www/www-nextcloud/public_html/apps/mail/lib/IMAP/IMAPClientFactory.php on line 66","Code":0,"Trace":[{"file":"/srv/www/www-nextcloud/public_html/lib/private/AppFramework/App.php","line":126,"function":"dispatch","class":"OC\AppFramework\Http\Dispatcher","type":"->","args":[{"class":"OCA\Mail\Controller\PageController"},"index"]},{"file":"/srv/www/www-nextcloud/public_html/lib/private/AppFramework/Routing/RouteActionHandler.php","line":47,"function":"main","class":"OC\AppFramework\App","type":"::","args":["OCA\Mail\Controller\PageController","index",{"class":"OC\AppFramework\DependencyInjection\DIContainer"},{"_route":"mail.page.index"}]},{"function":"__invoke","class":"OC\AppFramework\Routing\RouteActionHandler","type":"->","args":[{"_route":"mail.page.index"}]},{"file":"/srv/www/www-nextcloud/public_html/lib/private/Route/Router.php","line":297,"function":"call_user_func","args":[{"class":"OC\AppFramework\Routing\RouteActionHandler"},{"_route":"mail.page.index"}]},{"file":"/srv/www/www-nextcloud/public_html/lib/base.php","line":997,"function":"match","class":"OC\Route\Router","type":"->","args":["/apps/mail/"]},{"file":"/srv/www/www-nextcloud/public_html/index.php","line":42,"function":"handleRequest","class":"OC","type":"::","args":[]}],"File":"/srv/www/www-nextcloud/public_html/lib/private/AppFramework/Http/Dispatcher.php","Line":109,"Previous":{"Exception":"TypeError","Message":"Argument 1 passed to OC\Security\Crypto::decrypt() must be of the type string, null given, called in /srv/www/www-nextcloud/public_html/apps/mail/lib/IMAP/IMAPClientFactory.php on line 66","Code":0,"Trace":[{"file":"/srv/www/www-nextcloud/public_html/apps/mail/lib/IMAP/IMAPClientFactory.php","line":66,"function":"decrypt","class":"OC\Security\Crypto","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/srv/www/www-nextcloud/public_html/apps/mail/lib/IMAP/MailboxSync.php","line":75,"function":"getClient","class":"OCA\Mail\IMAP\IMAPClientFactory","type":"->","args":[{"class":"OCA\Mail\Account"}]},{"file":"/srv/www/www-nextcloud/public_html/apps/mail/lib/Service/MailManager.php","line":93,"function":"sync","class":"OCA\Mail\IMAP\MailboxSync","type":"->","args":[{"class":"OCA\Mail\Account"}]},{"file":"/srv/www/www-nextcloud/public_html/apps/mail/lib/Controller/PageController.php","line":113,"function":"getFolders","class":"OCA\Mail\Service\MailManager","type":"->","args":[{"class":"OCA\Mail\Account"}]},{"file":"/srv/www/www-nextcloud/public_html/lib/private/AppFramework/Http/Dispatcher.php","line":170,"function":"index","class":"OCA\Mail\Controller\PageController","type":"->","args":[]},{"file":"/srv/www/www-nextcloud/public_html/lib/private/AppFramework/Http/Dispatcher.php","line":99,"function":"executeController","class":"OC\AppFramework\Http\Dispatcher","type":"->","args":[{"class":"OCA\Mail\Controller\PageController"},"index"]},{"file":"/srv/www/www-nextcloud/public_html/lib/private/AppFramework/App.php","line":126,"function":"dispatch","class":"OC\AppFramework\Http\Dispatcher","type":"->","args":[{"class":"OCA\Mail\Controller\PageController"},"index"]},{"file":"/srv/www/www-nextcloud/public_html/lib/private/AppFramework/Routing/RouteActionHandler.php","line":47,"function":"main","class":"OC\AppFramework\App","type":"::","args":["OCA\Mail\Controller\PageController","index",{"class":"OC\AppFramework\DependencyInjection\DIContainer"},{"_route":"mail.page.index"}]},{"function":"__invoke","class":"OC\AppFramework\Routing\RouteActionHandler","type":"->","args":[{"_route":"mail.page.index"}]},{"file":"/srv/www/www-nextcloud/public_html/lib/private/Route/Router.php","line":297,"function":"call_user_func","args":[{"class":"OC\AppFramework\Routing\RouteActionHandler"},{"_route":"mail.page.index"}]},{"file":"/srv/www/www-nextcloud/public_html/lib/base.php","line":997,"function":"match","class":"OC\Route\Router","type":"->","args":["/apps/mail/"]},{"file":"/srv/www/www-nextcloud/public_html/index.php","line":42,"function":"handleRequest","class":"OC","type":"::","args":[]}],"File":"/srv/www/www-nextcloud/public_html/lib/private/Security/Crypto.php","Line":113},"CustomMessage":"--"},"userAgent":"Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:72.0) Gecko/20100101 Firefox/72.0","version":"17.0.3.1"}