Hello,
I found the message in my logs. It turns they where triggered by a
housekeeping script.
I did "qshape deferred" and used the first row (domainname) as
argument to pfqgrep -r
For long domainnames qshape shorten the output and prefix the domain
with a '+' character.
(described in man qshape, -w option)
Now my script called pfqgrep -r "+truncated-domain" which trigger the
panic message sometimes
# pfqgrep -r '+12345678901'
Quantifier follows nothing in regex; marked by <-- HERE in m/+ <--
HERE 12345678901/ at /usr/sbin/pfqgrep line 158, <MAILQ> chunk 1.
# pfqgrep -r '+123456789012'
Quantifier follows nothing in regex; marked by <-- HERE in m/+ <--
HERE 123456789012/ at /usr/sbin/pfqgrep line 158, <MAILQ> chunk 1.
# pfqgrep -r '+1234567890123'
Quantifier follows nothing in regex; marked by <-- HERE in m/+ <--
HERE 1234567890123/ at /usr/sbin/pfqgrep line 158, <MAILQ> chunk 1.
postqueue: panic: vbuf_print: output for '%s' exceeds space 0
# pfqgrep -r '+12345678901234'
Quantifier follows nothing in regex; marked by <-- HERE in m/+ <--
HERE 12345678901234/ at /usr/sbin/pfqgrep line 158, <MAILQ> chunk 1.
# pfqgrep -r '+123456789012345'
Quantifier follows nothing in regex; marked by <-- HERE in m/+ <--
HERE 123456789012345/ at /usr/sbin/pfqgrep line 158, <MAILQ> chunk 1.
postqueue: panic: vbuf_print: output for '%s' exceeds space 0
# pfqgrep -r '+1234567890123456'
Quantifier follows nothing in regex; marked by <-- HERE in m/+ <--
HERE 1234567890123456/ at /usr/sbin/pfqgrep line 158, <MAILQ> chunk 1.
postqueue: panic: vbuf_print: output for '%s' exceeds space 0
# pfqgrep -r '+12345678901234567'
Quantifier follows nothing in regex; marked by <-- HERE in m/+ <--
HERE 12345678901234567/ at /usr/sbin/pfqgrep line 158, <MAILQ> chunk 1.
# pfqgrep -r '+123456789012345678'
Quantifier follows nothing in regex; marked by <-- HERE in m/+ <--
HERE 123456789012345678/ at /usr/sbin/pfqgrep line 158, <MAILQ> chunk 1.
I'm Unsure what's the really wrong part (beside input santisation in
my script) but I guess, postqueue should not panic...
The messages went away after I changed my script to call "qshape -w
100". This avoid domainname truncation for now.
Is there a safe way to avoid truncation completely?
postfix-3.2.0 is installed on the host.
pfqgrep is loaded from
https://github.com/mikewaters/scripts/blob/master/mta/pfgrep.pl
Andreas