# fetchmailrc and Office365

**URL:** <https://forums.suse.com/t/fetchmailrc-and-office365/35336>\
**Category:** SLES Configure-Administer\
**Created:** [October 22, 2020, 1:33pm UTC](https://forums.suse.com/t/fetchmailrc-and-office365/35336 "2020-10-22T13:33:22Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Gerold](https://avatars.discourse-cdn.com/v4/letter/g/f1d935/32.png) [@Gerold](https://forums.suse.com/u/Gerold)\
**Post date:** [October 22, 2020, 1:33pm UTC](https://forums.suse.com/t/fetchmailrc-and-office365/35336/1 "2020-10-22T13:33:22Z")

</div>

Hi there,  
I have an issue by geting mails from a SLES fetchmail config who should pick up mails at O365.  
My .fechtmailrc looks like this

_poll [outlook.office365.com](http://outlook.office365.com)  
proto imap  
auth password  
user “username@DOMAIN.TLD”  
pass “very\_secret\_and\_I\_don’t\_tell\_you”  
folder “Inbox”  
keep  
is local\_user_

the error message is:

_fetchmail: 6.3.26 querying [outlook.office365.com](http://outlook.office365.com) (protocol IMAP) at Thu 22 Oct 2020 03:27:58 PM CEST: poll started  
Trying to connect to 40.101.12.34/143…connected.  
fetchmail: IMAP\< \* OK The Microsoft Exchange IMAP4 service is ready. [QQBNADMAUABSADAANQBDAEEAMAAxADIAMgAuAGUAdQByAHAAcgBkADAANQAuAHAAcgBvAGQALgBvAHUAdABsAG8AbwBrAC4AYwBvAG0A]  
fetchmail: IMAP\> A0001 CAPABILITY  
fetchmail: IMAP\< \* CAPABILITY IMAP4 IMAP4rev1 LOGINDISABLED STARTTLS SASL-IR UIDPLUS MOVE ID UNSELECT CHILDREN IDLE NAMESPACE LITERAL+  
fetchmail: IMAP\< A0001 OK CAPABILITY completed.  
fetchmail: IMAP\> A0002 STARTTLS  
fetchmail: IMAP\< A0002 OK Begin TLS negotiation now.  
fetchmail: Server certificate:  
fetchmail: Issuer Organization: GlobalSign nv-sa  
fetchmail: Issuer CommonName: GlobalSign Organization Validation CA - SHA256 - G3  
fetchmail: Subject CommonName: [outlook.com](http://outlook.com)  
fetchmail: Subject Alternative Name: [outlook.com](http://outlook.com)  
fetchmail: Subject Alternative Name: \*.clo.footprintdns.com  
fetchmail: Subject Alternative Name: \*.hotmail.com  
fetchmail: Subject Alternative Name: \*.internal.outlook.com  
fetchmail: Subject Alternative Name: \*.live.com  
fetchmail: Subject Alternative Name: \*.nrb.footprintdns.com  
fetchmail: Subject Alternative Name: \*.office.com  
fetchmail: Subject Alternative Name: \*.office365.com  
fetchmail: Subject Alternative Name: \*.outlook.com  
fetchmail: Subject Alternative Name: \*.outlook.office365.com  
fetchmail: Subject Alternative Name: [attachment.outlook.live.net](http://attachment.outlook.live.net)  
fetchmail: Subject Alternative Name: [attachment.outlook.office.net](http://attachment.outlook.office.net)  
fetchmail: Subject Alternative Name: [attachment.outlook.officeppe.net](http://attachment.outlook.officeppe.net)  
fetchmail: Subject Alternative Name: [attachments.office.net](http://attachments.office.net)  
fetchmail: Subject Alternative Name: [attachments-sdf.office.net](http://attachments-sdf.office.net)  
fetchmail: Subject Alternative Name: [ccs.login.microsoftonline.com](http://ccs.login.microsoftonline.com)  
fetchmail: Subject Alternative Name: [ccs-sdf.login.microsoftonline.com](http://ccs-sdf.login.microsoftonline.com)  
fetchmail: Subject Alternative Name: [hotmail.com](http://hotmail.com)  
fetchmail: Subject Alternative Name: [mail.services.live.com](http://mail.services.live.com)  
fetchmail: Subject Alternative Name: [office365.com](http://office365.com)  
fetchmail: Subject Alternative Name: [outlook.office.com](http://outlook.office.com)  
fetchmail: Subject Alternative Name: [substrate.office.com](http://substrate.office.com)  
fetchmail: Subject Alternative Name: [substrate-sdf.office.com](http://substrate-sdf.office.com)  
fetchmail: [outlook.office365.com](http://outlook.office365.com) key fingerprint: 44:37:02:30:97:0F:61:9B:B4:59:E2:D1:B0:5E:2D:09  
fetchmail: IMAP\> A0003 CAPABILITY  
fetchmail: IMAP\< \* CAPABILITY IMAP4 IMAP4rev1 AUTH=PLAIN AUTH=XOAUTH2 SASL-IR UIDPLUS MOVE ID UNSELECT CHILDREN IDLE NAMESPACE LITERAL+  
fetchmail: IMAP\< A0003 OK CAPABILITY completed.  
fetchmail: [outlook.office365.com](http://outlook.office365.com): upgrade to TLS succeeded.  
fetchmail: IMAP\> A0004 LOGIN “username@DOMAIN.TLD” \*  
fetchmail: IMAP\< A0004 NO LOGIN failed.  
 **fetchmail: Authorization failure on username@DOMAIN.TLD@ANOTHER\_NAME\_Bla-Bla.office.com**  
fetchmail: For help, see [http://www.fetchmail.info/fetchmail-FAQ.html#R15](http://www.fetchmail.info/fetchmail-FAQ.html#R15)  
fetchmail: IMAP\> A0005 LOGOUT  
fetchmail: IMAP\< \* BYE Microsoft Exchange Server IMAP4 server signing off.  
fetchmail: IMAP\< A0005 OK LOGOUT completed.  
fetchmail: 6.3.26 querying [outlook.office365.com](http://outlook.office365.com) (protocol IMAP) at Thu 22 Oct 2020 03:27:59 PM CEST: poll completed  
fetchmail: Query status=3 (AUTHFAIL)  
fetchmail: normal termination, status 3_

where is the issue? Can you provide me with a working .fetchmailrc?

Thanks in advance

---

<div class="post-metadata">

**Author:** ![malcolmlewis](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/malcolmlewis/32/11375_2.png) [@malcolmlewis](https://forums.suse.com/u/malcolmlewis)\
**Post date:** [October 22, 2020, 2:26pm UTC](https://forums.suse.com/t/fetchmailrc-and-office365/35336/2 "2020-10-22T14:26:56Z")

</div>

Hi and welcome to the Forum 🙂  
So did you try the suggestions in the fetchmail FAQ link?

```auto
Solution: Configure the right authentication scheme explicitly, for instance, with --auth cram-md5 or --auth password on the command line or auth "cram-md5" or auth "password" in the rcfile. Details can be found in the manual page.
Note that auth password should only be used across secure links (see the sslcertck and ssl/sslproto options).

```

---

<div class="post-metadata">

**Author:** ![Gerold](https://avatars.discourse-cdn.com/v4/letter/g/f1d935/32.png) [@Gerold](https://forums.suse.com/u/Gerold)\
**Post date:** [October 22, 2020, 3:46pm UTC](https://forums.suse.com/t/fetchmailrc-and-office365/35336/3 "2020-10-22T15:46:22Z")

</div>

thanks for the warm welcome and as you can see in my post: auth password is set  
without success :-/
