Skip to content

Spamhaus rejects with "Error: open resolver" #37

@chrisblech

Description

@chrisblech

With the current postfix configuration:

smtpd_recipient_restrictions =
[...]
   reject_rbl_client zen.spamhaus.org,
   permit

...all mails are rejected, with the following message: NOQUEUE: reject: RCPT from <redacted>: 554 5.7.1 Service unavailable; Client host [redacted] blocked using zen.spamhaus.org; Error: open resolver; https://check.spamhaus.org/returnc/pub/46.38.225.230/

Following the provided link, spamhaus says:

  • The problem is with the recipient’s email server configuration.
  • It is not because you are listed on one of our blocklists.
  • This page provides the information required to correct this issue: Using our public mirrors? Check your return codes now.
  • To succesfully query Spamhaus via public/open resolvers, there is a FREE service which delivers the intelligence faster and with additional blocklists available to increase catch-rates: Spamhaus Data Query Service

I will open a PR shortly, that a) explains how to obtain a DQS-key in README, b) changes postfix config to use this key when provided, c) skip spamhaus filter, when no DQS-key is provided

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions