Hello all,
Recently, I checked the smtp log files of my qmailtoaster server, and found
millions of the following error message written to the smtp log:
spamdyke[4875]: ERROR: unable to read from SSL/TLS stream: A protocol or
library failure occurred, error:140800FF:lib(20):func(128):reason(255)
I restarted the mail-related services (qmailctl stop && qmailctl start), and
the errors stopped. I thought it was a fluke, since I had never seen this in
the decade+ I've been managing this server. However, a few days later, I found
the same thing. Again, I restarted and the errors stopped.
The really weird thing is that all the errors that were logged (~ 2.8 million
lines) occurred over 34 seconds (from 2020-06-25 03:47:58 to 2020-06-25
03:48:36)! I'd guess that only *one* error occurred (memory error?
buffer-overrun?) which somehow caused an infinite loop of logging.
Although the last logged error was at 2020-06-25 03:48:36, I didn't discover
the issue until 2020-06-25 04:10, which means there was at least a 20 minute
delay between when the log line was time-stamped and when the line was finally
added to the log, perhaps caused by IO constraints).
So there's a couple issues I'm worried about:
1. why did spamdyke get stuck in an infinite loop?
2. what caused this error in the first place?
Versions:
OpenSSL 1.0.1e-fips 11 Feb 2013
spamdyke 4.3.1+TLS+CONFIGTEST+DEBUG+EXCESSIVE
Spamdyke is executed via the /var/qmail/supervise/smtp/run file:
QMAILDUID=`id -u vpopmail`
NOFILESGID=`id -g vpopmail`
MAXSMTPD=`cat /var/qmail/control/concurrencyincoming`
SPAMDYKE="/usr/bin/spamdyke"
SPAMDYKE_CONF="/etc/spamdyke.conf"
SMTPD="/var/qmail/bin/qmail-smtpd"
TCP_CDB="/etc/tcprules.d/tcp.smtp.cdb"
HOSTNAME=`hostname`
VCHKPW="/home/vpopmail/bin/vchkpw"
REQUIRE_AUTH=0
exec /usr/bin/softlimit -m 99000000 \
/usr/bin/tcpserver -R -l $HOSTNAME -x $TCP_CDB -c "$MAXSMTPD" \
-u "$QMAILDUID" -g "$NOFILESGID" 0 smtp \
$SPAMDYKE --config-file $SPAMDYKE_CONF \
$SMTPD $VCHKPW /bin/true 2>&1
Thanks!
_______________________________________________
spamdyke-users mailing list
[email protected]
https://spamdyke.org/mailman/listinfo/spamdyke-users