2. vim /etc/mail/sendmail.mc - uncomment SMART_HOST option
3. make -C /etc/mail
4. vim /etc/aliases - add alias for root
5. /etc/init.d/sendmail restart
# "Smart" relay host (may be null) DSmy.smarthost.server
/etc/rc.d/rc.sendmail restart
define(`SMART_HOST',`my.smarthost.server') m4 /etc/mail/sendmail.mc > /etc/mail/sendmail.cf
/etc/rc.d/rc.sendmail restart
dc_smarthost='my.smarthost.server'
dc_eximconfig_configtype='smarthost'
update-exim4.conf
/etc/init.d/exim4 restart