Exim4 is another Message Transfer Agent (MTA) developed at the University of Cambridge for use on Unix systems connected to the internet. Exim can be installed in place of sendmail, although the configuration of exim is quite different to that of sendmail.
Kör följande kommando för att installera exim4:
sudo apt-get install exim4 exim4-base exim4-config
Kör följande kommando för att konfigurera exim4:
sudo dpkg-reconfigure exim4-config
Användargränssnittet kommer visas, som låter dig konfigurera många parametrar. Till exempel är konfigurationsfilerna för exim4 uppdelade i många filer. Om du vill ha alla i samma fil kan du välja det i användargränssnittet.
All the parameters you configure in the user interface are
stored in
/etc/exim4/update-exim4.conf.conf
file.
If you wish to re-configure, either you re-run the
configuration wizard or manually edit this file
using your favourite editor. Once you configure, you can run
the following command to generate the master configuration
file:
sudo update-exim4.conf
The master configuration file, is generated and
it is stored in
/var/lib/exim4/config.autogenerated
.
![]() |
|
Du bör aldrig ändra i huvudkonfigurationsfilen |
You can run the following command to start exim4 daemon.
sudo /etc/init.d/exim4 start
TODO: This section should cover configuring SMTP AUTH with exim4.