unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Robert Pluim <rpluim@gmail.com>
To: Alessandro Bertulli <alessandro.bertulli96@gmail.com>
Cc: help-gnu-emacs@gnu.org
Subject: Re: Problem with TLS when sending emails
Date: Wed, 11 May 2022 15:44:00 +0200	[thread overview]
Message-ID: <87v8uc5gm7.fsf@gmail.com> (raw)
In-Reply-To: <CAJczNmCM2aJHrRfdsV7efmfFk3NTK0tpAF4qUh-rLAKxB1uOpA@mail.gmail.com> (Alessandro Bertulli's message of "Wed, 11 May 2022 15:28:18 +0200")

>>>>> On Wed, 11 May 2022 15:28:18 +0200, Alessandro Bertulli <alessandro.bertulli96@gmail.com> said:

    Alessandro> Hi all.
    Alessandro> I was trying to set up my Gmail configuration to send emails from
    Alessandro> Emacs. However, I encounter a problem with TLS.

    Alessandro> 1) I set up a file ~/.authinfo.gpg, where I put

    Alessandro> machine imap.gmail.com login alessandro.bertulli96@gmail.com password
    Alessandro> -pswd- port 993
    Alessandro> machine smtp.gmail.com login alessandro.bertulli96@gmail.com password
    Alessandro> -pswd- port 587

    Alessandro> Note that "-pswd-" is actually the 16 char long app password generated
    Alessandro> by Gmail, required to use external clients.

    Alessandro> 2) My init file contains

    Alessandro> (setq user-full-name "Alessandro Bertulli"
    Alessandro>       user-mail-address "alessandro.bertulli96@gmail.com")
    Alessandro> (setq smtpmail-smtp-server "smtp.gmail.com"
    Alessandro>       smtpmail-smtp-service 587
                                            ^^^

This is the 'submission' port, which listens on TCP only. You want
'smtps', which is 465, and supports TLS.

    Alessandro> What can it be? Is this the right way to send emails? Has any other had
    Alessandro> problems with Gmail?

I use 465 with gmail with no problems.

Robert
-- 



  reply	other threads:[~2022-05-11 13:44 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-05-11 13:28 Problem with TLS when sending emails Alessandro Bertulli
2022-05-11 13:44 ` Robert Pluim [this message]
2022-05-11 15:34 ` Leo Butler
2022-05-11 15:44   ` Robert Pluim
  -- strict thread matches above, loose matches on Subject: below --
2022-05-11 16:20 Alessandro Bertulli
2022-05-11 16:28 ` Robert Pluim

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87v8uc5gm7.fsf@gmail.com \
    --to=rpluim@gmail.com \
    --cc=alessandro.bertulli96@gmail.com \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).