Create SPF/DKIM and MX records in Plesk
-
Log in to the Plesk Control Panel.
-
Navigate to the "Domains" tab and select the domain name you want to use for mail services.
-
Click on the "DNS Settings" tab.
-
Create an SPF record:
- Click on "Add Record".
- Select "TXT" as the record type.
- In the "TXT Record" field, enter your SPF record. For example,
v=spf1 include:_spf.example.com ~all
. - Click on the "OK" button to save the record.
-
Create a DKIM record:
- Click on "Add Record".
- Select "TXT" as the record type.
- In the "TXT Record" field, enter your DKIM record. For example,
v=DKIM1; k=rsa; p=MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAoXHOMz6CJF6mlGkdlxvE6m...
. - Click on the "OK" button to save the record.
Note
You will need to generate a DKIM key pair in Plesk before you can create the DKIM record. To do this, navigate to "Mail Settings" > "DKIM" and click on "Enable DKIM" to generate a key pair.
-
Create an MX record:
- Click on "Add Record".
- Select "MX" as the record type.
- In the "Mail Exchange Server" field, enter the hostname of the mail server you want to use. For example,
mail.example.com
. - In the "Priority" field, enter a priority value for the mail server. For example,
10
. - Click on the "OK" button to save the record.
That's it! Your SPF/DKIM and MX records are now configured for your domain in Plesk. Note that DNS changes can take up to 24 hours to propagate.