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: Hanno Jung
Subject: bug#34540: 26.1; can't change location of .authinfo
Date: Tue, 19 Feb 2019 21:16:44 +0100
User-agent: mu4e 1.0; emacs 26.1

Robert Pluim <rpluim@gmail.com> writes:

> Hanno Jung <hanno.jung@googlemail.com> writes:
>
>> If I change the location of .authinfo to a custom location, the username
>> and password is not recognized correctly by smtpmail.
>> Location is changed via (setq auth-sources
>> '("/custom_folder/.authinfo")).
>
> This custom_folder is in the root of your filesystem? Or in your home
> directory?

It is actually neither of it. "custom_folder" is a whole tree. The
system is a macos and has truecrypt container mounted in which the file
resides. The folder is mounted under ""/Volumes" and is nested 5 folders deeper.

>
>> When using C-c to send the mail I'm asked for the username and the
>> password. Although the .authinfo content is
>> machine smtp.gmail.com login myusername port 587 password mypassword
>>
>> This issue is adressed here as well
>> https://emacs.stackexchange.com/questions/47805/cant-change-location-of-authinfo
>>
>
> What does
>
> (auth-source-search :max 1 :host "smtp.gmail.com" :user "myusername"
> :port 587)

It does return "nil"
>
> return?
>
> 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

>
> Robert

I deleted the auto generated part at the end of my init.el which looked
like that.

;;; init.el ends here
(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.

Regards
Hanno





reply via email to

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