/[d-i]/trunk/manual/en/post-install/mail-setup.xml
ViewVC logotype

Contents of /trunk/manual/en/post-install/mail-setup.xml

Parent Directory Parent Directory | Revision Log Revision Log


Revision 64745 - (show annotations) (download) (as text)
Thu Sep 16 23:27:30 2010 UTC (2 years, 9 months ago) by sthibault
File MIME type: text/xml
File size: 9049 byte(s)
  * Fix "post-install" part for non-Linux ports.
1 <!-- retain these comments for translator revision tracking -->
2 <!-- $Id$ -->
3
4 <sect1 id="mail-setup">
5 <title>Setting Up Your System To Use E-Mail</title>
6 <para>
7
8 Today, email is an important part of many people's life. As there are
9 many options as to how to set it up, and as having it set up correctly is
10 important for some Debian utilities, we will try to cover the basics in
11 this section.
12
13 </para><para>
14
15 There are three main functions that make up an e-mail system. First there is
16 the <firstterm>Mail User Agent</firstterm> (MUA) which is the program a user
17 actually uses to compose and read mails. Then there is the <firstterm>Mail
18 Transfer Agent</firstterm> (MTA) that takes care of transferring messages
19 from one computer to another. And last there is the <firstterm>Mail
20 Delivery Agent</firstterm> (MDA) that takes care of delivering incoming mail
21 to the user's inbox.
22
23 </para><para>
24
25 These three functions can be performed by separate programs, but they can
26 also be combined in one or two programs. It is also possible to have
27 different programs handle these functions for different types of mail.
28
29 </para><para>
30
31 On Linux and Unix systems <command>mutt</command> is historically a very
32 popular MUA. Like most traditional Linux programs it is text based. It is
33 often used in combination with <command>exim</command> or
34 <command>sendmail</command> as MTA and <command>procmail</command> as MDA.
35
36 </para><para>
37
38 With the increasing popularity of graphical desktop systems, the use of
39 graphical e-mail programs like GNOME's <command>evolution</command>,
40 KDE's <command>kmail</command> or Mozilla's <command>thunderbird</command>
41 (in Debian available as <command>icedove</command><footnote>
42
43 <para>
44 The reason that <command>thunderbird</command> has been renamed to
45 <command>icedove</command> in Debian has to do with licensing issues.
46 Details are outside the scope of this manual.
47 </para>
48
49 </footnote>) is becoming more popular. These programs combine the function
50 of a MUA, MTA and MDA, but can &mdash; and often are &mdash; also be used
51 in combination with the traditional Linux tools.
52
53 </para>
54
55 <sect2 id="mail-default">
56 <title>Default E-Mail Configuration</title>
57 <para>
58
59 Even if you are planning to use a graphical mail program, it is important
60 that a traditional MTA/MDA is also installed and correctly set up on your
61 &debian; system. Reason is that various utilities running on the
62 system<footnote>
63
64 <para>
65 Examples are: <command>cron</command>, <command>quota</command>,
66 <command>logcheck</command>, <command>aide</command>, &hellip;
67 </para>
68
69 </footnote> can send important notices by e-mail to inform the system
70 administrator of (potential) problems or changes.
71
72 </para><para>
73
74 For this reason the packages <classname>exim4</classname> and
75 <classname>mutt</classname> will be installed by default (provided you
76 did not unselect the <quote>standard</quote> task during the installation).
77 <classname>exim4</classname> is a combination MTA/MDA that is relatively
78 small but very flexible. By default it will be configured to only handle
79 e-mail local to the system itself and e-mails addressed to the system
80 administrator (root account) will be delivered to the regular user account
81 created during the installation<footnote>
82
83 <para>
84 The forwarding of mail for root to the regular user account is configured
85 in <filename>/etc/aliases</filename>. If no regular user account was created,
86 the mail will of course be delivered to the root account itself.
87 </para>
88
89 </footnote>.
90
91 </para><para>
92
93 When system e-mails are delivered they are added to a file in
94 <filename>/var/mail/<replaceable>account_name</replaceable></filename>.
95 The e-mails can be read using <command>mutt</command>.
96
97 </para>
98 </sect2>
99
100 <sect2 id="mail-outgoing">
101 <title>Sending E-Mails Outside The System</title>
102 <para>
103
104 As mentioned earlier, the installed Debian system is only set up to handle
105 e-mail local to the system, not for sending mail to others nor for
106 receiving mail from others.
107
108 </para><para>
109
110 If you would like <classname>exim4</classname> to handle external e-mail,
111 please refer to the next subsection for the basic available configuration
112 options. Make sure to test that mail can be sent and received correctly.
113
114 </para><para>
115
116 If you intend to use a graphical mail program and use a mail server of
117 your Internet Service Provider (ISP) or your company, there is not really
118 any need to configure <classname>exim4</classname> for handling external
119 e-mail. Just configure your favorite graphical mail program to use the
120 correct servers to send and receive e-mail (how is outside the scope of
121 this manual).
122
123 </para><para>
124
125 However, in that case you may need to configure individual utilities to
126 correctly send e-mails. One such utility is <command>reportbug</command>,
127 a program that facilitates submitting bug reports against Debian packages.
128 By default it expects to be able to use <classname>exim4</classname> to
129 submit bug reports.
130
131 </para><para>
132
133 To correctly set up <command>reportbug</command> to use an external mail
134 server, please run the command <command>reportbug --configure</command>
135 and answer <quote>no</quote> to the question if an MTA is available. You
136 will then be asked for the SMTP server to be used for submitting bug reports.
137
138 </para>
139 </sect2>
140
141 <sect2 id="config-mta">
142 <title>Configuring the Exim4 Mail Transport Agent</title>
143 <para>
144
145 If you would like your system to also handle external e-mail, you will
146 need to reconfigure the <classname>exim4</classname> package<footnote>
147
148 <para>
149 You can of course also remove <classname>exim4</classname> and replace
150 it with an alternative MTA/MDA.
151 </para>
152
153 </footnote>:
154
155 <informalexample><screen>
156 # dpkg-reconfigure exim4-config
157 </screen></informalexample>
158
159 </para><para>
160
161 After entering that command (as root), you will be asked if you want split
162 the configuration into small files. If you are unsure, select the default
163 option.
164
165 </para><para>
166
167 Next you will be presented with several common mail scenarios. Choose the
168 one that most closely resembles your needs.
169
170 </para>
171
172 <variablelist>
173 <varlistentry>
174 <term>internet site</term>
175 <listitem><para>
176
177 Your system is connected to a network and your mail is sent and
178 received directly using SMTP. On the following screens you will be
179 asked a few basic questions, like your machine's mail name, or a list of
180 domains for which you accept or relay mail.
181
182 </para></listitem>
183 </varlistentry>
184
185 <varlistentry>
186 <term>mail sent by smarthost</term>
187 <listitem><para>
188
189 In this scenario your outgoing mail is forwarded to another machine,
190 called a <quote>smarthost</quote>, which takes care of sending the message
191 on to its destination.
192 The smarthost also usually stores incoming mail addressed to your
193 computer, so you don't need to be permanently online. That also means
194 you have to download your mail from the smarthost via programs like
195 fetchmail.
196
197 </para><para>
198
199 In a lot of cases the smarthost will be your ISP's mail server, which
200 makes this option very suitable for dial-up users. It can also be a
201 company mail server, or even another system on your own network.
202
203 </para></listitem>
204 </varlistentry>
205
206 <varlistentry>
207 <term>mail sent by smarthost; no local mail</term>
208 <listitem><para>
209
210 This option is basically the same as the previous one except that the
211 system will not be set up to handle mail for a local e-mail domain. Mail
212 on the system itself (e.g. for the system administrator) will still be
213 handled.
214
215 </para></listitem>
216 </varlistentry>
217
218 <varlistentry>
219 <term>local delivery only</term>
220 <listitem><para>
221
222 This is the option your system is configured for by default.
223
224 </para></listitem>
225 </varlistentry>
226
227 <varlistentry>
228 <term>no configuration at this time</term>
229 <listitem><para>
230
231 Choose this if you are absolutely convinced you know what you are
232 doing. This will leave you with an unconfigured mail system &mdash;
233 until you configure it, you won't be able to send or receive any mail
234 and you may miss some important messages from your system utilities.
235
236 </para></listitem>
237 </varlistentry>
238 </variablelist>
239
240 <para>
241
242 If none of these scenarios suits your needs, or if you need a finer
243 grained setup, you will need to edit configuration files under the
244 <filename>/etc/exim4</filename> directory after the installation is
245 complete. More information about <classname>exim4</classname> may be
246 found under <filename>/usr/share/doc/exim4</filename>; the file
247 <filename>README.Debian.gz</filename> has further details about
248 configuring <classname>exim4</classname> and explains where to find
249 additional documentation.
250
251 </para><para>
252
253 Note that sending mail directly to the Internet when you don't have an
254 official domain name, can result in your mail being rejected because of
255 anti-spam measures on receiving servers. Using your ISP's mail server is
256 preferred. If you still do want to send out mail directly, you may want to
257 use a different e-mail address than is generated by default. If you use
258 <classname>exim4</classname> as your MTA, this is possible by adding an
259 entry in <filename>/etc/email-addresses</filename>.
260
261 </para>
262 </sect2>
263 </sect1>

Properties

Name Value
svn:keywords Id

  ViewVC Help
Powered by ViewVC 1.1.5