What is Email Relay?
Email relay automatically routes Salesforce-generated emails through your company’s mail service. For more information on email relay, please review Set Up Email Relay.
Deliverability settings and mail relay
When email relay is enabled in Salesforce, companies do not necessarily need to use all of Salesforce’s Email Deliverability settings located under: Setup | Email Administration | Deliverability. This is because some of these settings (listed below) modify the envelope-from address of emails sent from Salesforce. The header From address remains set to the sender's email address. The return-path in the headers is also modified. This change in the email headers may affect email delivery to your email server, as the modified return-path includes a Variable Envelope Return Path value (VERP).
Therefore, we recommend companies to disable the following two email deliverability options when using email relay. You can read more about these settings in Guidelines for Configuring Deliverability Settings for Emails from Salesforce.
After disabling these settings, the email sent from Salesforce to your relay server will show both envelope-from and return-path as <name@domain.com>.
For background information on IPs used for Email Relay see: Ensure you can receive email from the Salesforce application
Securing your Email Relay
Here are some suggestions for ensuring that your mail relay is secure and that you relay only mail that you intend to:
Bounce Management with Email Relay
Using Email Relay and Bounce Management together requires special care because it can cause Sender Policy Framework (SPF, a common email security standard) to fail to validate. The Salesforce bounce management feature relies on setting each outgoing email's return path (also called the "envelope from address") to an address at bnc.salesforce.com. SPF works by extracting the domain in the return path to find a set of authorized IP addresses. When you use Email Relay and Bounce Management, the IP address of your relay does not match the authorized IP addresses for the domain (bnc.salesforce.com). This results in an SPF "soft failure" -- it does not mark your message as invalid, but it may reduce your deliverability.
One solution is to establish a DMARC policy for your domain, and then use Salesforce's DKIM signing feature to sign outgoing mail. With this combination, your mail passes a DMARC check, even though it does not pass SPF.
Another solution is to turn off bounce management in Salesforce.
Email Relay with Office 365
For more details about relaying with Office 365 see Salesforce 'Email Relay' with Office 365
Email Relay with Gmail
For more details about relaying with Gmail see Salesforce 'Email Relay' with Gmail
000382778

We use three kinds of cookies on our websites: required, functional, and advertising. You can choose whether functional and advertising cookies apply. Click on the different cookie categories to find out more about each category and to change the default settings.
Privacy Statement
Required cookies are necessary for basic website functionality. Some examples include: session cookies needed to transmit the website, authentication cookies, and security cookies.
Functional cookies enhance functions, performance, and services on the website. Some examples include: cookies used to analyze site traffic, cookies used for market research, and cookies used to display advertising that is not directed to a particular individual.
Advertising cookies track activity across websites in order to understand a viewer’s interests, and direct them specific marketing. Some examples include: cookies used for remarketing, or interest-based advertising.