From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Robert Pluim Newsgroups: gmane.emacs.devel Subject: Re: master 6216c7a: Allow specifying that SMTP auth should always be used Date: Fri, 26 Jul 2019 14:47:38 +0200 Message-ID: References: <20190726101658.4938.74351@vcs0.savannah.gnu.org> <20190726101700.307C020C06@vcs0.savannah.gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="131967"; mail-complaints-to="usenet@blaine.gmane.org" Cc: emacs-devel@gnu.org To: Lars Ingebrigtsen Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Jul 26 14:47:52 2019 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1hqzdW-000YBi-5J for ged-emacs-devel@m.gmane.org; Fri, 26 Jul 2019 14:47:50 +0200 Original-Received: from localhost ([::1]:39644 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hqzdV-0001mY-1N for ged-emacs-devel@m.gmane.org; Fri, 26 Jul 2019 08:47:49 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:51262) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hqzdR-0001mE-6l for emacs-devel@gnu.org; Fri, 26 Jul 2019 08:47:46 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hqzdP-0003JC-T3 for emacs-devel@gnu.org; Fri, 26 Jul 2019 08:47:45 -0400 Original-Received: from mail-wr1-x42f.google.com ([2a00:1450:4864:20::42f]:44794) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hqzdP-0003Hy-Mb for emacs-devel@gnu.org; Fri, 26 Jul 2019 08:47:43 -0400 Original-Received: by mail-wr1-x42f.google.com with SMTP id p17so54294161wrf.11 for ; Fri, 26 Jul 2019 05:47:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:mail-followup-to:mail-copies-to :gmane-reply-to-list:date:in-reply-to:message-id:mime-version :content-transfer-encoding; bh=TukxfY+CEoLi7Dg4BQB6n4VWOLafxihsfJZ5sZGd7rw=; b=lhAxDKy+6PgVQf0a//EkUFFCBhaGGJKjJT4wbILxmKF+yHIDSHoRQ4/+r0HsCCDUAn /L/OCzYyXoRBQ82VydUBH0Kts30wB6tijYRBg3U/kZEkNqx++vxzGtficQi8+SmzpDUB TQwqUKL8o3hMpLTb/13leW/zefTM0+ZWWMLcX0c+eOR5InQHfF8rMcrhaUkPkxEJWsgn QxfDcuZJQvvT8yfNCf6Wmx7IzIL7CWouPlvUrLZl3meUECLheHVk8nhQeL/RwZuwNA5y hra8G2zcqkEIHNztLyJM4d6Yso9G8IQ+eAHxEOl1mJnFY0pQCPgd5XUhsH7+wuq19mNo 7mgg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:mail-followup-to :mail-copies-to:gmane-reply-to-list:date:in-reply-to:message-id :mime-version:content-transfer-encoding; bh=TukxfY+CEoLi7Dg4BQB6n4VWOLafxihsfJZ5sZGd7rw=; b=SP3AmPz53TGJktfyevmv49xCmJA+gT2l/Aoz+NPwdiQFbERg4GpbrZPq+MZJyOXsLw gPS+GRTyAYRECxjErjB4FIaj8dIDcb5FhgCgQfZs/4YBVmGb/1xn72S+2Nu4TDO2A8/4 576I9luoc6fqeaesHIxuIx/7XD+qiDYQSzo8rqUSWmsGmoxGRF1IA5IlGSYGL0CuN6yq Efy+FbMh2MWmnvoKHJmlgQLQ9meoTfUTqjN48N6QgCDYNFOgExXFIXkLyTs48G8OmU4X Ck1oAAN5ea+j9SorUNCBZwZ4Ei71nUh5uYxBn/xFRJzif6NivVeKmdZlllL/FdKwz96U aTZg== X-Gm-Message-State: APjAAAWG8oYL9raFnA9dGQb+zp9qOV0cCvv5HX1uYnCNQchVbm2WTDLs A2OlXUkxFzGfxAfX/aWvXqBN16SC X-Google-Smtp-Source: APXvYqwMSsxbr0+gfh6CG73uL+w+Cb1P//5Xq8jCbqb8GYUV53C6naDpTAoW/lUq3KBux925hVw4ew== X-Received: by 2002:adf:ea82:: with SMTP id s2mr95020076wrm.91.1564145261230; Fri, 26 Jul 2019 05:47:41 -0700 (PDT) Original-Received: from rpluim-mac ([149.5.228.1]) by smtp.gmail.com with ESMTPSA id v12sm46107675wrr.87.2019.07.26.05.47.39 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Fri, 26 Jul 2019 05:47:39 -0700 (PDT) Mail-Followup-To: emacs-devel@gnu.org Mail-Copies-To: never Gmane-Reply-To-List: yes In-Reply-To: (Lars Ingebrigtsen's message of "Fri, 26 Jul 2019 14:07:18 +0200") X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:4864:20::42f X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 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.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:238926 Archived-At: >>>>> On Fri, 26 Jul 2019 14:07:18 +0200, Lars Ingebrigtsen said: Larsi> Robert Pluim writes: >> If the user can customize smtpmail-servers-requiring-authorization, >> then they can also add an appropriate entry to .authinfo to make >> smtpmail do authentication, so why is such a variable needed? Larsi> smtpmail always tries first without auth, and then starts lookin= g around Larsi> for credentials if the SMTP servers says "give me credentials". I was convinced that=CA=BCs not how it worked, but the code disagrees with me. Larsi> We could make it start sending credentials immediately if there'= s an Larsi> .authinfo entry, but that'd be a behaviour change, and the user = may have Larsi> specified just "machine my.mail.host" for (for instance) IMAP us= age, and Larsi> there's no auth on SMTP, in which case the SMTP server may deny = the Larsi> connection. And again I was convinced we did port matching, but again that=CA=BCs not how auth-source works when the machine entry doesn=CA=BCt have a port. Larsi> And besides, the user may be typing in the credentials and not u= sing Larsi> .authinfo. I appear to be 0 for 3 here. Oh well. Robert