Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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

1 Answer 1

up vote 1 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:

default._domainkey.example1.com example1.com:default:/etc/opendkim/keys/example1.com/default
default._domainkey.example2.com example2.com:default:/etc/opendkim/keys/example2.com/default

The key default._domainkey.example1.com will be used to sign email for example1.com, 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

 
discard

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.