<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:"MS Mincho";
        panose-1:2 2 6 9 4 2 5 8 3 4;}
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:"\@MS Mincho";
        panose-1:2 2 6 9 4 2 5 8 3 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:#0563C1;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:#954F72;
        text-decoration:underline;}
span.E-postmall17
        {mso-style-type:personal-compose;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri",sans-serif;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:70.85pt 70.85pt 70.85pt 70.85pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="SV" link="#0563C1" vlink="#954F72">
<div class="WordSection1">
<p class="MsoNormal">Hi all<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><span lang="EN-US">Have searched tons about Fetchmail/o365 but to no avail, we are migrating to Office 365 but still have the exchange on-premise for RT to work. Just want to get out the question, has anyone here managed to IMAP a Shared
 Mailbox in O365 into RT?  Also read this but no solution: https://quornicus.wordpress.com/2016/01/08/fetchmail-office-365-configuration-rt/<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">poll serverdomainname.here<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">protocol IMAP<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">auth password**<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">user "local.domain\\user-credentials\\shared-mailboxname"<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">pass "secretpassword"<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">mda "/usr/bin/rt-mailgate --queue Testqueue  --action correspond --url http://rt.domainname" keep<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Error: Authorization failure.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">I have also tried to use SSL but fetchmail debug gives same error, even when trying to imap the users mailbox. We have a consultant doing this migration for us to O365, but not even them have managed to come around this
 issue. In my fetchmailconf file I have 15 working boxes that I’m polling, but only o365 is not working.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">fetchmail: outlook.office365.com key fingerprint: 3A:A4:58:42:56:CD:BD:11:19:5B:CF:1E:85:16:8E:4D<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">fetchmail: outlook.office365.com fingerprints match.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">fetchmail: IMAP< * OK The Microsoft Exchange IMAP4 service is ready. [SABFADEAUABSADAANgBDAEEAMAAwADcANgAuAGUAdQByAHAAcgBkADAANgAuAHAAcgBvAGQALgBvAHUAdABsAG8AbwBrAC4AYwBvAG0A]<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">fetchmail: IMAP> A0001 CAPABILITY<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">fetchmail: IMAP< * CAPABILITY IMAP4 IMAP4rev1 AUTH=PLAIN AUTH=XOAUTH2 SASL-IR UIDPLUS MOVE ID UNSELECT CHILDREN IDLE NAMESPACE LITERAL+<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">fetchmail: IMAP< A0001 OK CAPABILITY completed.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">fetchmail: Protocol identified as IMAP4 rev 1<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">fetchmail: GSSAPI error gss_inquire_cred: Unspecified GSS failure.  Minor code may provide more information<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">fetchmail: GSSAPI error gss_inquire_cred: No Kerberos credentials available<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">fetchmail: No suitable GSSAPI credentials found. Skipping GSSAPI authentication.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">fetchmail: If you want to use GSSAPI, you need credentials first, possibly from kinit.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">fetchmail: IMAP> A0002 LOGIN "local.domain\\user-credential" *<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">fetchmail: IMAP< A0002 NO LOGIN failed.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">fetchmail: Authorization failure on local.domain\user-credential@outlook-emeawest.office365.com<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">fetchmail: For help, see http://www.fetchmail.info/fetchmail-FAQ.html#R15<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">fetchmail: IMAP> A0003 LOGOUT<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">fetchmail: IMAP< * BYE Microsoft Exchange Server 2016 IMAP4 server signing off.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">fetchmail: IMAP< A0003 OK LOGOUT completed.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">fetchmail: 6.3.26 querying outlook.office365.com (protocol IMAP) at Mon 26 Sep 2016 03:13:44 PM CEST: poll completed<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Merged UID list from outlook.office365.com: <empty><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Thankful of any input on this, will post solution when found.<o:p></o:p></span></p>
</div>
</body>
</html>