Re: [Exim] Newbie questions..

Page principale
Supprimer ce message
Répondre à ce message
Auteur: Steve Campbell
Date:  
À: Brian
CC: exim-users
Sujet: 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

--