Re: [Exim] Newbie questions..

Páxina inicial
Borrar esta mensaxe
Responder a esta mensaxe
Autor: Steve Campbell
Data:  
Para: Brian
CC: exim-users
Asunto: Re: [Exim] Newbie questions..
Brian,

Newer versions of eximstats will count the occurrences of specified patterns by use of the '-pattern' option. Eg:

eximstats   -pattern "DNS Block" /dnsbl/      mainlog


However, you will get an overall failure unless one valid received or sent line is found. If you're not afraid of editing the code, you can remove this check by finding and deleting the code block :

if ($begin eq "9999-99-99 99:99:99") {
print "**** No valid log lines read\n";
exit 1;
}

Alternatively, echo a valid log line onto the end of the log before you parse it :-)

Steve Campbell

--