annotate doc/misc/smtpmail.texi @ 93559:ab068ffc7048

Fix comment typo.
author Vinicius Jose Latorre <viniciusjl@ig.com.br>
date Wed, 02 Apr 2008 23:50:11 +0000
parents 5d58981e6690
children eafbd7a5c9be
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
84316
cd349e2703f1 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1 \input texinfo @c -*-texinfo-*-
84329
3d431f1997d8 (setfilename): Go up one more level to ../../info.
Glenn Morris <rgm@gnu.org>
parents: 84316
diff changeset
2 @setfilename ../../info/smtpmail
84316
cd349e2703f1 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3 @settitle Emacs SMTP Library
cd349e2703f1 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
4 @syncodeindex vr fn
cd349e2703f1 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
5 @copying
87903
5d58981e6690 Merge from emacs--rel--22
Miles Bader <miles@gnu.org>
parents: 84329
diff changeset
6 Copyright @copyright{} 2003, 2004, 2005, 2006, 2007, 2008
5d58981e6690 Merge from emacs--rel--22
Miles Bader <miles@gnu.org>
parents: 84329
diff changeset
7 Free Software Foundation, Inc.
84316
cd349e2703f1 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
8
cd349e2703f1 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
9 @quotation
cd349e2703f1 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
10 Permission is granted to copy, distribute and/or modify this document
cd349e2703f1 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
11 under the terms of the GNU Free Documentation License, Version 1.2 or
cd349e2703f1 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
12 any later version published by the Free Software Foundation; with no
cd349e2703f1 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
13 Invariant Sections, with the Front-Cover texts being ``A GNU Manual'',
cd349e2703f1 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
14 and with the Back-Cover Texts as in (a) below. A copy of the license
cd349e2703f1 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
15 is included in the section entitled ``GNU Free Documentation License''
cd349e2703f1 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
16 in the Emacs manual.
cd349e2703f1 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
17
cd349e2703f1 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
18 (a) The FSF's Back-Cover Text is: ``You have freedom to copy and modify
cd349e2703f1 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
19 this GNU Manual, like GNU software. Copies published by the Free
cd349e2703f1 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
20 Software Foundation raise funds for GNU development.''
cd349e2703f1 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
21
cd349e2703f1 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
22 This document is part of a collection distributed under the GNU Free
cd349e2703f1 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
23 Documentation License. If you want to distribute this document
cd349e2703f1 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
24 separately from the collection, you can do so by adding a copy of the
cd349e2703f1 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
25 license to the document, as described in section 6 of the license.
cd349e2703f1 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
26 @end quotation
cd349e2703f1 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
27 @end copying
cd349e2703f1 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
28
cd349e2703f1 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
29 @dircategory Emacs
cd349e2703f1 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
30 @direntry
cd349e2703f1 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
31 * SMTP: (smtpmail). Emacs library for sending mail via SMTP.
cd349e2703f1 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
32 @end direntry
cd349e2703f1 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
33
cd349e2703f1 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
34 @titlepage
cd349e2703f1 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
35 @title{Emacs SMTP Library}
cd349e2703f1 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
36 @subtitle{An Emacs package for sending mail via SMTP}
cd349e2703f1 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
37 @author{Simon Josefsson, Alex Schroeder}
cd349e2703f1 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
38 @page
cd349e2703f1 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
39 @vskip 0pt plus 1filll
cd349e2703f1 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
40 @insertcopying
cd349e2703f1 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
41 @end titlepage
cd349e2703f1 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
42
cd349e2703f1 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
43 @contents
cd349e2703f1 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
44
cd349e2703f1 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
45 @ifnottex
cd349e2703f1 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
46 @node Top
cd349e2703f1 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
47 @top Emacs SMTP Library
cd349e2703f1 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
48
cd349e2703f1 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
49 @insertcopying
cd349e2703f1 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
50 @end ifnottex
cd349e2703f1 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
51
cd349e2703f1 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
52 @menu
cd349e2703f1 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
53 * How Mail Works:: Brief introduction to mail concepts.
cd349e2703f1 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
54 * Emacs Speaks SMTP:: How to use the SMTP library in Emacs.
cd349e2703f1 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
55 * Authentication:: Authenticating yourself to the server.
cd349e2703f1 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
56 * Queued delivery:: Sending mail without an internet connection.
cd349e2703f1 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
57 * Server workarounds:: Mail servers with special requirements.
cd349e2703f1 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
58 * Debugging:: Tracking down problems.
cd349e2703f1 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
59 * GNU Free Documentation License:: The license for this documentation.
cd349e2703f1 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
60
cd349e2703f1 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
61 Indices
cd349e2703f1 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
62
cd349e2703f1 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
63 * Index:: Index over variables and functions.
cd349e2703f1 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
64 @end menu
cd349e2703f1 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
65
cd349e2703f1 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
66 @node How Mail Works
cd349e2703f1 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
67 @chapter How Mail Works
cd349e2703f1 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
68
cd349e2703f1 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
69 @cindex SMTP
cd349e2703f1 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
70 @cindex MTA
cd349e2703f1 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
71 On the internet, mail is sent from mail host to mail host using the
cd349e2703f1 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
72 simple mail transfer protocol (SMTP). To send and receive mail, you
cd349e2703f1 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
73 must get it from and send it to a mail host. Every mail host runs a
cd349e2703f1 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
74 mail transfer agent (MTA) such as Exim that accepts mails and passes
cd349e2703f1 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
75 them on. The communication between a mail host and other clients does
cd349e2703f1 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
76 not necessarily involve SMTP, however. Here is short overview of what
cd349e2703f1 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
77 is involved.
cd349e2703f1 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
78
cd349e2703f1 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
79 @cindex MUA
cd349e2703f1 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
80 The mail program --- also called a mail user agent (MUA) ---
cd349e2703f1 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
81 usually sends outgoing mail to a mail host. When your computer is
cd349e2703f1 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
82 permanently connected to the internet, it might even be a mail host
cd349e2703f1 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
83 itself. In this case, the MUA will pipe mail to the
cd349e2703f1 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
84 @file{/usr/lib/sendmail} application. It will take care of your mail
cd349e2703f1 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
85 and pass it on to the next mail host.
cd349e2703f1 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
86
cd349e2703f1 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
87 @cindex ISP
cd349e2703f1 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
88 When you are only connected to the internet from time to time, your
cd349e2703f1 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
89 internet service provider (ISP) has probably told you which mail host
cd349e2703f1 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
90 to use. You must configure your MUA to use that mail host. Since you
cd349e2703f1 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
91 are reading this manual, you probably want to configure Emacs to use
cd349e2703f1 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
92 SMTP to send mail to that mail host. More on that in the next
cd349e2703f1 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
93 section.
cd349e2703f1 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
94
cd349e2703f1 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
95 @cindex MDA
cd349e2703f1 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
96 Things are different when reading mail. The mail host responsible
cd349e2703f1 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
97 for your mail keeps it in a file somewhere. The messages get into the
cd349e2703f1 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
98 file by way of a mail delivery agent (MDA) such as procmail. These
cd349e2703f1 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
99 delivery agents often allow you to filter and munge your mails before
cd349e2703f1 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
100 you get to see it. When your computer is that mail host, this file is
cd349e2703f1 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
101 called a spool, and sometimes located in the directory
cd349e2703f1 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
102 @file{/var/spool/mail/}. All your MUA has to do is read mail from the
cd349e2703f1 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
103 spool, then.
cd349e2703f1 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
104
cd349e2703f1 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
105 @cindex POP3
cd349e2703f1 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
106 @cindex IMAP
cd349e2703f1 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
107 When your computer is not always connected to the internet, you
cd349e2703f1 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
108 must get the mail from the remote mail host using a protocol such as
cd349e2703f1 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
109 POP3 or IMAP. POP3 essentially downloads all your mail from the mail
cd349e2703f1 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
110 host to your computer. The mail is stored in some file on your
cd349e2703f1 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
111 computer, and again, all your MUA has to do is read mail from the
cd349e2703f1 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
112 spool.
cd349e2703f1 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
113
cd349e2703f1 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
114 When you read mail from various machines, downloading mail from the
cd349e2703f1 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
115 mail host to your current machine is not convenient. In that case,
cd349e2703f1 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
116 you will probably want to use the IMAP protocol. Your mail is kept on
cd349e2703f1 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
117 the mail host, and you can read it while you are connected via IMAP to
cd349e2703f1 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
118 the mail host.
cd349e2703f1 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
119
cd349e2703f1 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
120 @cindex Webmail
cd349e2703f1 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
121 So how does reading mail via the web work, you ask. In that case,
cd349e2703f1 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
122 the web interface just allows you to remote-control a MUA on the web
cd349e2703f1 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
123 host. Whether the web host is also a mail host, and how all the
cd349e2703f1 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
124 pieces interact is completely irrelevant. You usually cannot use
cd349e2703f1 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
125 Emacs to read mail via the web, unless you use software that parses
cd349e2703f1 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
126 the ever-changing HTML of the web interface.
cd349e2703f1 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
127
cd349e2703f1 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
128 @node Emacs Speaks SMTP
cd349e2703f1 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
129 @chapter Emacs Speaks SMTP
cd349e2703f1 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
130
cd349e2703f1 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
131 Emacs includes a package for sending your mail to a SMTP server and
cd349e2703f1 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
132 have it take care of delivering it to the final destination, rather
cd349e2703f1 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
133 than letting the MTA on your local system take care of it. This can
cd349e2703f1 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
134 be useful if you don't have a MTA set up on your host, or if your
cd349e2703f1 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
135 machine is often disconnected from the internet.
cd349e2703f1 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
136
cd349e2703f1 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
137 Sending mail via SMTP requires configuring your mail user agent
cd349e2703f1 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
138 (@pxref{Mail Methods,,,emacs}) to use the SMTP library. How to do
cd349e2703f1 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
139 this should be described for each mail user agent; for the default
cd349e2703f1 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
140 mail user agent the variable @code{send-mail-function} (@pxref{Mail
cd349e2703f1 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
141 Sending,,,emacs}) is used; for the Message and Gnus user agents the
cd349e2703f1 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
142 variable @code{message-send-mail-function} (@pxref{Mail
cd349e2703f1 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
143 Variables,,,message}) is used.
cd349e2703f1 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
144
cd349e2703f1 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
145 @example
cd349e2703f1 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
146 ;; If you use the default mail user agent.
cd349e2703f1 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
147 (setq send-mail-function 'smtpmail-send-it)
cd349e2703f1 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
148 ;; If you use Message or Gnus.
cd349e2703f1 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
149 (setq message-send-mail-function 'smtpmail-send-it)
cd349e2703f1 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
150 @end example
cd349e2703f1 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
151
cd349e2703f1 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
152 Before using SMTP you must find out the hostname of the SMTP server
cd349e2703f1 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
153 to use. Your system administrator should provide you with this
cd349e2703f1 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
154 information, but often it is the same as the server you receive mail
cd349e2703f1 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
155 from.
cd349e2703f1 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
156
cd349e2703f1 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
157 @table @code
cd349e2703f1 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
158 @item smtpmail-smtp-server
cd349e2703f1 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
159 @vindex smtpmail-smtp-server
cd349e2703f1 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
160 @vindex SMTPSERVER
cd349e2703f1 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
161 The variable @code{smtpmail-smtp-server} controls the hostname of
cd349e2703f1 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
162 the server to use. It is a string with an IP address or hostname. It
cd349e2703f1 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
163 defaults to the contents of the @env{SMTPSERVER} environment
cd349e2703f1 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
164 variable, or, if empty, the contents of
cd349e2703f1 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
165 @code{smtpmail-default-smtp-server}.
cd349e2703f1 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
166
cd349e2703f1 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
167 @item smtpmail-default-smtp-server
cd349e2703f1 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
168 @vindex smtpmail-default-smtp-server
cd349e2703f1 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
169 The variable @code{smtpmail-default-smtp-server} controls the
cd349e2703f1 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
170 default hostname of the server to use. It is a string with an IP
cd349e2703f1 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
171 address or hostname. It must be set before the SMTP library is
cd349e2703f1 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
172 loaded. It has no effect if set after the SMTP library has been
cd349e2703f1 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
173 loaded, or if @code{smtpmail-smtp-server} is defined. It is usually
cd349e2703f1 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
174 set by system administrators in a site wide initialization file.
cd349e2703f1 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
175 @end table
cd349e2703f1 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
176
cd349e2703f1 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
177 The following example illustrates what you could put in
cd349e2703f1 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
178 @file{~/.emacs} to set the SMTP server name.
cd349e2703f1 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
179
cd349e2703f1 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
180 @example
cd349e2703f1 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
181 ;; Send mail using SMTP via mail.example.org.
cd349e2703f1 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
182 (setq smtpmail-smtp-server "mail.example.org")
cd349e2703f1 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
183 @end example
cd349e2703f1 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
184
cd349e2703f1 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
185 @cindex Mail Submission
cd349e2703f1 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
186 SMTP is normally used on the registered ``smtp'' TCP service port 25.
cd349e2703f1 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
187 Some environments use SMTP in ``Mail Submission'' mode, which uses
cd349e2703f1 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
188 port 587. Using other ports is not uncommon, either for security by
cd349e2703f1 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
189 obscurity purposes, port forwarding, or otherwise.
cd349e2703f1 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
190
cd349e2703f1 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
191 @table @code
cd349e2703f1 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
192 @item smtpmail-smtp-service
cd349e2703f1 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
193 @vindex smtpmail-smtp-service
cd349e2703f1 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
194 The variable @code{smtpmail-smtp-service} controls the port on the
cd349e2703f1 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
195 server to contact. It is either a string, in which case it will be
cd349e2703f1 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
196 translated into an integer using system calls, or an integer.
cd349e2703f1 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
197 @end table
cd349e2703f1 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
198
cd349e2703f1 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
199 The following example illustrates what you could put in
cd349e2703f1 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
200 @file{~/.emacs} to set the SMTP service port.
cd349e2703f1 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
201
cd349e2703f1 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
202 @example
cd349e2703f1 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
203 ;; Send mail using SMTP on the mail submission port 587.
cd349e2703f1 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
204 (setq smtpmail-smtp-service 587)
cd349e2703f1 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
205 @end example
cd349e2703f1 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
206
cd349e2703f1 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
207 @node Authentication
cd349e2703f1 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
208 @chapter Authentication
cd349e2703f1 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
209
cd349e2703f1 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
210 @cindex SASL
cd349e2703f1 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
211 @cindex CRAM-MD5
cd349e2703f1 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
212 @cindex LOGIN
cd349e2703f1 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
213 @cindex STARTTLS
cd349e2703f1 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
214 @cindex TLS
cd349e2703f1 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
215 @cindex SSL
cd349e2703f1 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
216 Many environments require SMTP clients to authenticate themselves
cd349e2703f1 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
217 before they are allowed to route mail via a server. The two following
cd349e2703f1 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
218 variables contains the authentication information needed for this.
cd349e2703f1 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
219
cd349e2703f1 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
220 The first variable, @code{smtpmail-auth-credentials}, instructs the
cd349e2703f1 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
221 SMTP library to use a SASL authentication step, currently only the
cd349e2703f1 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
222 CRAM-MD5 and LOGIN mechanisms are supported and will be selected in
cd349e2703f1 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
223 that order if the server support both.
cd349e2703f1 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
224
cd349e2703f1 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
225 The second variable, @code{smtpmail-starttls-credentials}, instructs
cd349e2703f1 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
226 the SMTP library to connect to the server using STARTTLS. This means
cd349e2703f1 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
227 the protocol exchange may be integrity protected and confidential by
cd349e2703f1 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
228 using the Transport Layer Security (TLS) protocol, and optionally also
cd349e2703f1 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
229 authentication of the client and server.
cd349e2703f1 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
230
cd349e2703f1 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
231 TLS is a security protocol that is also known as SSL, although
cd349e2703f1 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
232 strictly speaking, SSL is an older variant of TLS. TLS is backwards
cd349e2703f1 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
233 compatible with SSL. In most mundane situations, the two terms are
cd349e2703f1 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
234 equivalent.
cd349e2703f1 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
235
cd349e2703f1 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
236 The TLS feature uses the elisp package @file{starttls.el} (see it for
cd349e2703f1 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
237 more information on customization), which in turn require that at
cd349e2703f1 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
238 least one of the following external tools are installed:
cd349e2703f1 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
239
cd349e2703f1 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
240 @enumerate
cd349e2703f1 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
241 @item
cd349e2703f1 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
242 The GNUTLS command line tool @samp{gnutls-cli}, you can get it from
cd349e2703f1 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
243 @url{http://www.gnu.org/software/gnutls/}. This is the recommended
cd349e2703f1 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
244 tool, mainly because it can verify the server certificates.
cd349e2703f1 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
245
cd349e2703f1 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
246 @item
cd349e2703f1 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
247 The @samp{starttls} external program, you can get it from
cd349e2703f1 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
248 @file{starttls-*.tar.gz} from @uref{ftp://ftp.opaopa.org/pub/elisp/}.
cd349e2703f1 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
249 @end enumerate
cd349e2703f1 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
250
cd349e2703f1 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
251 It is not uncommon to use both these mechanisms, e.g., to use STARTTLS
cd349e2703f1 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
252 to achieve integrity and confidentiality and then use SASL for client
cd349e2703f1 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
253 authentication.
cd349e2703f1 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
254
cd349e2703f1 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
255 @table @code
cd349e2703f1 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
256 @item smtpmail-auth-credentials
cd349e2703f1 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
257 @vindex smtpmail-auth-credentials
cd349e2703f1 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
258 The variable @code{smtpmail-auth-credentials} contains a list of
cd349e2703f1 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
259 hostname, port, username and password tuples. When the SMTP library
cd349e2703f1 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
260 connects to a host on a certain port, this variable is searched to
cd349e2703f1 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
261 find a matching entry for that hostname and port. If an entry is
cd349e2703f1 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
262 found, the authentication process is invoked and the credentials are
cd349e2703f1 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
263 used.
cd349e2703f1 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
264
cd349e2703f1 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
265 The hostname field follows the same format as
cd349e2703f1 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
266 @code{smtpmail-smtp-server} (i.e., a string) and the port field the
cd349e2703f1 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
267 same format as @code{smtpmail-smtp-service} (i.e., a string or an
cd349e2703f1 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
268 integer). The username and password fields, which either can be
cd349e2703f1 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
269 @code{nil} to indicate that the user is prompted for the value
cd349e2703f1 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
270 interactively, should be strings with the username and password,
cd349e2703f1 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
271 respectively, information that is normally provided by system
cd349e2703f1 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
272 administrators.
cd349e2703f1 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
273
cd349e2703f1 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
274 @item smtpmail-starttls-credentials
cd349e2703f1 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
275 @vindex smtpmail-starttls-credentials
cd349e2703f1 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
276 The variable @code{smtpmail-starttls-credentials} contains a list of
cd349e2703f1 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
277 tuples with hostname, port, name of file containing client key, and
cd349e2703f1 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
278 name of file containing client certificate. The processing is similar
cd349e2703f1 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
279 to the previous variable. The client key and certificate may be
cd349e2703f1 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
280 @code{nil} if you do not wish to use client authentication.
cd349e2703f1 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
281 @end table
cd349e2703f1 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
282
cd349e2703f1 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
283 The following example illustrates what you could put in
cd349e2703f1 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
284 @file{~/.emacs} to enable both SASL authentication and STARTTLS. The
cd349e2703f1 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
285 server name (@code{smtpmail-smtp-server}) is @var{hostname}, the
cd349e2703f1 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
286 server port (@code{smtpmail-smtp-service}) is @var{port}, and the
cd349e2703f1 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
287 username and password are @var{username} and @var{password}
cd349e2703f1 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
288 respectively.
cd349e2703f1 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
289
cd349e2703f1 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
290 @example
cd349e2703f1 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
291 ;; Authenticate using this username and password against my server.
cd349e2703f1 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
292 (setq smtpmail-auth-credentials
cd349e2703f1 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
293 '(("@var{hostname}" "@var{port}" "@var{username}" "@var{password}")))
cd349e2703f1 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
294
cd349e2703f1 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
295 ;; Note that if @var{port} is an integer, you must not quote it as a
cd349e2703f1 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
296 ;; string. Normally @var{port} should be the integer 25, and the example
cd349e2703f1 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
297 ;; become:
cd349e2703f1 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
298 (setq smtpmail-auth-credentials
cd349e2703f1 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
299 '(("@var{hostname}" 25 "@var{username}" "@var{password}")))
cd349e2703f1 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
300
cd349e2703f1 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
301 ;; Use STARTTLS without authentication against the server.
cd349e2703f1 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
302 (setq smtpmail-starttls-credentials
cd349e2703f1 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
303 '(("@var{hostname}" "@var{port}" nil nil)))
cd349e2703f1 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
304 @end example
cd349e2703f1 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
305
cd349e2703f1 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
306 @node Queued delivery
cd349e2703f1 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
307 @chapter Queued delivery
cd349e2703f1 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
308
cd349e2703f1 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
309 @cindex Dialup connection
cd349e2703f1 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
310 If you connect to the internet via a dialup connection, or for some
cd349e2703f1 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
311 other reason don't have permanent internet connection, sending mail
cd349e2703f1 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
312 will fail when you are not connected. The SMTP library implements
cd349e2703f1 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
313 queued delivery, and the following variable control its behavior.
cd349e2703f1 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
314
cd349e2703f1 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
315 @table @code
cd349e2703f1 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
316 @item smtpmail-queue-mail
cd349e2703f1 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
317 @vindex smtpmail-queue-mail
cd349e2703f1 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
318 The variable @code{smtpmail-queue-mail} controls whether a simple
cd349e2703f1 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
319 off line mail sender is active. This variable is a boolean, and
cd349e2703f1 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
320 defaults to @code{nil} (disabled). If this is non-@code{nil}, mail is
cd349e2703f1 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
321 not sent immediately but rather queued in the directory
cd349e2703f1 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
322 @code{smtpmail-queue-dir} and can be later sent manually by invoking
cd349e2703f1 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
323 @code{smtpmail-send-queued-mail} (typically when you connect to the
cd349e2703f1 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
324 internet).
cd349e2703f1 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
325
cd349e2703f1 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
326 @item smtpmail-queue-dir
cd349e2703f1 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
327 @vindex smtpmail-queue-dir
cd349e2703f1 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
328 The variable @code{smtpmail-queue-dir} specifies the name of the
cd349e2703f1 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
329 directory to hold queued messages. It defaults to
cd349e2703f1 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
330 @file{~/Mail/queued-mail/}.
cd349e2703f1 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
331 @end table
cd349e2703f1 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
332
cd349e2703f1 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
333 @findex smtpmail-send-queued-mail
cd349e2703f1 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
334 The function @code{smtpmail-send-queued-mail} can be used to send
cd349e2703f1 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
335 any queued mail when @code{smtpmail-queue-mail} is enabled. It is
cd349e2703f1 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
336 typically invoked interactively with @kbd{M-x
cd349e2703f1 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
337 smtpmail-send-queued-mail RET} when you are connected to the internet.
cd349e2703f1 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
338
cd349e2703f1 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
339 @node Server workarounds
cd349e2703f1 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
340 @chapter Server workarounds
cd349e2703f1 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
341
cd349e2703f1 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
342 Some SMTP servers have special requirements. The following variables
cd349e2703f1 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
343 implement support for common requirements.
cd349e2703f1 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
344
cd349e2703f1 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
345 @table @code
cd349e2703f1 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
346
cd349e2703f1 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
347 @item smtpmail-local-domain
cd349e2703f1 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
348 @vindex smtpmail-local-domain
cd349e2703f1 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
349 The variable @code{smtpmail-local-domain} controls the hostname sent
cd349e2703f1 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
350 in the first @code{EHLO} or @code{HELO} command sent to the server.
cd349e2703f1 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
351 It should only be set if the @code{system-name} function returns a
cd349e2703f1 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
352 name that isn't accepted by the server. Do not set this variable
cd349e2703f1 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
353 unless your server complains.
cd349e2703f1 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
354
cd349e2703f1 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
355 @item smtpmail-sendto-domain
cd349e2703f1 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
356 @vindex smtpmail-sendto-domain
cd349e2703f1 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
357 The variable @code{smtpmail-sendto-domain} makes the SMTP library
cd349e2703f1 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
358 add @samp{@@} and the specified value to recipients specified in the
cd349e2703f1 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
359 message when they are sent using the @code{RCPT TO} command. Some
cd349e2703f1 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
360 configurations of sendmail requires this behavior. Don't bother to
cd349e2703f1 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
361 set this unless you have get an error like:
cd349e2703f1 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
362
cd349e2703f1 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
363 @example
cd349e2703f1 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
364 Sending failed; SMTP protocol error
cd349e2703f1 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
365 @end example
cd349e2703f1 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
366
cd349e2703f1 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
367 when sending mail, and the debug buffer (@pxref{Debugging})) contains
cd349e2703f1 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
368 an error such as:
cd349e2703f1 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
369
cd349e2703f1 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
370 @example
cd349e2703f1 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
371 RCPT TO: @var{someone}
cd349e2703f1 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
372 501 @var{someone}: recipient address must contain a domain
cd349e2703f1 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
373 @end example
cd349e2703f1 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
374
cd349e2703f1 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
375 @end table
cd349e2703f1 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
376
cd349e2703f1 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
377
cd349e2703f1 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
378 @node Debugging
cd349e2703f1 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
379 @chapter Debugging
cd349e2703f1 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
380
cd349e2703f1 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
381 Sometimes delivery fails, often with the generic error message
cd349e2703f1 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
382 @samp{Sending failed; SMTP protocol error}. Enabling one or both of
cd349e2703f1 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
383 the following variables and inspecting a trace buffer will often give
cd349e2703f1 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
384 clues to the reason for the error.
cd349e2703f1 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
385
cd349e2703f1 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
386 @table @code
cd349e2703f1 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
387
cd349e2703f1 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
388 @item smtpmail-debug-info
cd349e2703f1 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
389 @vindex smtpmail-debug-info
cd349e2703f1 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
390 The variable @code{smtpmail-debug-info} controls whether to print
cd349e2703f1 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
391 the SMTP protocol exchange in the minibuffer, and retain the entire
cd349e2703f1 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
392 exchange in a buffer @samp{*trace of SMTP session to @var{server}*},
cd349e2703f1 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
393 where @var{server} is the name of the mail server to which you send
cd349e2703f1 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
394 mail.
cd349e2703f1 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
395
cd349e2703f1 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
396 @item smtpmail-debug-verb
cd349e2703f1 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
397 @vindex smtpmail-debug-verb
cd349e2703f1 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
398 The variable @code{smtpmail-debug-verb} controls whether to send the
cd349e2703f1 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
399 @code{VERB} token to the server. The @code{VERB} server instructs the
cd349e2703f1 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
400 server to be more verbose, and often also to attempt final delivery
cd349e2703f1 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
401 while your SMTP session is still running. It is usually only useful
cd349e2703f1 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
402 together with @code{smtpmail-debug-info}. Note that this may cause
cd349e2703f1 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
403 mail delivery to take considerable time if the final destination
cd349e2703f1 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
404 cannot accept mail.
cd349e2703f1 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
405
cd349e2703f1 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
406 @end table
cd349e2703f1 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
407
cd349e2703f1 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
408 @node GNU Free Documentation License
cd349e2703f1 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
409 @chapter GNU Free Documentation License
cd349e2703f1 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
410 @include doclicense.texi
cd349e2703f1 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
411
cd349e2703f1 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
412 @node Index
cd349e2703f1 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
413 @chapter Index
cd349e2703f1 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
414
cd349e2703f1 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
415 @section Concept Index
cd349e2703f1 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
416
cd349e2703f1 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
417 @printindex cp
cd349e2703f1 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
418
cd349e2703f1 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
419 @section Function and Variable Index
cd349e2703f1 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
420
cd349e2703f1 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
421 @printindex fn
cd349e2703f1 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
422
cd349e2703f1 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
423 @contents
cd349e2703f1 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
424 @bye
cd349e2703f1 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
425
cd349e2703f1 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
426 @ignore
cd349e2703f1 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
427 arch-tag: 6316abdf-b366-4562-87a2-f37e8f894b6f
cd349e2703f1 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
428 @end ignore