Exim 4.85 and DKIM -> "dkim_domain" option set for the second time

holgenoni

Verified User
Joined
Jan 28, 2015
Messages
7
Hi guys,

I hope you have a advice for me.
I've done now the implementation of DKIM from the following tutorial:
http://help.directadmin.com/item.php?id=569

Unfortunately when I try to start Exim I get the following error:
Code:
Exim configuration error in line 2 of /etc/exim.dkim.conf:
  "dkim_domain" option set for the second time

I've read in an russian forum (translated by google) that I have to change the exim.dkim.conf form
Code:
#1.0
  dkim_domain = $sender_address_domain
  dkim_selector = x
  dkim_private_key = ${if exists{/etc/virtual/$sender_address_domain/dkim.private.key}{/etc/virtual/$sender_address_domain/dkim.private.key}{0}}
  dkim_canon = relaxed
  dkim_strict = 0

to

Code:
#1.0
  dkim_domain_name = $sender_address_domain
  dkim_selector = x
  dkim_private_key = ${if exists{/etc/virtual/$sender_address_domain/dkim.private.key}{/etc/virtual/$sender_address_domain/dkim.private.key}{0}}
  dkim_canon = relaxed
  dkim_strict = 0


Because it was just translated with google, I don't really know if this is the correct way because I didn't understand all.
Is this the correct way of solving the startup problem?

Thank you very much in advance
regards
Andreas
 
Hi, it's version 4.3 from CB.

I've found a few minutes after my post, that in exim.conf the exim.dkim.conf was included before. When I've followed the tutorial, I've added a second line including exim.dkum.conf.

That's why I got the error with double dkim_domain.
After removing the second entry starting exim worked.

Unfortunaly I wasn't able to write this immediately in the post, because I had to wait until it got activated.

Thank you for your answer.
Regards
Andread
 
The new exim 4.3 does all the needed check automatically ;) You just need to enable dkim=1 in directadmin.conf and eventually add the key for already present users, nothing more ;)

Your welcome :)

Regards
 
Hi, that's gread. Unfortunately this is a little bit confusing because in the DA documentation the tutorial says to do everything.

However to understand you right, I only have to enable dkim=1 in directadmin.conf. And if I have existing users (domains) I have to execute following:
Code:
echo "action=rewrite&value=dkim" >> /usr/local/directadmin/data/task.queue

Is exim.conf in version 4.3 reccomended in production usage?

Regards
Andreas
 
I do use 4.3 in production without problem, probably that guide is not up2date since the 4.3 is a very new release, is still considered alpha release ;)

Regards
 
Back
Top