Configure DomainKeys (OpenDKIM) with Postfix on CentOS 7

15 Responses

  1. anibal says:

    What does “hash -r” do? and how can it be installed?
    thank you

  2. fusionstream says:

    How do you make a keygen for another domain besides whatever is returned by hostname?

    Also, how do you do this for multiple domains?

  3. Aizat says:

    After entering ‘cat /etc/opendkim/keys/default.txt’ I got a ‘DKIM key default for com’ and not my domain name at the end of the message.

    At the start when I ran the command ‘opendkim-default-keygen’, I got a message ‘Default DKIM keys for com created in /etc/opendkim/keys.’ instead of one with my domain name. There isn’t any step defined in your tutorial to change this.

  4. Ric says:

    To me, step 3 is incomplete as no domain is being specified here.
    Maybe the use of these would be relevant (where mydomain.com is your domain name):
    mkdir /etc/opendkim/keys/mydomain.com
    opendkim-genkey -D /etc/opendkim/keys/mydomain.com/ -d mydomain.com -s default
    chown -R opendkim: /etc/opendkim/keys/mydomain.com
    mv /etc/opendkim/keys/mydomain.com/default.private /etc/opendkim/keys/mydomain.com/default

  5. Garry says:

    Hi, I got a problem to start openDKIM. It comes out error for “Starting OpenDKIM Milter: opendkim: /etc/opendkim.conf: refile:/etc/opendkim/TrustedHosts: dkimf_db_open(): Permission denied

    I try to change permission for 664. It seem not work. Do you have any idea and suggestion for solve this problem?

  6. Maxime says:

    Thanks ! Followed your instructions and it worked straight out of the box.

  7. Rodney Recor says:

    I am baffled.
    I cannot get past your Step 2: “yum install -y opendkim”

    I get an error message:
    “No package opendkim available”

    Do you know why this is happening?

  8. mssadewa says:

    Hi Thank you,
    Clearly, simple, and works great!

  9. ramy says:

    I have problem not authenticated but DKIM verification successful and no signing table match for but DKIM verification successful how to fix this problem?

  10. greygeek says:

    Our web server has a Thawte EV SSL certificate. Should I link to those keys or generate our own opendkim keys? How do I include the IntermediateCA.crt?

  11. Chavdar says:

    Hi Pradeep,

    You have a small error – you have not removed the # from line 5 of the highlighted lines on step 4. This is for the “opendkim.conf”

    Regards 😉

Leave a Reply

Your email address will not be published. Required fields are marked *