Re: [Exim] Newbie questions..

Página superior
Eliminar este mensaje
Responder a este mensaje
Autor: Steve Campbell
Fecha:  
A: 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

--