Main | Exim 4 Machine Client Setup   


Create new file /etc/exim4/exim4.conf.localmacros containing:

primary_hostname = orac.example.com

Modify /etc/exim4/passwd.client to add a smarthost:username:password triplet:

smtp.example.com:Orac:SillyPassword

On the server, hash this password:

#mkpasswd -H sha-256 SillyPassword
$5$vLK2bqOR7QYVFd$odWO4rmOz2F98xDZW/HQ5el2t2dIc47urCuXi/JfUY4

Then modify /etc/exim4/passwd to add a username:hashed_passwd:clear_passwd triplet:

Orac:$5$vLK2bqOR7QYVFd$odWO4rmOz2F98xDZW/HQ5el2t2dIc47urCuXi/JfUY4:SillyPassword

Run dpkg-reconfigure exim4-config to set Exim as smarthost,
and for the smarthost use "orac.example.com::587"

Or, modify /etc/exim4/update-exim4.conf.conf with:

dc_eximconfig_configtype='smarthost'
dc_other_hostnames='orac.example.com::587'
dc_local_interfaces='127.0.0.1'
dc_readhost='example.com'
dc_relay_domains=''
dc_minimaldns='false'
dc_relay_nets=''
dc_smarthost='smtp.example.com'
CFILEMODE='644'
dc_use_split_config='false'
dc_hide_mailname='false'
dc_mailname_in_oh='true'
dc_localdelivery='mail_spool'

Run /etc/init.d/exim4 reload
.

June 02, 2013, at 06:37 PM