domainkey for subdomain, sending e-mail as user

anton1982

Verified User
Joined
Jun 12, 2016
Messages
43
When our DA-users send e-mail through F.E. Wordpress their sending address is [username]@sharedx.servername.net. mail-tester.com says the domainkey for sharedx.servername.net is not valid. We do have a valid DKIM for servername.net but not for the subdomain. I searched how to add a DKIM for the subdomain but cannot find the answer. I already tried through console:

cd /usr/local/directadmin/scripts
./dkim_create.sh sharedx.servername.net

but this does not change anything and does not work.

Hope someone can help me.

UPDATE:
I managed to get it working. I checked /etc/virtual/sharedx.servername.net and i did see the dkim.public.key file. I manually created a txt record for the domain name:

x._domainkey.sharedx.servername.net. TXT "v=DKIM1; k=rsa; p=[public key from dkim.public.key placed here]"

Now it works fine.
 
Last edited:
Hello,

According to the step #4 from this guide: https://help.directadmin.com/item.php?id=569 you should have the DKIM keys created, and dns zones updated after you run:

Code:
cd /usr/local/directadmin/scripts
./dkim_create.sh sharedx.servername.net

So I'd rather try to discover what exactly went wrong and why DNS records were not updated with the TXT record. Probably you did not wait enough long (though 1-2 minutes should be sufficient)... or you have an issue with cron...
 
That might be right :-) So I thought I try again today with another server. But something else happened now. I created a subdomain for a domain and tried the options as you say. I get the message: Unable to find /etc/virtual/sharedx.servername.net

So I checked but it isn't there (in /etc/virtual/) . How could that happen? I tried to remove the subdomain and add it again, but still isn't there.
 
Back
Top