Postfix tips

Fast and dirty parsing of /var/log/mail.log.

#!/bin/bash
cat /var/log/mail.log|grep "> -> <"|awk '{print $1," "$2," "$3," "$13," "$15," "$17}'|tr -d ','|while read p; do
  mid=$(echo $p|awk '{print $6}')
  sender=$(echo $p|awk '{print $4}')
  if [ $sender != "Message-ID:" -a $sender != "->" ]
  then
        status=$(cat /var/log/mail.log|grep $mid |grep -Eo "status=\w+")
        echo $p $status
  fi
done

It shows: date, sender, recipient, mail id, status

Oct 31 00:34:14 <noreplay@sender.com> <sibbbbl@icccon.bg> EBE5640D38 status=sent
Oct 31 00:34:24 <noreplay@sender.com> <sbbbbt@mariccc.org> 1396F40D39 status=sent
Oct 31 00:34:24 <noreplay@sender.com> <m.gbbbbieva@cccumen.bg> 3094940D3A status=sent
Oct 31 00:34:33 <noreplay@sender.com> <fibbbbi@dicccr.bg> 3957640D3B status=sent
Oct 31 00:34:34 <noreplay@sender.com> <sbbbbtli@mccc.bg> 47FE840D3C status=sent
Oct 31 00:34:43 <noreplay@sender.com> <bbbbitly@maccc.bg> 61C3440D3D status=sent
Oct 31 00:34:44 <noreplay@sender.com> <sitobbbbsi@maccc.bg> 724F340D3E status=sent

 

Daewoo Tacuma ECU

KEMSCO                                                                                                                                                             DAEWOO
1AEK

I have a problem with my Tacuma ECU. Randomly MAP sensor stalls at 115KPa. Triple checking sensor and wires shows that it works and I suspected that ADC in ECU is problematic. The easiest way to repair is to get spare ECU, read flash (AM29F200BB – chip#1) of old one and program it to new ECU.

Tacuma1 Tacuma2 Tacuma3 Tacuma4 Tacuma5 Tacuma5