====== Server SMTP : exim4 ====== ===== Présentation ===== Exim (version 4) est un agent de transport de courrier, en anglais mail transport agent (MTA). ===== Installation ===== root@mazarini:~# apt-get install exim4 ===== Configuration Exim4 ===== ==== Domaine des expéditeurs de mails ==== Fichier /etc/email-addresses root: root@mazarini.ovh ==== Domaine des mails ==== Fichier /etc/mailname mazarini.ovh ==== /etc/exim4/update-exim4.conf.conf ==== 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. === Envoi direct de mail et de smarthost pour d'autres === # /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' === Envoi de mail via un smarthost === # /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 === dc_eximconfig_configtype === * internet : envoi directe de mail * smarthost : envoi de mail via un smarthost === dc_other_hostnames === Liste de domaines pris en charge par le serveur. === dc_local_interfaces === 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. === dc_relay_domains === Domaines utilisés par les serveurs utilisant ce serveur comme smarthost. ===== Commandes ===== ==== Envoi de mail ==== root@service:~# mail -s "test envoi" root Cc: test root@service:~# Faire CTRL-D pour terminer. ===== Références =====