prikaz date-prosim o pomoc otazka na postfix

Jaroslav Votruba jaroslav.votruba at keytec.cz
Mon Aug 6 14:40:42 CEST 2007


cim vic se snazim neco vykoumat z manu ,tim min tomu rozumim.Cilem je 
dostat do promenne datum v tomto formatu
Aug  6


dale prosim o pomoc ohledne postfixu.Kde bych v postfixu zjistil ,jake 
hlasky se tvori do logu pro jednotlive odmitnuti
napr pro
blokaci dle rbl listu je zaznam v logu

Aug  6 14:33:27 postak postfix/smtpd[92012]: NOQUEUE: reject: RCPT from 
chello21                                                                             
3047247251.tirol.surfer.at[213.47.247.251]: 554 Service unavailable; 
Client 
host                                                                              
[213.47.247.251] blocked using cbl.abuseat.org; Blocked - see 
http://cbl.abusea                                                                             
t.org/lookup.cgi?ip=213.47.247.251; from=<LXCCFG at hotmail.com> 
to=<pavel.xxxx@        
                                                                    
keytec.cz> proto=SMTP helo=<3D308810>



jde mi o to jake jine rejecty mohou byt(User unknown in virtual mailbox 
table;  a jine).

chci si napsat script na nejake statistiky


tohle je jen takovej zacatek

#!/bin/sh

(cat  /var/log/maillog ; bzcat /var/log/maillog.[1-6].bz2) > /tmp/$$

grep blocked /tmp/$$ \
| awk -F blocked\ using '{print $2}' |  awk -F \; '{print $1}' \
| sort | uniq -c

echo "-------------------------------"
echo -n "Chybejici zaznam v DNS"
grep "cannot find your hostname" /tmp/$$ | wc -l

echo "-------------------------------"
echo -n "Neznamy uzivatel "
grep "User unknown " /tmp/$$ | wc -l
echo "-------------------------------"

rm  /tmp/$$



-- 
s pozdravem
Votruba Jaroslav
tel: 389002504
mailto:jaroslav.votruba at keytec.cz  



More information about the Users-l mailing list