3. Very simple configuration: local only

This section describes how to configure Exim to local use only --- only e-mails from your machine to a user on your machine are accepted.

The package "exim" comes with an useful tool to configure Exim, that is, eximconfig. Do as root:
# eximconfig

Then you will see the following message.
I can do some automatic configuration of your mail system, by asking
you a number of questions.  Later you may have to confirm and/or correct
your answers. In any case, comprehensive information on configuring exim is
in the eximdoc package and in /usr/doc/exim/spec.txt
[---Press return---]
Just press return.

==============================================================================
You must choose one of the options below:

 (1) Internet site; mail is sent and received directly using SMTP. If your
     needs don't fit neatly into any category, you probably want to start
     with this one and then edit the config file by hand.

 (2) Internet site using smarthost: You receive Internet mail on this 
     machine, either directly by SMTP or by running a utility such as 
     fetchmail. Outgoing mail is sent using a smarthost. optionally with
     addresses rewritten. This is probably what you want for a dialup
     system.

 (3) Satellite system: All mail is sent to another machine, called a "smart 
     host" for delivery. root and postmaster mail is delivered according 
     to /etc/aliases. No mail is received locally.

 (4) Local delivery only: You are not on a network.  Mail for local users 
     is delivered.

 (5) No configuration: No configuration will be done now; your mail system 
     will be broken and should not be used. You must then do the 
     configuration yourself later or run this script, /usr/sbin/eximconfig, 
     as root. Look in /usr/share/doc/exim/example.conf.gz

Select a number from 1 to 5, from the list above.
Enter value (default=`1', `x' to restart):
Choose 4.

Names are spice:localhost!

==============================================================================
Mail for the `postmaster' and `root' accounts is usually redirected
to one or more user accounts, of the actual system administrators.
By default, I'll set things up so that mail for `postmaster' and for
various system accounts is redirected to `root', and mail for `root'
is redirected to a real user.  This can be changed by editing /etc/aliases.

Note that postmaster-mail should usually be read on the system it is
directed to, rather than being forwarded elsewhere, so (at least one of)
the users you choose should not redirect their mail off this machine.

Which user account(s) should system administrator mail go to ?
Enter one or more usernames separated by spaces or commas .  Enter
`none' if you want to leave this mail in `root's mailbox - NB this
is strongly discouraged.  Also, note that usernames should be lowercase!
Enter value (`x' to restart): 
The name "spice" will be the hostname of your machine. (You can see it in /etc/hostname .) Enter your account name on your machine as a normal user (not "root").

The following configuration has been entered:

==============================================================================
Mail generated on this system will have `spice' used
as the domain part (after the @) in the From: field and similar places.

The following domain(s) will be recognised as referring to this system:
 spice, localhost

Mail for postmaster, root, etc. will be sent to oohara.

Local mail is delivered.


Is this OK ?  Hit Return or type `y' to confirm it and install,
or `n' to make changes (in which case we'll go round again, giving you
your previous answers as defaults.     (Y/n) 
The name "oohara" will be your account name as a normal user. Press return. That's all!