unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Robert Pluim <rpluim@gmail.com>
To: Hanno Jung <hanno.jung@googlemail.com>
Cc: 34540@debbugs.gnu.org
Subject: bug#34540: 26.1; can't change location of .authinfo
Date: Tue, 19 Feb 2019 21:59:20 +0100	[thread overview]
Message-ID: <m236ojmr4n.fsf@gmail.com> (raw)
In-Reply-To: <m2ef838rf7.fsf@gmail.com> (Hanno Jung's message of "Tue, 19 Feb 2019 21:16:44 +0100")

Hanno Jung <hanno.jung@googlemail.com> writes:

>> (auth-source-search :max 1 :host "smtp.gmail.com" :user "myusername"
>> :port 587)
>
> It does return "nil"
>>
>> What's the value of smtpmail-smtp-service (it should be 587, otherwise
>> the auth-source lookup done by smtpmail will fail).
>
> it is 25
>

Well that explains it: smtpmail wants to match the port specified by
smtpmail-smtp-service, so you need to either adjust its value, or
change the value in .authinfo.

> (custom-set-variables
>  ;; custom-set-variables was added by Custom.
>  ;; If you edit it by hand, you could mess it up, so be careful.
>  ;; Your init file should contain only one such instance.
>  ;; If there is more than one, they won't work right.
>  '(send-mail-function (quote smtpmail-send-it))
>  '(smtpmail-smtp-server "smtp.gmail.com")
>  '(smtpmail-smtp-service 25))
> (custom-set-faces
>  ;; custom-set-faces was added by Custom.
>  ;; If you edit it by hand, you could mess it up, so be careful.
>  ;; Your init file should contain only one such instance.
>  ;; If there is more than one, they won't work right.
>  )
>
>
> After deleting it, I was asked for the smtp-server, username, password
> again. And I was asked if I wanted to save that into the path that I
> already provided "/custom_folder/.authinfo". After acknowledging that I
> had an additional line in "/custom_folder/.authinfo" with the corrected
> data except for the port which was 25.

And this just confirms it further.

Robert





  reply	other threads:[~2019-02-19 20:59 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-02-18 19:56 bug#34540: 26.1; can't change location of .authinfo Hanno Jung
2019-02-19  9:29 ` Robert Pluim
2019-02-19 20:16   ` Hanno Jung
2019-02-19 20:59     ` Robert Pluim [this message]
2019-05-08 14:58       ` npostavs

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=m236ojmr4n.fsf@gmail.com \
    --to=rpluim@gmail.com \
    --cc=34540@debbugs.gnu.org \
    --cc=hanno.jung@googlemail.com \
    /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.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

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).