Configure Exim to send emails with Gmail
Written by
on 12/12/2022
Category:
Ubuntu 14.04 LTS, Ubuntu 18.04 LTS, Ubuntu 16.04 LTS, Shell
Tags:
We will see how to configure Exim4 to send system emails with Gmail. This will ensure that your emails sent with your CRON are correctly routed and do not end up in spam. Let's install Exim4
apt-get install exim4
Configuration
dpkg-reconfigure exim4-config
Choose: mail sent by smarthost; no local mail
Then answer the questions as follows:
System mail name: YOUR_HOSTNAME
IP-addresses to listen on for incoming SMTP connections: 127.0.0.1 ; ::1
Other destinations fo...