From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Alessandro Bertulli Newsgroups: gmane.emacs.help Subject: Re: Problem with TLS when sending emails Date: Wed, 11 May 2022 18:20:33 +0200 Message-ID: <87czgk59da.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="13203"; mail-complaints-to="usenet@ciao.gmane.io" Cc: help-gnu-emacs@gnu.org To: rpluim@gmail.com, Leo.Butler@umanitoba.ca Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Wed May 11 18:21:23 2022 Return-path: Envelope-to: geh-help-gnu-emacs@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 1nop5X-0003Ik-AD for geh-help-gnu-emacs@m.gmane-mx.org; Wed, 11 May 2022 18:21:23 +0200 Original-Received: from localhost ([::1]:42382 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nop5V-000085-UT for geh-help-gnu-emacs@m.gmane-mx.org; Wed, 11 May 2022 12:21:21 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:42692) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nop4s-00007u-Jv for help-gnu-emacs@gnu.org; Wed, 11 May 2022 12:20:42 -0400 Original-Received: from mail-ej1-x630.google.com ([2a00:1450:4864:20::630]:33533) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nop4q-0007rE-Ss for help-gnu-emacs@gnu.org; Wed, 11 May 2022 12:20:42 -0400 Original-Received: by mail-ej1-x630.google.com with SMTP id gh6so5194455ejb.0 for ; Wed, 11 May 2022 09:20:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:mime-version; bh=+lPbJnn/oXVVfX2wwdjBQPmy30RzgAKp1fH9QRD6uFc=; b=QXVNpM5CNk7kpo0gpCHIQ+6n2MBY8QkX82ohWEiCs78wmg+wlAta/lJcAuRLwM41nM 8gdKheOeG6/eglIqv4vsFdqJnK0pjjRLCFhi5Bmm0DhR19tn65o4Oym4iqGdN4ouStHQ rS2vMqRSuTScBtxdtTcEtQ+/pApkd0a0LOatHb4K0fbBPcn+8Ug6qY0+RQrNk3sxx8gi 7s19bYxmz5MtxjNA3p0OF9X4+R955ie4VrefUYXsvvSOCc09P/oouhB1GzFzrhI9H4zr z3KvUd6majkGW0o7k7POzYSKVY0uGaWYqvpRfpbiQoPA+kGzRToA8/F+/x4DxF/7W7RT 2zqw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version; bh=+lPbJnn/oXVVfX2wwdjBQPmy30RzgAKp1fH9QRD6uFc=; b=S9RuJ6SYeF5dEqCTLxEA+yxpxiazse9raGerJ1N2i0PSK7nJhPf3pAZxUsKWvbsXVv 3atqvXBi/xEUMK4rELwIihfbf8GTChSKIxGoI/sWjJpAkP/vyhY/cgICz3/E87mXV2vn myelLZLvMZsMghd4YO4g9nhzWK0iYsRcHetnbBUJhQqfkJoHl8ssyRPJAqImIHvm/l3h BvcxlLdhbcQbTRnE+4F7rhlu/eYG9kXWez/C1QukhvOsjozS5Q7ktxnqArAkNVnFTbx1 VKDJc/bTyZ1zTg1jT5klGYNjgAnkmxx+xSJb59+Th8LB57JL6SgG7dcrZ3jz9FQsEet2 yTxQ== X-Gm-Message-State: AOAM530iM5fsi14J/TJ7s+/fo3pKLghjjxhiYAD2IhrHSFfR7+9jHtIp qIWkMWeKm5rMHz0xK4/Xw8DE4R/EOaIbWH1r X-Google-Smtp-Source: ABdhPJwBIuxqHQUrKVFnB6kh0SUiJGEMyNVI4mEQljmRl29zeP4F2bCOb4YIdLz7KiTkUmDd+v7ozA== X-Received: by 2002:a17:906:c106:b0:6f4:45d9:2d85 with SMTP id do6-20020a170906c10600b006f445d92d85mr25348802ejc.493.1652286039508; Wed, 11 May 2022 09:20:39 -0700 (PDT) Original-Received: from commodoroII (2-235-154-9.ip228.fastwebnet.it. [2.235.154.9]) by smtp.gmail.com with ESMTPSA id q2-20020a1709063d4200b006f3ef214e53sm1142024ejf.185.2022.05.11.09.20.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 11 May 2022 09:20:39 -0700 (PDT) Received-SPF: pass client-ip=2a00:1450:4864:20::630; envelope-from=alessandro.bertulli96@gmail.com; helo=mail-ej1-x630.google.com 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, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.io gmane.emacs.help:137233 Archived-At: Thanks Robert! I changed my init code to (setq smtpmail-smtp-server "smtp.gmail.com" smtpmail-smtp-service 465 smtpmail-stream-type 'ssl smtpmail-debug-info t) And now it works. A couple of fun facts: indicating as smtpmail-smtp-service the string "smtps" actually doesn't work, because my system is not able, apparently, to resolve it. So I had to put the integer port. Moreover, I also had to add a new line to the ~/.authinfo.gpg file. However, now it properly works. Thank you really much! For Leo: thanks for your suggestion, but I'm trying to keep my system as secure as it's reasonably possible. However, I'll investigate your suggestion about using Gnus. Thanks to both!