Home
| Calendar
| Mail Lists
| List Archives
| Desktop SIG
| Hardware Hacking SIG
Wiki | Flickr | PicasaWeb | Video | Maps & Directions | Installfests | Keysignings Linux Cafe | Meeting Notes | Linux Links | Bling | About BLU |
On Thu, Feb 5, 2009 at 8:56 AM, Jerry Feldman <gaf-mNDKBlG2WHs at public.gmane.org> wrote: > What I'm looking for is a tool that would make it easier to analyze the > sendmail logs. I actually wrote a tool a few years ago to remove elements > from the mailq based on a search criteria. What I might want to do is to > set up a query where I want to see emails send to foo-+RB1Aph5k6s at public.gmane.org between > Date:time and present, sent by alist-YHpwi2ejnU4 at public.gmane.org Most of the time, when I look > at the logs, I see that the email has been sent (eg stat=sent) and I can > tell the recipient that it went to his ISP. With postscript I could > generally do this using a few greps: > sudo grep 'to=<some.person at someISP' /var/log/maillog | grep "^Feb 3" | > grep "from=<alist-mNDKBlG2WHs at public.gmane.org' > > But, on sendmail, since the to and from are in different log messages, it is > more difficult. Attached is a script I wrote a couple years ago to search a maillog file (or stdin) for all messages from a given envelope address, and pretty-print them. -- John Abreau / Executive Director, Boston Linux & Unix GnuPG KeyID: 0xD5C7B5D9 / Email: abreauj-Re5JQEeQqe8AvxtiuMwx3w at public.gmane.org GnuPG FP: 72 FB 39 4F 3C 3B D6 5B E0 C8 5A 6E F1 2C BE 99
BLU is a member of BostonUserGroups | |
We also thank MIT for the use of their facilities. |