Configuring Exim to use Gmail Step by Step
Run: #root/email-setup
As you go through the wizard select the following entries:
Mail Sent by SmartHost
localhost
Listen on:
127.0.0.1
blank
Other Machines:
blank
IP of Outgoing SmartHost:
smtp.gmail.com::587
Hide Local Mail Name:
No
No
Delivery Method:
mbox
Split Config:
No
Create app specific password in Google to be used for the gmail credentials in passwd.client :
pico /etc/exim4/passwd.client
Entry should look like this:
*.google.com:yourname@gmail.com:yourpassword
Update Exim by running this command:
update-exim4.conf
Restart your mail gateway:
service sendmail restart