How to send email using Gmail in VPS with Debian OS

Port 25 in VULTR is blocked by default. If you need to send out email without contacting VULTR support, you can follow this tutorial to setup your Exim to send email via Gmail SMTP server.

How to send email using Gmail in VPS with Debian OS

 

Install Exim4

Configuration

Run following command to configure Exim4.

Open and edit /etc/exim4/exim4.conf.template.

Search for:

Then add these lines after it:

Save and close /etc/exim4/exim4.conf.template.

Apply the new configuration

Check /var/log/exim4/mainlog if any errors occurred. You can now send emails from your VULTR VPS.