How do I prevent the "Be careful with this message" warning banner appearing at the top of emails?
How do I remove the "via" in the From address of emails sent from Salesforce?
Emails that my client were sending from Salesforce were being presented to customers with warning banner, warning the customer to be careful with the message, avoid clicking on links, etc. Here's a look at one such email message, when submitted to an internal QA team member:Fig. 1: Email from Salesforce, sent to internal company team member |
Here is another email, when a Case Notification email was sent to an external customer's gmail account.
Fig. 2: Same email template from Salesforce, sent to external user |
These email conditions occur because the "From" address in the email header is spoofed: the email header says it was sent from a user@companyname.com, but it was actually sent from a email server with a salesforce.com domain name.
To avoid this, the client needed to enable SMTP Email Relay. I've never setup email relay on a Google Apps domain before. I found a couple older (4+ years) blog posts on setting this up (here and here); both got me 95% of the way there. Salesforce has made a few changes since these articles were written, so I decided to post this "revised" blog of how to set up SMTP email relay between Salesforce and G-Suite.
Step 0: No Need to Open a Case with Salesforce Customer Support
Both blogs above indicated that the first step was to open a Case with Salesforce.com and request Email Relay feature enablement. I even found Salesforce Knowledge Article 5793, which seemed to imply this was still required. The current Salesforce documentation, however, indicates that setting up email relay is now a standard feature. (I actually ended up creating a Case with Salesforce, only to have them confirm it was a standard feature, and no longer needed to be enabled for each org on their side first).
Step 1: Setup SMTP Email Relay in G-Suite
Follow these instructions to setup SMTP relay service in G-Suite.
- Login to G-Suite Admin Console: admin.google.com
- From the Admin Console Home Page, go to Apps > G-Suite > Gmail > Advanced Settings (Tip: Scroll down to the bottom of the page to see Advanced Settings)
- On the left side, select top-level organization.
- Scroll to the SMTP relay service setting in the Routing section. Hover over the setting and click Configure. (If the setting is already configured, click Edit or Add Another).
- For a new setting, enter a unique description.
- Set up the following:
- Allowed senders: Only addresses in my domains
- Authentication: Only accept mail from the specified IP addresses
- Reference this Salesforce Knowledge Article describing which Salesforce IP Addresses must be whitelisted. You must add all of the IP addresses that are used for email relay. (Hint: Scroll down to the section labeled "The addresses used for email relay include").
- Check the Enable box for each IP address entered.
- Require SMTP Authentication: unchecked
- Encryption section, Require TLS encryption: checked
- At the bottom, click Save
Step 2: Enable Email Relay in Salesforce
To setup email relay in Salesforce, a Salesforce admin should do the following:
- In Salesforce Quick Find, go to "Email Relays" and select Create Email Relay
- Enter the following Email Relay Properties:
- Host: smtp-relay.gmail.com
- Port: 587
- TLS Setting: Required
- Enable SMTP Auth: leave unchecked
- In Quick Find, go to "Email Domain Filters" and select Create Email Domain Filter
- Enter the following Email Domain Filter Properties:
- Sender Domain: leave at default setting
- Recipient Domain: leave at default setting
- Email Relay: select smtp-relay.gmail.com:587 [TLS Required]
- Active: checked
- In Quick Find, go to "Deliverability". Make sure the following features are unchecked:
- Uncheck "Activate bounce management" (Using email relay with bounce management is tricky; you'll need to implement DKIM signing and enable SMTP Auth. My client did not use the bounce management feature heavily, so we simply disabled it.
- Uncheck "Enable compliance with standard email security mechanisms" (if enabled, these may interfere with the relay of your email messages from Salesforce)
- In Quick Find, go to "Test Deliverability". Follow the instructions to test and verify that your email messages are routing correctly.
- You may want to do another test, by sending an email message from Salesforce.com. Verify that the message sends correctly. You can also log into G-Suite gmail as that user, and you should see the email in your Sent folder.
No comments:
Post a Comment