{"action":"opened","issue":{"url":"https://api.github.com/repos/owncloud/mail/issues/1560","repository_url":"https://api.github.com/repos/owncloud/mail","labels_url":"https://api.github.com/repos/owncloud/mail/issues/1560/labels{/name}","comments_url":"https://api.github.com/repos/owncloud/mail/issues/1560/comments","events_url":"https://api.github.com/repos/owncloud/mail/issues/1560/events","html_url":"https://github.com/owncloud/mail/issues/1560","id":165142344,"number":1560,"title":"Office 365 for Business (University) - \"Server Denied Authentication\"","user":{"login":"fredfs456","id":1835013,"avatar_url":"https://avatars.githubusercontent.com/u/1835013?v=3","gravatar_id":"","url":"https://api.github.com/users/fredfs456","html_url":"https://github.com/fredfs456","followers_url":"https://api.github.com/users/fredfs456/followers","following_url":"https://api.github.com/users/fredfs456/following{/other_user}","gists_url":"https://api.github.com/users/fredfs456/gists{/gist_id}","starred_url":"https://api.github.com/users/fredfs456/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fredfs456/subscriptions","organizations_url":"https://api.github.com/users/fredfs456/orgs","repos_url":"https://api.github.com/users/fredfs456/repos","events_url":"https://api.github.com/users/fredfs456/events{/privacy}","received_events_url":"https://api.github.com/users/fredfs456/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-07-12T18:04:58Z","updated_at":"2016-07-12T18:04:58Z","closed_at":null,"body":"### Steps to reproduce\r\n1. Add new account\r\n2. Input the following settings manually\r\nIMAP server: outlook.office365.com\r\nPort: 993, SSL/TLS\r\nLogin/pass: (I checked that these were correct)\r\nSMTP server: smtp.office365.com\r\nPort: 587, STARTTLS\r\nLogin/pass: (same as above)\r\n3. Click OK. \r\n\r\n### Expected behaviour\r\nAdd account\r\n\r\n### Actual behaviour\r\n\"Server denied authentication\"\r\n\r\n### ownCloud Mail\r\n\r\n**ownCloud Mail version:** (see ownCloud apps admin page)\r\n0.5.3\r\n**Mailserver or service:** (e.g. Outlook, Yahoo, Gmail, Exchange,...)\r\nOffice 365 for Business\r\n**Transport security - IMAP:** (None, SSL, TLS, STARTTLS) \r\nSSL\r\n**Transport security - SMTP:** (None, SSL, TLS, STARTTLS)\r\nSTARTTLS\r\n**Number of accounts:**\r\n3 added so far, Gmail, Hotmail, Gmail (unrelated)\r\n**ownCloud Mail version build date:** (only if you are using a Nightly Build)\r\nN/A - stock version shipped with Nextcloud 9.0.52\r\n\r\n### ownCloud Core\r\n\r\n#### Server configuration\r\n**Operating system**:\r\nDebian 8.5 Jessie\r\n**Web server:**\r\nApache 2.4.10 (Debian)\r\n**Database:**\r\nMariaDB 10.0.25\r\n**PHP version:**\r\n5.6.22-0+deb8u1\r\n**ownCloud version:** (see ownCloud admin page)\r\nNextcloud 9.0.52\r\n**Updated from an older ownCloud or fresh install:**\r\nFresh install\r\n**List of activated apps:**\r\n  - activity: 2.2.1\r\n  - admin_audit: 1.0.0\r\n  - calendar: 1.2.2\r\n  - comments: 0.2\r\n  - contacts: 1.3.1.0\r\n  - dav: 0.1.6\r\n  - external: 1.2\r\n  - federatedfilesharing: 0.1.0\r\n  - federation: 0.0.4\r\n  - files: 1.4.4\r\n  - files_external: 0.5.2\r\n  - files_pdfviewer: 0.8.1\r\n  - files_sharing: 0.9.1\r\n  - files_texteditor: 2.1\r\n  - files_trashbin: 0.8.0\r\n  - files_versions: 1.2.0\r\n  - files_videoplayer: 0.9.8\r\n  - firstrunwizard: 1.1\r\n  - galleryplus: 15.1.0\r\n  - mail: 0.5.2\r\n  - notifications: 0.2.3\r\n  - password_policy: 1.0.0\r\n  - provisioning_api: 0.4.1\r\n  - systemtags: 0.2\r\n  - templateeditor: 0.1\r\n  - theming: 0.1.0\r\n  - updatenotification: 0.1.0\r\n\r\n**The content of config/config.php:**\r\nStock config.php untouched\r\ncustom.config.php:\r\n<?php\r\n$CONFIG = array (\r\n  'trusted_domains' =>\r\n    array(\r\n      '192.168.0.220',\r\n      '[domain name removed]',\r\n    ),\r\n  'overwrite.cli.url' => 'https://deltaepsilon.nerdpol.ovh',\r\n  'htaccess.RewriteBase' => '/',\r\n  'memcache.local' => '\\OC\\Memcache\\APCu',\r\n  'logtimezone' => 'America/Toronto',\r\n  'enabledPreviewProviders' => array(\r\n        'OC\\Preview\\PNG',\r\n        'OC\\Preview\\JPEG',\r\n        'OC\\Preview\\GIF',\r\n        'OC\\Preview\\BMP',\r\n        'OC\\Preview\\XBitmap',\r\n        'OC\\Preview\\MP3',\r\n        'OC\\Preview\\TXT',\r\n        'OC\\Preview\\MarkDown',\r\n        'OC\\Preview\\Illustrator',\r\n        'OC\\Preview\\Movie',\r\n        'OC\\Preview\\MSOffice2003',\r\n        'OC\\Preview\\MSOffice2007',\r\n        'OC\\Preview\\MSOfficeDoc',\r\n        'OC\\Preview\\OpenDocument',\r\n        'OC\\Preview\\PDF',\r\n        'OC\\Preview\\Photoshop',\r\n        'OC\\Preview\\Postscript',\r\n        'OC\\Preview\\StarOffice',\r\n        'OC\\Preview\\SVG',\r\n        'OC\\Preview\\TIFF',\r\n        'OC\\Preview\\Font'\r\n  ),\r\n);\r\n\r\n#### Client configuration\r\n**Browser:**\r\nFirefox 47.0.1\r\n**Operating system:**\r\nWindows 10\r\n\r\n#### Logs\r\n##### Web server error log\r\nNothing relevant.\r\n##### ownCloud log (data/owncloud.log)\r\n{\"reqId\":\"87IpsCMMkiNcieHIkZED\",\"remoteAddr\":\"[Local IP, since this is on LAN]\",\"app\":\"mail\",\"message\":\"Creating account failed: Server denied authentication.\",\"level\":3,\"time\":\"2016-07-12T00:02:28-04:00\",\"method\":\"POST\",\"url\":\"\\/apps\\/mail\\/accounts\",\"user\":\"[my user name]\"}\r\n##### Horde IMAP log (data/horde_imap.log)\r\n>> Tue, 12 Jul 2016 17:37:30 +0000\r\n>> Connection to: imap://outlook.office365.com:993/\r\n>> Server connection took 0.2162 seconds.\r\nS: * OK The Microsoft Exchange IMAP4 service is ready. [QwBZADEAUABSADIAMABDAEEAMAAwADEAMQAuAG4AYQBtAHAAcgBkADIAMAAuAHAAcgBvAGQALgBvAHUAdABsAG8AbwBrAC4AYwBvAG0A]\r\nC: 1 CAPABILITY\r\nS: * CAPABILITY IMAP4 IMAP4rev1 AUTH=PLAIN AUTH=XOAUTH2 SASL-IR UIDPLUS ID UNSELECT CHILDREN IDLE NAMESPACE LITERAL+\r\nS: 1 OK CAPABILITY completed.\r\n>> Command 1 took 0.0562 seconds.\r\nC: 2 AUTHENTICATE PLAIN [INITIAL CLIENT RESPONSE (username: [email address removed])]\r\nS: 2 OK AUTHENTICATE completed.\r\n>> Command 2 took 1.3256 seconds.\r\nC: 3 CAPABILITY\r\nS: * CAPABILITY IMAP4 IMAP4rev1 AUTH=PLAIN AUTH=XOAUTH2 SASL-IR UIDPLUS MOVE ID UNSELECT CLIENTACCESSRULES CLIENTNETWORKPRESENCELOCATION BACKENDAUTHENTICATE CHILDREN IDLE NAMESPACE LITERAL+\r\nS: 3 OK CAPABILITY completed.\r\n>> Command 3 took 0.0782 seconds.\r\nC: 4 LOGOUT\r\nS: * BYE Microsoft Exchange Server 2016 IMAP4 server signing off.\r\nS: 4 OK LOGOUT completed.\r\n>> Command 4 took 0.0845 seconds.\r\n\r\n##### Horde SMTP log (data/horde_smtp.log)\r\nNothing relevant\r\n\r\n##### Browser log\r\n... I didn't check, but doens't seem necessary."}}
{"actor":{"display_login":"fredfs456"}}