one DKIM for multiple domains

ezh

Verified User
Joined
Jun 13, 2019
Messages
23
I have a few aliases with multiple domains I sent mails from, I want to use one SMTP server (DirectAdmin) for all domains.

SMTP domain: aaa.aa

Mails sent from domains with one DKIM
aaa.aa
bbb.bb
ccc.cc
etc

I tried to copy DKIM from aaa.aa to other domains, but that did not worked (as expected).

What I have to do for setting one DKIM for all desired domains up?

tnx
 
Actually aliases in DirectAdmin share DKIM keys, as they have no separate folders under /etc/virtual/, but they are symlinks to a main domain:

Code:
# ls -la /etc/virtual/aliased-domain.com
lrwxrwxrwx. 1 root root 18 Nov 18  2021 /etc/virtual/aliased-domain.com -> main-domain.com

If you don't use aliases in Directadmin, but want a single key for a list of domains, then just make sure to update content of the following files as well as update DNS records:

Code:
/etc/virtual/DOMAIN.COM/dkim.private.key 
/etc/virtual/DOMAIN.COM/dkim.public.key
 
  • Like
Reactions: ezh
Back
Top