Hi,

I get a panic in my logs:
postfix/master[22933]: daemon started -- version 3.2.2, configuration /etc/postfix
postfix/postscreen[22945]: CONNECT from [A.B.C.D]:XXXXX to [E.F.G.H]:25
postfix/dnsblog[22947]: panic: dns_query: bad length -1 (h_errno=Unknown error 0) postfix/dnsblog[22946]: panic: dns_query: bad length -1 (h_errno=Unknown error 0) postfix/master[22933]: warning: process /libexec/postfix/dnsblog pid 22947 killed by signal 6 postfix/master[22933]: warning: /libexec/postfix/dnsblog: bad command startup -- throttling postfix/master[22933]: warning: process /libexec/postfix/dnsblog pid 22946 killed by signal 6
postfix/postscreen[22945]: PASS OLD [A.B.C.D]:XXXXX

The system is:
$ uname -a
FreeBSD foo.triaxx.org 11.1-RELEASE-p4 FreeBSD 11.1-RELEASE-p4 #0: Tue Nov 14 06:12:40 UTC 2017 r...@amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC amd64

postconf -M gives the following:
smtp       inet  n       -       n       -       1       postscreen
smtpd      pass  -       -       n       -       -       smtpd
submission inet  n       -       n       -       1       smtpd
pickup     unix  n       -       n       60      1       pickup
cleanup    unix  n       -       n       -       0       cleanup
qmgr       unix  n       -       n       300     1       qmgr
tlsmgr     unix  -       -       n       1000?   1       tlsmgr
tlsproxy   unix  -       -       n       -       0       tlsproxy
dnsblog    unix  -       -       n       -       0       dnsblog
rewrite    unix  -       -       n       -       -       trivial-rewrite
bounce     unix  -       -       n       -       0       bounce
defer      unix  -       -       n       -       0       bounce
trace      unix  -       -       n       -       0       bounce
verify     unix  -       -       n       -       1       verify
flush      unix  n       -       n       1000?   0       flush
proxymap   unix  -       -       n       -       -       proxymap
proxywrite unix  -       -       n       -       1       proxymap
smtp       unix  -       -       n       -       -       smtp
relay      unix  -       -       n       -       -       smtp
showq      unix  n       -       n       -       -       showq
error      unix  -       -       n       -       -       error
retry      unix  -       -       n       -       -       error
discard    unix  -       -       n       -       -       discard
local      unix  -       n       n       -       -       local
virtual    unix  -       n       n       -       -       virtual
lmtp       unix  -       -       n       -       -       lmtp
anvil      unix  -       -       n       -       1       anvil
scache     unix  -       -       n       -       1       scache

The main.cf line that causes this message is:
postscreen_dnsbl_sites = zen.spamhaus.org, b.barracudacentral.org

The problem also occurs with 3.2.4. Since I can read this comment, I suppose a bug:
    /*
* Future proofing. If this reaches the panic call, then some code change
     * introduced a bug.
     */
    if (len < 0)
  msg_panic("dns_query: bad length %d (h_errno=%s)",
      len, dns_strerror(h_errno));

Reply via email to