DKIM configuration guide for Server / VPS running DirectAdmin

Default installation, DirectAdmin not support the initialization of  DKIM  for email. Instructions will help enable DKIM in email and how to configure DNS for this record, as well as how to check the authentication settings are correct or not.
Step 1: Enable support DKIM in DirectAdmin.

Open the file:

/usr/local/directadmin/conf/directadmin.conf insert at the end of the file stream: DKIM = 1

DirectAdmin restart service to update new settings.
Step 2: Enable DKIM records for the domain.
Shortly after the above steps, the new domain to add to the system will be initialized  DKIM , if the system has the domain and want to turn it can use the following commands:
– Created for 1 domain:

/usr/local/directadmin/scripts/ domain_cần_tạo

– Created for the entire domain has:

echo “action=rewrite&value=dkim” >> /usr/local/directadmin/data/task.queue

Step 3: Configuring Exim to support the load of logs and private DKIM email header.
Open the file  /etc/exim.conf  find the section:

driver = smtp

Edited into:

driver = smtp
dkim_domain = $sender_address_domain
dkim_selector = x
dkim_private_key = ${if exists{/etc/virtual/$sender_address_domain/dkim.private.key}{/etc/virtual/$sender_address_domain/dkim.private.key}{0}}
dkim_canon = relaxed
dkim_strict = 0

Restart Exim to update new settings.
Step 5: Configuring DKIM public records on the DNS server.
In the above steps to complete the initialization of private DKIM records and added to the header of the email, to complete the authentication, on the DNS of the domain needs more public DKIM records to complete the authentication.
If the domain is pointing to a server using the default nameserver records have been created and steps do not need to do anything. Even if the DNS domain is in a different place, you need to start creating more records as follows:
– Log on to the DNS Management DirectAdmin, navigate to domain need DKIM configuration.
– Find next record called: x._domainkey, copy the entire contents of this record. The recording will be v = DKIM1 format; k = rsa; p = MIIBIjANBgkqh …… (note dropped 2 marks “”).
– In the domain’s DNS management section initializes TXT record type structure:

x._domainkey      TXT         v=DKIM1; k=rsa; p=MIIBIjANBgkqh……

(Paste enough attention from the DNS Management records in DirectAdmin).

Go here to configure the DNS record for DKIM done.
Step 6: Check the accuracy of the installation logs.
After the above steps, wait a moment to synchronize DNS and then we examined through tools:
In tool on entering x to the Selector, the domain name to the Domain name and click check

DKIM configuration guide for Server / VPS running DirectAdmin

Rate this post

Add Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.