bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#34540: 26.1; can't change location of .authinfo


From: Robert Pluim
Subject: bug#34540: 26.1; can't change location of .authinfo
Date: Tue, 19 Feb 2019 21:59:20 +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 via email to

[Prev in Thread] Current Thread [Next in Thread]