[Eisfair] E1: Umstellung auf SSL-Mail

Marcus Roeckrath marcus.roeckrath at gmx.de
Mi Nov 27 23:11:06 CET 2013


Hallo Holger,

Holger Bruenjes wrote:

>> Ich bekam heute mittag plötzlich Fingerprint-Errors bei der Mailabholung.
> 
> hmm, woran merkst Du das denn, dass mal keine Mail kommt, kommt ja vor.

Bei mir läuft halbstündlich ein Check der mich entsprechend warnt:

fetchmail: pop.gmx.net fingerprints do not match!
fetchmail: pop.gmx.net fingerprints do not match!
fetchmail: pop.gmx.net fingerprints do not match!
fetchmail: pop.gmx.net fingerprints do not match!

Das Script sieht so aus:

#!/bin/sh

tail -n 40 /var/log/fetchmail.log | grep 'fingerprints do not match!'

if [ $? = 0 ] ; then
     ( echo "From: root <root at eis>"
       echo "Subject: fetchmail: fingerprint mismatch"
     ) | /usr/lib/sendmail postmaster at eis
fi

socket_errors=`tail -n 40 /var/log/fetchmail.log | grep 'socket error' | wc
-l`
socket_log=`grep -B 2 'socket error' /var/log/fetchmail.log`

if [ $socket_errors -gt 3 ] ; then
     ( echo "From: root < root at eis>"
       echo "Subject: fetchmail: socket error"
       echo "$socket_log"
     ) | /usr/lib/sendmail postmaster at eis
fi

-- 
Gruss Marcus


Mehr Informationen über die Mailingliste Eisfair