Skip to content

OpenDKIM key retrieval failed - query timed out #1204

@j-marz

Description

@j-marz

Context

OpenDKIM is not able to verify DKIM on inbound emails as it's not able to retrieve public key from DNS. The following error logs are observed in logs key retrieval failed - query timed out

Expected Behavior

OpenDKIM should be able to download public key from DNS.

Actual Behavior

OpenDKIM appears to be using root name servers instead of the name servers defined in /etc/resolv.conf. This breaks DNS in environments where outbound firewall rules restrict access to specific name servers (ie. those defined in /etc/resolv.conf).

Possible Fix

Set the Nameservers parameter in /etc/opendkim.conf to the name servers defined in /etc/resolv.conf

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions