Exim as a relay

Exim as a relay

Posted By: pmietlicki

Published to Linux on Jun 04, 2015

If you want to send emails from your server, the easiest way is to use an other SMTP server via a relay in "smarthost" mode.

Inside /etc/exim4/update-exim4conf.conf :

dc_eximconfig_configtype='smarthost'
dc_other_hostnames=''
dc_local_interfaces='127.0.0.1 ; ::1'
dc_readhost='mymachine.test.fr'
dc_relay_domains=''
dc_minimaldns='false'
dc_relay_nets=''
dc_smarthost='smtp.test.fr'
CFILEMODE='644'
dc_use_split_config='false'
dc_hide_mailname='true'
dc_mailname_in_oh='true'
dc_localdelivery='mail_spool'

Then :

service exim4 restart

To test that an email is really sent :

 mail machin@truc.com


Tags: exim, linux, mail

Archive