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

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

Re: improving SMTP credential caching


From: W. Greenhouse
Subject: Re: improving SMTP credential caching
Date: Sun, 24 Mar 2013 15:39:35 +0000
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.2 (gnu/linux)

Hi Tom,

Tom Roche <Tom_Roche@pobox.com> writes:

> ...I would prefer either
>
> + to make emacs (or dependency) *not* cache failed credentials
>
> + to force reauthentication (e.g., via `C-u C-c C-c`)
>
> + something else short of restarting or waiting
>
> How to do?
>
> TIA, Tom Roche <Tom_Roche@pobox.com>

The dependency implicated here is the Emacs auth-source library, which
handles credential caching for smtpmail and many other bits of Emacs.

Any of these would eliminate your problem and hopefully make using
auth-source more pleasant:

+ Best: Run Emacs under gpg-agent and using an encrypted auth-source
  file (e.g. ~/.authinfo.gpg) that includes your email account
  passwords.  Then caching is guaranteed only to happen when you entered
  the GPG passphrase correctly, and expiry will be controlled through
  the gpg-agent, by setting the --max-cache-ttl option.

+ Manual and irksome: Invoke M-x auth-source-forget-all-cached after you
  flub an SMTP password.  Or, possibly, find something in smtpmail's
  error handling to which to hook this function.

+ Worst and most inconvenient: Disable password caching entirely.
  (setq auth-source-do-cache nil)

Hope this helps,
Will

-- 
BOFH excuse #4:

static from nylon underwear




reply via email to

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