Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have DKIM set up for one domain and it works properly. I am trying, though, to set it up for another domain name on the same machine. In short, I am sending registration and password recovery emails from one domain and everything else from the other domain. Both domains map to the same host.

Setting up domainkeys in this manner was no problem - adding another "DAEMON_OPTS=" line in /etc/default/dk-filter was the solution. This is not the case for DKIM, though, since it stores this information in a configuration file (/etc/dkim-filter.conf) that is formatted in a completely different manner.

Any help would be most appreciated. Thanks.

share|improve this question

Take a look at this person's question and answer:

DKIM sign outgoing mail from any domain with postfix and ubuntu

You may also need to read this (especially if you're on Ubuntu)

You'll still need to poke around a bit to see what configurations are relevant to you, but hopefully this will put you on the right track.

share|improve this answer

For Centos/RHEL take a look at this

share|improve this answer

The private key file used by DKIM is specified in /etc/dkim-filter.conf file, in the line beginning with 'KeyFile'. You can use this config file and private key with multiple domains, just list all the domains on the line starting with 'Domain'

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.