Step By Step Guide To Setting Up Email Relay in Salesforce with G Suite
In simple terms "Email Relay" means that any email that needs to go out from your Salesforce org will be sent through your company's email (SMTP) server and not through Salesforce SMTP servers.
There are different scenarios under which emails can be sent out from a Salesforce org.
For example:
Users can send emails from Salesforce by navigating to a lead, contact, or case record and using the 'Email' functionality to send emails manually
Admins can configure the org to send emails automatically through workflow rules, Process Builder, or flows based on certain events like the creation/closure of a case
Developers can send emails through Apex
Users can subscribe to emails for Chatter groups and posts
Salesforce itself can send system emails. For example, for password resets, when a sandbox is ready, when sharing rules are recalculated, when a weekly data export file is ready, and so on
Normally Salesforce uses its own SMTP servers to send email. But many organizations may want emails to be routed through their email server rather than using Salesforce servers. Now, this may be because of compliance and security reasons, or they may not want the recipient's email server to treat these emails as spoofing or forgery.
You can route all emails sent from Salesforce through your organization's email (SMTP) server by configuring a feature called Email Relay. Configuring Email Relay is actually very simple, but if you run into issues, it can easily consume a couple of days.
With this blog post and the step-by-step guide, I have tried to make the whole process of setting up Email Relay very clear and prescriptive. I have also added some troubleshooting tips towards the end so that if you do run into issues, at least you will know where to look for the problem. Check it out and … happy relaying
(Though this guide configures email relay in Salesforce with G Suite, you should be able to follow these steps to configure it with any other email server)
References & Useful URLs
Send Email from Salesforce - Help Article (5 mins) - https://help.salesforce.com/articleView?id=emailadmin_send_email_from_salesforce_overview.htm&type=5
Send Email Through Email Relay - Help Article (5 mins) - https://help.salesforce.com/articleView?id=emailadmin_email_relay_overview.htm&type=5
Considerations for Setting Up Email Relay - Help Article (10 mins) - https://help.salesforce.com/articleView?id=emailadmin_email_relay_considerations.htm&type=5
Set Up Email Relay - Help Article (10 mins) - https://help.salesforce.com/articleView?id=email_relay.htm&type=5
Set Up Email Relay to Automatically Route Email Through SMTP - Video (4:19 mins) - https://youtu.be/GVEe-zMrslw