Configuring Postfix as Email Relay in Salesforce
Configure Postfix as Email Relay in Salesforce.
Procedure
-
In your Salesforce org, configure the Email Relay
Activation as follows:
- Log into to your Salesforce org as administrator.
-
In your Salesforce org, click the gear symbol in
the upper right corner of the page, then click
Setup.
Figure 1: Salesforce org - Setup
- In the Setup page, find the section ADMINISTRATION in the menu on the left side, then click Email > Email Delivery Settings > Email Relays.
- Click Create Email Relay.
- In the field Email Host, enter the hostname of the Postfix SMTP Relay, e.g. mail.secure-sf.com.
- Keep the value 25 in the Port field.
- In the field TLS Setting, choose Off.
-
Click Save.
Figure 2: Configuring the Email Relay Activation
- Log out from your Salesforce org.
-
In your Salesforce org, configure an Email Domain Filter to enable the Email Relay as follows:
- In the Setup page, find the section ADMINISTRATION in the menu on the left side, then click Email > Email Delivery Settings > Email Domain Filters.
- Click Create Email Domain Filter
- In the fields Sender Domain and Recipient Domain enter * and in the field Email Relay, select your previously configured Email Relay.
-
Enable the Active checkbox and click Save
Figure 3: Configuring the Email Domain Filter
-
If you have configured that the e-mail address in the User object should be
tokenized, set up an additional MX record in the DNS for the domain configured
in the Email Tokenizer, such as:
tok.yourdomain.com MX preference = 10, mail exchanger = relay.yourdomain.com
