diff options
| author | Lars Ingebrigtsen | 2019-07-26 12:16:49 +0200 |
|---|---|---|
| committer | Lars Ingebrigtsen | 2019-07-26 12:16:49 +0200 |
| commit | 6216c7abd4cefd6245d29272d899490045cfdeff (patch) | |
| tree | caacf5b5373ef0739c79aa0690d7b5fd20d9e69b /doc/misc | |
| parent | 1573cf98ebcc3dfa2c355b9f59a6a95c681da970 (diff) | |
| download | emacs-6216c7abd4cefd6245d29272d899490045cfdeff.tar.gz emacs-6216c7abd4cefd6245d29272d899490045cfdeff.zip | |
Allow specifying that SMTP auth should always be used
* doc/misc/smtpmail.texi (Authentication): Document it.
* lisp/mail/smtpmail.el
(smtpmail-servers-requiring-authorization): New variable (bug#26359).
(smtpmail-via-smtp): Use it.
Diffstat (limited to 'doc/misc')
| -rw-r--r-- | doc/misc/smtpmail.texi | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/doc/misc/smtpmail.texi b/doc/misc/smtpmail.texi index 365f55718e7..b2fc90a337a 100644 --- a/doc/misc/smtpmail.texi +++ b/doc/misc/smtpmail.texi | |||
| @@ -221,10 +221,18 @@ they are allowed to send mail. Authentication usually involves | |||
| 221 | supplying a user name and password. | 221 | supplying a user name and password. |
| 222 | 222 | ||
| 223 | If you have not configured anything, then the first time you try to | 223 | If you have not configured anything, then the first time you try to |
| 224 | send mail via a server, Emacs (version 24.1 and later) prompts you | 224 | send mail via a server and the SMTP server reports back that it |
| 225 | requires authentication, Emacs (version 24.1 and later) prompts you | ||
| 225 | for the user name and password to use, and then offers to save the | 226 | for the user name and password to use, and then offers to save the |
| 226 | information. By default, Emacs stores authentication information in | 227 | information. By default, Emacs stores authentication information in a |
| 227 | a file @file{~/.authinfo}. | 228 | file @file{~/.authinfo}. |
| 229 | |||
| 230 | @vindex smtpmail-servers-requiring-authorization | ||
| 231 | Some SMTP servers may bandwidth-limit (or deny) requests from clients | ||
| 232 | that try to post without authorization---even if they later do supply | ||
| 233 | that information. To make this library supply that information on | ||
| 234 | first attempt, set @code{smtpmail-servers-requiring-authorization} to | ||
| 235 | a regexp that match the server name. | ||
| 228 | 236 | ||
| 229 | @cindex authinfo | 237 | @cindex authinfo |
| 230 | The basic format of the @file{~/.authinfo} file is one line for each | 238 | The basic format of the @file{~/.authinfo} file is one line for each |