~ubuntu-branches/ubuntu/karmic/installation-guide/karmic

« back to all changes in this revision

Viewing changes to en/post-install/mail-setup.xml

  • Committer: Bazaar Package Importer
  • Author(s): Colin Watson
  • Date: 2007-07-23 15:52:44 UTC
  • mfrom: (2.1.1 etch)
  • Revision ID: james.westby@ubuntu.com-20070723155244-xayq1rzu8rllvngy
Tags: 20070319ubuntu1
* Resynchronise with Debian. Remaining changes:
  - Build only English (for now, until we figure out how to avoid trashing
    translations quite so badly with Ubuntu branding etc.).
  - Build only Ubuntu architectures (amd64, hppa, i386, ia64, powerpc,
    sparc).
  - Extensive (although possibly incomplete) Ubuntu branding, adjustments
    for our mirror layout, etc.
  - Add "Ubuntu and Debian" and "What is Ubuntu?" section, text borrowed
    from the Ubuntu web site. Disable the "What is Debian GNU/Linux?"
    section.
  - Direct installation reports to ubuntu-users for now.
  - Adjust various memory and disk space requirements. Talk about the
    default Ubuntu desktop and Ubuntu tasks rather than Debian tasks.
  - Document mounting /sys in various places.
  - Unset supports-floppy-boot for all our architectures.
  - Add a few more supports-floppy-boot and bootable-usb conditionals.
  - Document our root password and sudo arrangements.
  - Document netboot-style USB images. Still mention the hd-media images,
    but they're downplayed since many USB sticks are too small for a full
    Ubuntu ISO image.
  - Document Kickstart installations (currently only the basics, a
    reference to Red Hat's documentation, and the differences from
    Anaconda).
  - Note that an empty preseed file is equivalent to a normal manual
    installation.
  - Rename doc-base.TEMPLATE to TEMPLATE.doc-base.
  - Update keyboard preseeding documentation for console-setup.
  - Update chroot-install guide for console-setup and language packs; add
    a bit more advice about installing grub.
  - Remove text talking about devfs-style device names, which are no
    longer supported.
  - Fix links to web copies of installation manual and example preseed
    file.
* Bump kernelversion to 2.6.22.
* Bump x11ver to 7.3.
* Bump GNOME version to 2.20.
* Bump release version and names for Gutsy (LP: #119177).
* Refer to the standard task rather than ubuntu-standard.
* Disable documentation of the GTK frontend.
* Remove latex-hangul-ucs-hlatex build-dependency, as we don't build for
  Korean.

Show diffs side-by-side

added added

removed removed

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