sendmail log script
Posted on 2002-07-26
I wanna do the following task with shell script(may be using awk or grep)
I have a huge sendmail log files(weekly rotated). So I want the shell program which will serach the sendmail logs based on toaddress, fromaddress , stat=Deferred or qued.. And also the discription like Connection refused or relay denied.. If that script have options to choose the sendmail log file or all files.
Basicly I want to know how many messages(numbers and full messages also) failed/deferred/refused/relay denied thru sendmail.