From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Robert Pluim Newsgroups: gmane.emacs.devel Subject: Re: gmail+imap+smtp (oauth2) Date: Mon, 09 May 2022 10:38:33 +0200 Message-ID: <87ilqf2j92.fsf@gmail.com> References: <871qxbdulc.fsf@mat.ucm.es> <87k0b2tkg1.fsf@mat.ucm.es> <87zgjx4qhs.fsf@gmail.com> <87bkwcgmr3.fsf@mat.ucm.es> <87sfpo3xai.fsf@gmail.com> <87a6bsw0pc.fsf@mat.ucm.es> <87mtfs2ev9.fsf@gmail.com> <874k20vuy4.fsf@mat.ucm.es> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="40735"; mail-complaints-to="usenet@ciao.gmane.io" To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Mon May 09 10:39:45 2022 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nnyvh-000AQR-4r for ged-emacs-devel@m.gmane-mx.org; Mon, 09 May 2022 10:39:45 +0200 Original-Received: from localhost ([::1]:35218 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nnyvf-0002QG-M5 for ged-emacs-devel@m.gmane-mx.org; Mon, 09 May 2022 04:39:43 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:50170) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nnyub-0001jy-Sp for emacs-devel@gnu.org; Mon, 09 May 2022 04:38:38 -0400 Original-Received: from mail-wr1-x42d.google.com ([2a00:1450:4864:20::42d]:41659) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nnyua-0002KM-8S for emacs-devel@gnu.org; Mon, 09 May 2022 04:38:37 -0400 Original-Received: by mail-wr1-x42d.google.com with SMTP id c11so18340447wrn.8 for ; Mon, 09 May 2022 01:38:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:subject:references:gmane-reply-to-list:date:in-reply-to :message-id:mime-version:content-transfer-encoding; bh=smK7V+Lfg880FNqbcoe18Gs4Fm3g6bjGjFmx4o6Sxz4=; b=iNrhpD81gY7v2R4Wk79rVpEdzBYt1HWz+N+iPVbVcUrb6htwfpFei7ff2UYSAAJ99m ZYcVVLz+ziD0qWkjrDlZJdi+eDUUy1GahDzihmkucUciKVYc1d8gIXECJdV2SrnJKV6r kg7hbR2aD1ZBoH/JKOB2mtttIwab//Ei6Rjnv/UpY1rauzOPoUgPA+hz/8+vOHN+dw0J 1BoxujYFZEsEciqdu2HoKvSfYMER7CJA3VOOAUeU4aQzsAyx056iZgiL1nB0gJ3O5/yg ojdbjWCQ6lZc1no3safwBUkCjHXr2NNyH4VANELwQls0a83Y9H+byb05uE6q/iwpQnyA G2jg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:subject:references:gmane-reply-to-list :date:in-reply-to:message-id:mime-version:content-transfer-encoding; bh=smK7V+Lfg880FNqbcoe18Gs4Fm3g6bjGjFmx4o6Sxz4=; b=gdix57m688uer28ZE8DLAhUF/jpL/6kPrwol9gUcs17rjwTrv3Xm+dlqgBKi97MxzV yK4rROBbX2sa5sGrii2rlvSnrshfh8GHlVJwuPLo8Sp4M8f5WztMOwI/sOr/6UnuSlHq qReIFkVaeYLRIELMr0ISZF+RfzIis59ZcuGuDrKnayh6BS0Aw3RMcML4k0OWLvq5/HOa Rp0tz5qhM1ECA3+l45CqZwKrvM8DemDKVptcSgpHPobWmWCmzsSXBTbf0IfQSY9U1/E7 tay8SN/t5QdH2LPZOfjcpnFhHwmpbM4MCxuz28gIpIvfdfPIoCPRNTbODdX9EPVgaX2T goxg== X-Gm-Message-State: AOAM5315ZTdg5RU13u8K2mPVIuC2kY6JCvy1TKPFmYD3dfwq1mGzIPpZ toKXYE6qzdnYB8BNrgTMGznv1v4cU2k= X-Google-Smtp-Source: ABdhPJyJ9L5bMyIiByTXzUZGVYvridsWTSpCd0DTVi6UWDKxWTWR/6PPofR65y3DdKR60ZOqVArSew== X-Received: by 2002:a5d:6dad:0:b0:20c:4dc1:e247 with SMTP id u13-20020a5d6dad000000b0020c4dc1e247mr12717708wrs.274.1652085514409; Mon, 09 May 2022 01:38:34 -0700 (PDT) Original-Received: from rltb ([2a01:e0a:3f3:fb50:43ed:f907:c414:6056]) by smtp.gmail.com with ESMTPSA id az11-20020a05600c600b00b003942a244f3asm14786811wmb.19.2022.05.09.01.38.33 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 09 May 2022 01:38:34 -0700 (PDT) Gmane-Reply-To-List: yes In-Reply-To: <874k20vuy4.fsf@mat.ucm.es> (Uwe Brauer's message of "Sun, 08 May 2022 18:40:51 +0200") Received-SPF: pass client-ip=2a00:1450:4864:20::42d; envelope-from=rpluim@gmail.com; helo=mail-wr1-x42d.google.com X-Spam_score_int: -10 X-Spam_score: -1.1 X-Spam_bar: - X-Spam_report: (-1.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, FREEMAIL_REPLY=1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:289517 Archived-At: >>>>> On Sun, 08 May 2022 18:40:51 +0200, Uwe Brauer said: Uwe> I might give it a try but what is the syntax in teh authinfo file >> The auth-source info documentation has plenty of gory details Uwe> I am just digging in, not that clearly written or at least my use = case Uwe> is not easily found. Now I=CA=BCm hurt, I tried to make those docs clear :-) If you tell me which bits are unclear, we can rework them. Uwe> My original setting is=20 Uwe> machine smtp.gmail.com login oub@ucm.es port 587 password passwd Uwe> machine UCMgmail login oub@ucm.es password passwd port imaps Uwe> Tassilo suggested Uwe> machine imap.gmail.com login USER@gmail.com password APP_PWD force= =20 Uwe> yes >> Most fields in .authinfo are optional, so >> machine foo login bar >> machine foo login bar port baz >> are both legal. For gmail I have >> machine imap.gmail.com login USER password APP_PWD port imaps Uwe> Ok what confuses me if it is better to use smtps or specifying the= port Uwe> directly as in 587, or 465. Either will work, Emacs will convert from the string representation to the integer one. These days I think 'submission' (587) is preferred to 'smtps' (465), except that smtp.gmail.com doesn=CA=BCt do TLS on 587, only STARTTLS, so I stubbornly stick to 465. Robert --=20