Exim (version 4) est un agent de transport de courrier, en anglais mail transport agent (MTA).
root@mazarini:~# apt-get install exim4
Fichier /etc/email-addresses
root: root@mazarini.ovh
Fichier /etc/mailname
mazarini.ovh
Le fichier /etc/exim4/update-exim4.conf.conf permet de définir les réponses par défaut lors des dialogues avec l'outils de génération de la configuration.
# /etc/exim4/update-exim4.conf.conf # # Edit this file and /etc/mailname by hand and execute update-exim4.conf # yourself or use 'dpkg-reconfigure exim4-config' # # Please note that this is _not_ a dpkg-conffile and that automatic changes # to this file might happen. The code handling this will honor your local # changes, so this is usually fine, but will break local schemes that mess # around with multiple versions of the file. # # update-exim4.conf uses this file to determine variable values to generate # exim configuration macros for the configuration file. # # Most settings found in here do have corresponding questions in the # Debconf configuration, but not all of them. # # This is a Debian specific file dc_eximconfig_configtype='internet' dc_other_hostnames='mazarini.ovh' dc_local_interfaces='127.0.0.1 ; 10.1.20.1' dc_readhost='' dc_relay_domains='mazarini.ovh' dc_minimaldns='false' dc_relay_nets='10.1.0.0/16' dc_smarthost='' CFILEMODE='644' dc_use_split_config='false' dc_hide_mailname='true' dc_mailname_in_oh='true' dc_localdelivery='mail_spool'
# /etc/exim4/update-exim4.conf.conf # # Edit this file and /etc/mailname by hand and execute update-exim4.conf # yourself or use 'dpkg-reconfigure exim4-config' # # Please note that this is _not_ a dpkg-conffile and that automatic changes # to this file might happen. The code handling this will honor your local # changes, so this is usually fine, but will break local schemes that mess # around with multiple versions of the file. # # update-exim4.conf uses this file to determine variable values to generate # exim configuration macros for the configuration file. # # Most settings found in here do have corresponding questions in the # Debconf configuration, but not all of them. # # This is a Debian specific file dc_eximconfig_configtype='smarthost' dc_other_hostnames='' dc_local_interfaces='127.0.0.1' dc_readhost='' dc_relay_domains='' dc_minimaldns='false' dc_relay_nets='' dc_smarthost='mail.mazarini.ovh' CFILEMODE='644' dc_use_split_config='false' dc_hide_mailname='true' dc_mailname_in_oh='true' dc_localdelivery='mail_spool
Liste de domaines pris en charge par le serveur.
Si le serveur n'envoie que des mails pour les utilisateurs locaux, 127.0.0.1 suffit. Si le serveur envoie des mails pour d'autres machines, ajouter l'adresse de l'interface concerné à celle de localhost.
Domaines utilisés par les serveurs utilisant ce serveur comme smarthost.
root@service:~# mail -s "test envoi" root Cc: test root@service:~#
Faire CTRL-D pour terminer.