Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

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


The private shopping website GILT, send periodical update emails from however all of the mails are signed with domain keys of



My Story

I couldn't manage to sign with 's domain key using dk-filter under Debian Lenny with postfix.

If I try to init dk-filter service with following arguments:

DAEMON_OPTS="$DAEMON_OPTS -d, -c nofws -k -i /var/dk-filter/internal_hosts -s /etc/dk-keys.conf"

dk-filter service signs with domain (

If I change the daemon arg.s as following:

DAEMON_OPTS="$DAEMON_OPTS -d -c nofws -k -i /var/dk-filter/internal_hosts -s /etc/dk-keys.conf"

then emails sent From is not being signed.

the dk-keys.conf file is as follows:


I managed to do same thing with DKIM, works perfect. However DK doesn't seem to work. I don't have any problem signing's emails with's key and's emails's key, which indicates there is no configuration problem.

Do you have any experience/advice to make it possible to sign emails from multiple domains by a specific chosen domain?

share|improve this question
I'm running into this problem as well. Currently I'm forced to just create DNS entries for every domain I may send from which works but is time consuming. As you pointed out DKIM has a solution for this problem, so it seems reasonable DomainKeys would as well. – Brian Armstrong Jan 20 '11 at 9:24

I'm finding that with dkim this works fine as you can specify a domain to "sign" from. ie. email is from, but in the DKIM-Signature: With dk-filter, though, each signing-domain remains the host domain in the from: address. ie. From: == DomainKeys-Signature:, even if you're using the KEY from

So even though you may be able to sign's emails from's key, the signing-domain will always be and as such you still need to create separate s._domainkey entries for EACH domain.

share|improve this answer

Though it's been a while, ran into this problem, found this post, found some other docs here:

-d domain [,...] A comma-separated list of domains whose mail should be signed by this filter. Mail from other domains will be verified rather than being signed. [ ... ] In either case, the domain name(s) may contain the special char- acter "*" which is treated as a wildcard character matching zero or more characters in a domain name.

So, i used something like

-d *.ro,*.eu

for signing all of the .ro and .eu domains. Works beautifully, signatures matching sending domain. Of course, you still have to insert the public key in each domain's DNS zone, but that's easy if you use the same key for all the domains.

Using Ubuntu 10.04, postfix 2.7.0, dk-filter 1.0.0

share|improve this answer

You need to create a txt file (for example /etc/dk-domains.conf) with one domain per line and add it to the d-filter config file (/etc/default/dk-filter in debian & derivates).

Don't forget to change the owner of this file to "df-filter"

My /etc/default/dk-filter file look like this:

DAEMON_OPTS="-l -i /etc/mail/dkim/trusted_hosts -k -s /etc/dk-keys.conf -d /etc/dk-domains.conf"

Good luck.

Jefferson Pugliese Network Manager at Enter On Line

share|improve this answer
Hi Jefferson - I tried this approach just now, and while it does sign emails for all those domains, the signature still has the wrong domain in it which is I think what Lashae was asking about. So unfortunately this doesn't solve it. As a small side note, you can also just enter '*' in that file and it will sign mail for all domains (still with the wrong domain in the header). – Brian Armstrong Jan 20 '11 at 9:12

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.