dpkg-reconfigure exim4-config
#/etc/exim4/update-exim4.conf.conf
dc_eximconfig_configtype='satellite'
dc_other_hostnames=''
dc_local_interfaces='127.0.0.1 ; ::1'
dc_readhost='localhost'
dc_relay_domains=''
dc_minimaldns='false'
dc_relay_nets=''
dc_smarthost='smtp.gmail.com::587'
CFILEMODE='644'
dc_use_split_config='false'
dc_hide_mailname='true'
dc_mailname_in_oh='true'
dc_localdelivery='mail_spool'
#/etc/exim4/passwd.client
*.google.com:test@gmail.com:12345
service exim4 restart
(echo "test" ; uuencode /tmp/image.gif /tmp/image.gif)| mail -s "webcam alert" test@gmail.com
echo "test" | mutt -s "test" test@gmail.com
Permission denied:
mkdir /var/log/exim4
chmod -R u+rw /var/log/exim4
chown -R Debian-exim /var/log/exim4