[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
smtp mail fails when .password-store is configured in .auth-sources
From: |
Julien Cubizolles |
Subject: |
smtp mail fails when .password-store is configured in .auth-sources |
Date: |
Mon, 31 Mar 2025 12:16:09 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) |
Sending an email with a stmp server requiring authentification fails
when password-store is configured in auth-sources.
The credentials for the smtps server I use are defined in .authinfo.gpg,
not in password-store, although the same username is present in some
entries but without being associated with an smtp server.
If auth-sources only contains .authinfo.gpg, I can send an email without
any problem.
If auth-sources is set to (password-store "~/.authinfo.gpg"
"~/.authinfo" "~/.netrc"), sending an email fails with
smtpmail-send-it: Sending failed: 535 5.7.8 Error: authentication failed:
authentication failure in response to dm9ya29mZXNzZWJpcXVldHRl
In both cases, the following snippet returns the same correct values for
the credentials for the smtp server
--8<---------------cut here---------------start------------->8---
(let ((auth-info (car (auth-source-search :host "smtp.free.fr"
))))
(when auth-info
(let ((user (plist-get auth-info :user))
(secret (plist-get auth-info :secret)))
(message "Utilisateur : %s" user)
(if (functionp secret)
(message "Mot de passe : %s" (funcall secret)) ;; Déchiffre le mot de
passe si nécessaire
(message "Mot de passe : %s" secret)))))
--8<---------------cut here---------------end--------------->8---
--
Julien Cubizolles
--
Julien Cubizolles
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- smtp mail fails when .password-store is configured in .auth-sources,
Julien Cubizolles <=