I faced the problem with my email server: too much junk mail because of failing DNS RBL (SURBL, URIBL) tests.
I prepared test message with SURBL test URL and checked it with "spamassassin" binary and it was marked properly. Then I restarted spamassassin and checked with spamc:
$ spamc < spam-test.msg
X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on example.com
X-Spam-Level: ***
X-Spam-Status: No, score=3.7 required=6.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED,
FREEMAIL_FROM,NML_ADSP_CUSTOM_MED,NO_RELAYS,TVD_SPACE_RATIO,URIBL_ABUSE_SURBL,
URIBL_MW_SURBL,URIBL_PH_SURBL,URIBL_WS_SURBL autolearn=no autolearn_force=no
version=3.4.0
Received: by 10.194.59.177 with HTTP; Sun, 3 Jul 2016 16:38:58 -0700 (PDT)
Date: Mon, 4 Jul 2016 02:38:58 +0300
Message-ID: <CACKqZKtakMrxfqTHLEYjRFJNfR6dBwtNqL=AR+D=RrbuB_cxqA@mail.gmail.com>
Subject: test
From: Alexander Gerasimov <c......@gmail.com>
To: Alexander Gerasimov <c......@gmail.com>
Content-Type: text/plain; charset=UTF-8
http://surbl-org-permanent-test-point.com/
test
Everything worked!
After 5 minutes it stops working again with the same message:
$ spamc < spam-test.msg
X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on example.com
X-Spam-Level:
X-Spam-Status: No, score=-1.0 required=6.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED,
FREEMAIL_FROM,NML_ADSP_CUSTOM_MED,NO_RELAYS,TVD_SPACE_RATIO autolearn=no
autolearn_force=no version=3.4.0
Received: by 10.194.59.177 with HTTP; Sun, 3 Jul 2016 16:38:58 -0700 (PDT)
Date: Mon, 4 Jul 2016 02:38:58 +0300
Message-ID: <CACKqZKtakMrxfqTHLEYjRFJNfR6dBwtNqL=AR+D=RrbuB_cxqA@mail.gmail.com>
Subject: test
From: Alexander Gerasimov <c......@gmail.com>
To: Alexander Gerasimov <c......@gmail.com>
Content-Type: text/plain; charset=UTF-8
http://surbl-org-permanent-test-point.com/
test
I'm running local DNS server and it works fine, please find my resolv.conf below:
# nameserver config
nameserver 127.0.0.1
No errors in logs, no errors from resolver.
OS: CentOS 7.2, SpamAssassin 3.4.0-2 from "base" repo.
Other DNS-based tests run ok at the same time: SPF, DKIM. Please advise.