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

My scenerio is

" php application---->Load Balancer----->smtp server...>relaying

My load balancer receiving mails from php application from different domains now for DKIM we need to sign by DKIM keys for each domain. this is very difficult to implement but now.. I want that when my smtp(multiple) relay mail it sign outbound mails by its own Domain keys for all outbound mails which are from different domain..?

share|improve this question
OK. What have you tried so far? – womble Jul 14 '12 at 12:01
up vote 2 down vote accepted

If you're running OpenDKIM, you can use the KeyTable file to specify which key is associated with which domain. Something like:

The key will be used to sign email for, and so on.

In the SigningTable, you can also have OpenDKIM match on the From: line of the email, so individual users can be signed using different keys.

OpenDKIM documentation is here.

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.