Start a conversation

Adding DKIM and SPF records for Direct Admin mailboxes

When you use domain mail, it is important that not only emails are received and sent, but also that they do not go into spam at the recipients' server.

There are two DNS records that can help: SPF and DKIM. The first one tells the recipient from which servers the mail can be sent from the domain mail, which is necessary when you sending an email to @ukr.net addresses (for example). The second one encrypts your mail.

DKIM-record

DKIM record is generated on the hosting server. To get it send an email to support@nic.ua or create a request through the form "Contact us" → "Apply to support" on the NIC.UA website. In the request specify that you need DKIM-record, hosting order number, and pin-code for support from your dashboard.

SPF-record

SPF record is simple to create based on your hosting order data.

In the record data you specify that this is the SPF record, specify the mail server address, as well as how to deal with letters that were sent from other servers.

For record type use TXT, name @, data starts with v=spf1 and ends with ~all or -all.
Between v=spf1 and ~all you must specify from which server the mail can be sent.
It will be enough to enter:

ip4:IP of the hosting server (for example, ip4:95.216.242.245).

The completed record data will look like this:

v=spf1 +a +mx +ip4:95.216.42.53 ~all

~all - emails from other servers will go into spam.

-all - emails from other servers will be rejected by the recipient's server.

+a +mx - you can also add, in this case A and MX domain records will be checked as well.

Server IP

You can find it in the hosting order settings.
For this go to the 'Hosting' section in your dashboard and click on the gear near your order.

In the order preferences you will find the "Hosting settings" field. There will be the server name and its IP address in square brackets.

You need to copy this IP address (without brackets) and paste it into the record data after +ip4: as in the example above.

You need to add both records (DKIM and SPF) on the name servers for your domain.

Go to the 'Name servers' page if you use NIC.UA name servers to add records. Then click the gear button next to the name servers for your domain and click "Edit" next to "DNS records" header.

You should add two records with type TXT in this section.

Enter names for the records:

  • for DKIM, everything before the domain name ( in the example) is the default._domainkey;
  • for SPF, use @.

Added records on the name servers will be like in the example below.

Save records

⚠️Note: after changing NS servers and/or DNS records, you will probably need to wait a few hours for DNS propagation. After that, your mail and website will work.

Choose files or drag and drop files
Was this article helpful?
Yes
No
  1. Valeriya Podolskaya

  2. Posted
  3. Updated

Comments