Set Up WP Mail SMTP Using Postfix (for developers)
Prerequisites
- Since December 2, 2020, non-Cloudflare domains are allowed to use our Postfix relay server. You no longer need to check that the site uses Cloudflare.
- The website must have an active hosting package with us. Please check on Salesforce.
- SRE must be provided with access to edit the DNS.
Ask SRE to create a domain
🚫
Important
ACCESS TO WP MAIL SMTP & POSTFIX TO OUR POSTFIX RELAY SERVER WILL BE DEPRECATED.
-
File an SRE ticket on JIRA. Use the following template: Replace
<node>
with your root domain. Replace<domain>
with the domain name (https://prnt.sc/10a8lnv )- Summary: Create a postfix domain for
noreply.<node>
- Description:
- Please create a Postfix domain for
noreply.<node>
. Make sure that SPF and DKIM are also set up for the domain. - Add a CNAME to the DNS:
- Name: noreply
- Type: CNAME
- TTL: 1 hour
- Data/Value: spf.mail.protection.a1ox-notifications.com
- Add an MX to the DNS:
- Name: noreply
- Type: MX
- TTL: 1 hour
- Data/Value: mail.protection.a1ox-notifications.com
- Priority: 10
- Add a TXT to the DNS:
- Name: noreply
- Type: TXT
- TTL: 1 hour
- Data/Value: v=spf1 mx include:_spf.mail.protection.a1ox-notifications.com -all
- Add a CNAME to the DNS:
- Name: selector99._domainkey.noreply
- Type: CNAME
- TTL: 1 hour
- Data/Value: dk-
<domain>
-protection.a1t-a1ox-notifications.com
- Please create a Postfix domain for
- Summary: Create a postfix domain for
-
Wait for SRE to complete the ticket before you continue.
Check that DKIM and SPF records are correctly set up
DKIM
- Visit https://www.dmarcanalyzer.com/dkim/dkim-check/ .
- Input
noreply.<domain>
as the domain. - Input
selector99
as the DKIM selector. - DKIM record must contain this string https://prnt.sc/wi5ph8 .
SPF
- Visit https://www.dmarcanalyzer.com/spf/checker/ .
- Input
noreply.<domain>
as the domain. - SPF record must contain this string https://prnt.sc/wi5rdo .
Create a Postfix mailbox
- Log in to https://postfixadmin.forge99.com/ .
- Use the login details that are emailed to you. If you don’t have a login yet, ask SRE to create one for you.
- Go to https://postfixadmin.forge99.com/list.php?table=domain .
- Select the domain of the website. If you don’t see the go back to step 2 Ask SRE to create a domain.
- Click Add Mailbox.
- Use the following details:
- Username: notifications
- Domain:
<Select your domain>
- Password:
<Type a random password>
- Password (again):
<Type the same password>
- Name:
<Type the website title>
- Active: checked
- Send Welcome Email: unchecked
- Other Email:
<Leave blank>
- Click Add Mailbox again.
Set up WP Armour
- Set up WP Armour
Set up WP Mail SMTP
- Install and activate WP Mail SMTP .
- Go to WP Admin->WP Mail SMTP.
- Set the following:
- From Email: notifications@noreply.
<domain>
- Mailer: Other SMTP
- SMTP Host: mail.protection.a1ox-notifications.com
- Encryption: TLS (TLS will work as encryption type)
- SMTP Port: 587 (Only port 587 will work as port. Account login is disabled on port 25 and 465)
- Authentication: ON
- SMTP Username: notifications@noreply.
<domain>
- SMTP Password:
<The password you set when creating the Postfix mailbox>
- From Email: notifications@noreply.
Test the forms
- Make sure to test one contact form.
- Follow these guidelines .
Last updated on