From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id AL/RBYitz2ObGgAAbAwnHQ (envelope-from ) for ; Tue, 24 Jan 2023 11:06:00 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id MJnWBYitz2P24gAA9RJhRA (envelope-from ) for ; Tue, 24 Jan 2023 11:06:00 +0100 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 4DF12136D9 for ; Tue, 24 Jan 2023 11:05:59 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pKGBF-0005qD-AK; Tue, 24 Jan 2023 05:05:32 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pKGAt-0005o3-D9 for help-guix@gnu.org; Tue, 24 Jan 2023 05:05:10 -0500 Received: from ns13.heimat.it ([46.4.214.66]) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pKGAr-0007eg-5Y for help-guix@gnu.org; Tue, 24 Jan 2023 05:05:07 -0500 Received: from localhost (ip6-localhost [127.0.0.1]) by ns13.heimat.it (Postfix) with ESMTP id 439D230022D; Tue, 24 Jan 2023 10:05:02 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at ns13.heimat.it Received: from ns13.heimat.it ([127.0.0.1]) by localhost (ns13.heimat.it [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id FUtj52x3_fyQ; Tue, 24 Jan 2023 10:05:00 +0000 (UTC) Received: from bourrache.mug.xelera.it (unknown [93.56.161.9]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by ns13.heimat.it (Postfix) with ESMTPSA id 88A0730022C; Tue, 24 Jan 2023 10:05:00 +0000 (UTC) Received: from roquette.mug.biscuolo.net (roquette [10.38.2.14]) by bourrache.mug.xelera.it (Postfix) with SMTP id ED64222A5ADB; Tue, 24 Jan 2023 11:04:59 +0100 (CET) Received: (nullmailer pid 14329 invoked by uid 1000); Tue, 24 Jan 2023 10:04:59 -0000 From: Giovanni Biscuolo To: Peter Polidoro , help-guix@gnu.org Subject: Re: mbsync with XOAUTH2 SASL mechanism In-Reply-To: <87h6ziae15.fsf@polidoro.io> Organization: Xelera.eu References: <87h6ziae15.fsf@polidoro.io> Date: Tue, 24 Jan 2023 11:04:58 +0100 Message-ID: <87edrkgsdx.fsf@xelera.eu> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" Received-SPF: pass client-ip=46.4.214.66; envelope-from=g@xelera.eu; helo=ns13.heimat.it X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-guix@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+larch=yhetil.org@gnu.org Sender: help-guix-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN ARC-Seal: i=1; s=key1; d=yhetil.org; t=1674554759; a=rsa-sha256; cv=none; b=qZLUebA2k4zmSjGMsA0yXcd1F0btVUN4j5fHVx1ZfsPDSKJN52/GBYoC/+QWOEWD4jucQr bia3/7k5Vmjp/1a9fFghvWlDgZ9qDjjoMKQFbvFKVfbLkds4OjAD2jQymxmDZBzqG57RYS UocL5/0Uvn05IAUWjiWhi5AzbT3nH8VmdBSUx8YYSEbTynXP4GblWYDp2rCBTO1gvnTN89 RVE6R9+lu4G5gDPDwncxI/ilFPrNAfJ9ni6KE8l7PU26fBTCTyqZQFdFFWxnCch5GjSg9O a+CuG6t77WkhOe5w+uKrfGzzz12mi+UDWtmdzRXlXb3AuEsDWhS1GkIJFzeu/Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1674554759; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post; bh=27vMGo1B4i+1iuaFmSwnbLncN9iu8SvJ/be+GO0NevA=; b=pMMMO9lsMagQzVxSBmFESULfRg209Yj0GxU/G5vAIJUr2LI/i0J3CzJzpJFJm+e9oH8a1u BYaqjkXwGf7kbaIBBSqOux0l5vPFhZ3rfNftatz1oM7rg5NGE0B2Wh9pcz9Pjzu1GiWBeo +xvlzThq9xcQMxRajNadiByeAK3d+p+ZZyNIsrmcTPUq+RLtDbDiUv2ideDx8Q8XaPmQ82 i/iT5IRl/p3gZPObO0gij5YKEiVoTUkVOas4iB+8biM4svKnuuLGPLbnYXncmqSMuTwkQ+ bPdJA5J+ioX1zLyBywiG5ofKuLgH4CQs/OO2LBzTtD2BNCUw+4f8qTeh0op1OA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; spf=pass (aspmx1.migadu.com: domain of "help-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="help-guix-bounces+larch=yhetil.org@gnu.org"; dmarc=none X-Migadu-Scanner: scn0.migadu.com X-Migadu-Spam-Score: -4.29 X-Spam-Score: -4.29 X-Migadu-Queue-Id: 4DF12136D9 Authentication-Results: aspmx1.migadu.com; dkim=none; spf=pass (aspmx1.migadu.com: domain of "help-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="help-guix-bounces+larch=yhetil.org@gnu.org"; dmarc=none X-TUID: x40sBdDjHN4O --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Hello Peter, have you solved your problem? I never tested this, but I'll have to do... Peter Polidoro writes: > I am trying to setup an oauth2 email account to work with Emacs=20 > using mbsync (from the isync guix package) and mu4e. [...] > What is the proper Guix way of getting mbsync to work with=20 > XOAUTH2? Should I try to package cyrus-sasl-xoauth2 or modify the=20 > isync package or something else? Thanks! I can't help with packaging and integrating cyrus-sasl-xoauth2 with isync but maybe getmail6 (packaged in Guix) is able to get your emails from your enterprise IMAP server This howto is for getmail 5.6 but AFAIU should also work for getmail6 (it's mentioned in the official getmail6 documentation [1])=20 Last but not least, please consider that if you can (and if your company server/postmaster allows it) it's much better to use an "app password" method instead of Oauth2 https://pypi.org/project/getmail/#oauth2-privacy-policy HTH! Gio' P.S.: please give us feedback if you can, I think your is a common problem among Guix users [1] https://getmail6.org/configuration.html#retriever-parameters (search for "use_xoauth2" =2D-=20 Giovanni Biscuolo Xelera IT Infrastructures --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQJABAEBCgAqFiEERcxjuFJYydVfNLI5030Op87MORIFAmPPrUsMHGdAeGVsZXJh LmV1AAoJENN9DqfOzDkSQ24P/3iAtVfvQTtFqqAQWyz//CLA3cplp2jJRFCkCpqS EZAfr+81BhvasPkd48eQfxrJP5vaTbZ85UhuIEeDGDnQdXv17pTyvYgOsAbBU1TO EGeYXGCSEjHNCj4G816di36+sFomSCtaYRjoHmrZ1eK2dssRgD1kjG1MlopByViA ZtCSRmu+8CYKOSUAf9nQxYVYU3VxSs50l/N6/iDfZMGWI+gDrzyVYs/UDdnvv1bc Bd72FHRA1bzFjQp13mmmfMdRq8nyzoRBiVuAbEneuE2s7D8lHbdn8VP2FsZ7tpjI sXPLOjbWjHFm5EI5HRH0ROvqSnJIDjefdz2CIMMMSlrTEuFxSPHDutyQvCB5P8O2 2LHYPdmupFcBsP6icgPOz46+azxouqG5yZzAcplIohfpNtZCzshtZEb4P79JK+0e llZITPY4PCvF37iqlcbX8Qk6goN+1NHG4UxE9DhiLuv1oaVjrtKjRBPUMJ8/ACfw P6PQ4XdI1hh7uw8uhA/DRehvzkA1Ca6N0QpR0+q7R1AesQg1zjk91HghB8hCpkfR P1Zx2jl9wpTw2pnXC4xF4mQcD1CNPyH+cYHKxsw8pvpPT0v8ZQqQbBmLPVXlprnj nzC+RmaRDDCSs63j6VmrZny+hbsJuGScMitgY1cQgtVPrP3XNrT8ZQbJEdFq61HB m509 =Bldj -----END PGP SIGNATURE----- --=-=-=--