fetchmailrc and Office365

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
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 (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
fetchmail: Subject Alternative Name: 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
fetchmail: Subject Alternative Name: attachment.outlook.office.net
fetchmail: Subject Alternative Name: attachment.outlook.officeppe.net
fetchmail: Subject Alternative Name: attachments.office.net
fetchmail: Subject Alternative Name: attachments-sdf.office.net
fetchmail: Subject Alternative Name: ccs.login.microsoftonline.com
fetchmail: Subject Alternative Name: ccs-sdf.login.microsoftonline.com
fetchmail: Subject Alternative Name: hotmail.com
fetchmail: Subject Alternative Name: mail.services.live.com
fetchmail: Subject Alternative Name: office365.com
fetchmail: Subject Alternative Name: outlook.office.com
fetchmail: Subject Alternative Name: substrate.office.com
fetchmail: Subject Alternative Name: substrate-sdf.office.com
fetchmail: 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: 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
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 (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

Comments

  • malcolmlewismalcolmlewis Knowledge Partner

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

    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).
    
  • thanks for the warm welcome and as you can see in my post: auth password is set
    without success :-/

Sign In or Register to comment.