<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=iso-8859-1">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]--><style><!--
/* Font Definitions */
@font-face
        {font-family:Helvetica;
        panose-1:2 11 6 4 2 2 2 2 2 4;}
@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;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
span.E-postmall18
        {mso-style-type:personal-reply;
        font-family:"Calibri",sans-serif;
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@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"><span lang="EN-US" style="color:#1F497D">Found the solution to this after some head scratching, StartTLS is required towards o365, contrary to the information we got before migrating.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D">poll outlook.office365.com<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D">protocol IMAP<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D">user "email.forauthorization@yourdomain.now/Sharedmailboxname"<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D">pass "password"<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D">ssl<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D">mda "/usr/bin/rt-mailgate --queue Youqueue  --action correspond --url http://rt.domain" keep<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D">Above works for me!<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<table class="MsoNormalTable" border="0" cellspacing="0" cellpadding="0">
<tbody>
<tr style="height:60.0pt">
<td width="100" valign="top" style="width:75.0pt;padding:7.5pt 7.5pt 7.5pt 7.5pt;height:60.0pt">
<p class="MsoNormal"><a href="http://www.t3.se/"><span style="font-size:12.0pt;font-family:"Times New Roman",serif;color:blue;text-decoration:none"><img border="0" width="80" height="68" style="width:.8333in;height:.7083in" id="Bild_x0020_1" src="cid:image001.jpg@01D219A7.34752150" alt="Beskrivning: T3"></span></a><span style="font-size:12.0pt;font-family:"Times New Roman",serif;color:#1F497D"><o:p></o:p></span></p>
</td>
<td style="padding:7.5pt 7.5pt 7.5pt 7.5pt;height:60.0pt">
<p class="MsoNormal"><b><span lang="EN-US" style="font-size:7.5pt;font-family:"Helvetica",sans-serif;color:#1F497D">JOEL BERGMARK</span></b><b><span lang="EN-US" style="font-size:7.5pt;font-family:"Helvetica",sans-serif;color:#65AF2A"> 
<o:p></o:p></span></b></p>
<p class="MsoNormal"><b><span lang="EN-US" style="font-size:7.5pt;font-family:"Helvetica",sans-serif;color:#65AF2A">Thirdline support<o:p></o:p></span></b></p>
<p class="MsoNormal"><span style="font-size:7.5pt;font-family:"Helvetica",sans-serif;color:#1F497D"><a href="mailto:joel.bergmark@t3.se"><span lang="EN-US" style="color:blue">joel.bergmark@t3.se</span></a></span><span lang="EN-US" style="font-size:7.5pt;font-family:"Helvetica",sans-serif;color:#1F497D">
 | </span><span style="font-size:7.5pt;font-family:"Helvetica",sans-serif;color:#1F497D"><a href="http://www.t3.se/"><span lang="EN-US" style="color:blue">www.t3.se</span></a></span><span lang="EN-US" style="font-size:12.0pt;font-family:"Times New Roman",serif;color:#1F497D"><br>
</span><a href="http://www.facebook.com/pages/Telecom3-Sverige-AB/126032287454737"><span style="font-size:12.0pt;font-family:"Times New Roman",serif;color:blue;text-decoration:none"><img border="0" width="129" height="20" style="width:1.3437in;height:.2083in" id="Bild_x0020_2" src="cid:image002.jpg@01D219A7.34752150" alt="Beskrivning: T3"></span></a><span lang="EN-US" style="font-size:12.0pt;font-family:"Times New Roman",serif;color:#1F497D"><o:p></o:p></span></p>
</td>
</tr>
</tbody>
</table>
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D"><o:p> </o:p></span></p>
<div>
<div style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal"><b>Från:</b> rt-users [mailto:rt-users-bounces@lists.bestpractical.com]
<b>För </b>Joel Bergmark<br>
<b>Skickat:</b> den 26 september 2016 15:29<br>
<b>Till:</b> rt-users@lists.bestpractical.com<br>
<b>Ämne:</b> [rt-users] O365/Fetchmail<o:p></o:p></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<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: <a href="https://quornicus.wordpress.com/2016/01/08/fetchmail-office-365-configuration-rt/">
https://quornicus.wordpress.com/2016/01/08/fetchmail-office-365-configuration-rt/</a><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
<a href="http://rt.domainname">http://rt.domainname</a>" 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 <a href="http://www.fetchmail.info/fetchmail-FAQ.html#R15">
http://www.fetchmail.info/fetchmail-FAQ.html#R15</a><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>