aboutsummaryrefslogtreecommitdiffstats
path: root/doc/misc
diff options
context:
space:
mode:
authorLars Ingebrigtsen2019-07-26 12:16:49 +0200
committerLars Ingebrigtsen2019-07-26 12:16:49 +0200
commit6216c7abd4cefd6245d29272d899490045cfdeff (patch)
treecaacf5b5373ef0739c79aa0690d7b5fd20d9e69b /doc/misc
parent1573cf98ebcc3dfa2c355b9f59a6a95c681da970 (diff)
downloademacs-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.texi14
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
221supplying a user name and password. 221supplying a user name and password.
222 222
223If you have not configured anything, then the first time you try to 223If you have not configured anything, then the first time you try to
224send mail via a server, Emacs (version 24.1 and later) prompts you 224send mail via a server and the SMTP server reports back that it
225requires authentication, Emacs (version 24.1 and later) prompts you
225for the user name and password to use, and then offers to save the 226for the user name and password to use, and then offers to save the
226information. By default, Emacs stores authentication information in 227information. By default, Emacs stores authentication information in a
227a file @file{~/.authinfo}. 228file @file{~/.authinfo}.
229
230@vindex smtpmail-servers-requiring-authorization
231Some SMTP servers may bandwidth-limit (or deny) requests from clients
232that try to post without authorization---even if they later do supply
233that information. To make this library supply that information on
234first attempt, set @code{smtpmail-servers-requiring-authorization} to
235a regexp that match the server name.
228 236
229@cindex authinfo 237@cindex authinfo
230The basic format of the @file{~/.authinfo} file is one line for each 238The basic format of the @file{~/.authinfo} file is one line for each