Results 1 to 17 of 17

Thread: Dkim not updating dns record

  1. #1
    Join Date
    Jul 2005
    Posts
    157

    Dkim not updating dns record

    hey guys as the subject says

    the ./dkim_create.sh domain.com is used

    its writes the command to

    /usr/local/directadmin/data/task.queue

    i made sure there was no keys in /etc/virtual/domain.com

    the dns record is updating the serial for the domain but there is no

    x._domainkey being written to the domains dns record

    Any suggestions or ideas would be great.

  2. #2
    Join Date
    Aug 2015
    Posts
    292
    What happens if you restart named?
    Code:
    service named restart
    Kind regards, Fred

    Alentejo Webdesign
    Webdesign with Passion is what we do
    Web development, Hosting, Speed Optimizing & More......

  3. #3
    Join Date
    Jul 2005
    Posts
    157
    Named is restarted via the /usr/local/directadmin/data/task.queue after the dkim command is run

    but i manually restarted it also to test and nothing is added. to the .db file

  4. #4
    Join Date
    Aug 2015
    Posts
    292
    Are you sure you set dkim=1 in directadmin.conf?
    Kind regards, Fred

    Alentejo Webdesign
    Webdesign with Passion is what we do
    Web development, Hosting, Speed Optimizing & More......

  5. #5
    Join Date
    Jul 2005
    Posts
    157
    yep , and restarted directadmin and checked dkim=1 was in there for good measure

  6. #6
    Join Date
    Jul 2008
    Location
    Maastricht
    Posts
    3,291
    Which skin are you using?

    And does it only not make die x_domainkey?
    Does it make this?
    Code:
    _domainkey      14400   IN      TXT     "o=~"
    Greetings, Richard.

  7. #7
    Join Date
    Jul 2005
    Posts
    157
    skin = enhanced

    and no , nothing is changed or added except the serial

  8. #8
    Join Date
    Jul 2008
    Location
    Maastricht
    Posts
    3,291
    I presume you're using the latest DA version.

    I remember that in some rare cases a blank line is needed at the end.
    Can you check this?
    Code:
    cd /usr/local/directadmin
    ./directadmin c | grep ^dkim=
    If you don't get 1 at the end, then put a blank line at the end of directadmin.conf and restart DA.

    If that won't help then I'm out of idea's, maybe a debug output of DA could bring some light on it. Maybe ZeiTeR can be of some help if he reads this.
    Greetings, Richard.

  9. #9
    Join Date
    Jul 2005
    Posts
    157
    yeah , thank you for the ideas Richard, no love there either i'm afraid

  10. #10
    Join Date
    May 2014
    Posts
    76
    Quote Originally Posted by ReN View Post
    yeah , thank you for the ideas Richard, no love there either i'm afraid
    Do you want to do the following:

    Remove DKIM files from /etc/virtual/domain.com
    Add new DKIM records with ./dkim_create.sh domain.com
    Run this command /usr/local/directadmin/datasql d100
    Then again /usr/local/directadmin/datasql d100

    Do you get an error message?

  11. #11
    Join Date
    Jul 2005
    Posts
    157
    Run this command /usr/local/directadmin/datasql d100

    file does not exist

  12. #12
    Join Date
    Jul 2008
    Location
    Maastricht
    Posts
    3,291
    Should be:
    /usr/local/directadmin/dataskq d100
    so dataskq instead of datasql. In both cases.
    Greetings, Richard.

  13. #13
    Join Date
    Jul 2005
    Posts
    157
    arhh yes sorry should have relized

    in any case

    root@server:/etc/httpd/conf/extra # cd /usr/local/directadmin/scripts
    root@server:/usr/local/directadmin/scripts # ./dkim_create.sh domain.com
    root@server:/usr/local/directadmin/scripts # /usr/local/directadmin/dataskq d100
    Debug mode. Level 100

    starting queue
    dataskq: command: action=rewrite&value=dkim&domain=domain.com&dns=yes
    done queue
    root@server:/usr/local/directadmin/scripts # /usr/local/directadmin/dataskq d100
    Debug mode. Level 100

    starting queue
    dataskq: command: action=named&value=reload
    done queue
    root@server:/usr/local/directadmin/scripts # /usr/local/directadmin/dataskq d100
    Debug mode. Level 100

    starting queue
    done queue

    so basically that where i started
    the task queue is there and runs fine , the dkim entry just doesn't get written to the dns .db file

  14. #14
    Join Date
    Jul 2008
    Location
    Maastricht
    Posts
    3,291
    Does the file /etc/exim.dkim.conf exist?

    Do you have a /etc/virtual/domain.com/dkim.private.key for the domain you tested with?

    And which version of Exim are you using, which version exim.conf are you using and which version exim.pl are you using?
    Last edited by Richard G; 06-13-2018 at 02:57 PM. Reason: Added second line
    Greetings, Richard.

  15. #15
    Join Date
    Jul 2005
    Posts
    157
    Yes /etc/exim.dkim.conf exists

    yes the files are being written to /etc/virtual/domain.com

    root@server:/usr/local # exim -bV
    Exim version 4.91 #2 built 11-May-2018 01:07:46

    SpamBlockerTechnology* powered exim.conf, Version 4.5.9

    #!/usr/bin/perl
    #VERSION=24

  16. #16
    Join Date
    Jul 2008
    Location
    Maastricht
    Posts
    3,291
    That's all the best and newest. So it's pure an issue with only the DNS records not being made. The exim entry's are ok.
    I presume you skipped step 2 the install guide, as the newer spamblocker exim.conf files already have this change in place by default, so you don't have it twice. I don't know if that could cause trouble though.

    ZeiTeRrrrrrrrrrrr.... shed some light please.

    Or you can put in a ticket too at tickets.directadmin.com if you want.
    I'm very curious what's causing this now.
    Greetings, Richard.

  17. #17
    Join Date
    Apr 2005
    Location
    GMT +7.00
    Posts
    12,010
    Hello,

    If DNS zones are not updated with DKIM keys, then directadmin is not configured in a proper way.

    So I would still like to see output of (copy and paste here what you get when you run the commands):

    Code:
    /usr/local/directadmin/directadmin c | grep ^dkim=

    It might be directadmin.conf was updated without a final empty line or line-break.

    Then I'd see /var/named/ content (feel free to mask domains, other data is important):

    Code:
    ls -la /var/named/*.db
    and (feel free to mask domains, other data is important):


    Code:
    lsattr /var/named/*.db

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •