[prev in list] [next in list] [prev in thread] [next in thread] 

List:       debian-user
Subject:    Re: mail filtering techniques
From:       Mike Werner <reznaeous () earthlink ! net>
Date:       2000-01-31 20:25:16
[Download RAW message or body]

On Mon, Jan 31, 2000 at 07:59:36AM +0200, Johann Spies wrote:
> On Sun, 30 Jan 2000, Phillip Deackes wrote:
> 
> > I used to use procmail to deliver mail, but I prefer the Exim approach.
> 
> Thanks for the information on your .forward file.  I also use procmail at
> the moment.  In my setup I can use the following script to produce a list
> of all the email I have received today:
> 
> grep "`date \"+ %a %b %e\"`" ~/.procmail/log | nl
> 
> Does filtering with exim produce a logfile that I can use for the same
> purpose?

exim does indeed log mail that it transfers - both incoming as well
as outgoing.  In that log, it tells where it put incoming mail.  Here's
a sample from my log (warning: this will not wrap very nicely):

2000-01-31 15:18:16 12FNH6-0000Kj-00 <= debian-user-request@lists.debian.org \
H=localhost [127.0.0.1] U=mike P=esmtp S=1695 id=y1LvV.A.SUH.Oxel4@murphy 2000-01-31 \
15:18:17 12FNH6-0000Kj-00 => /home/mike/Mail/debian-user <mike@localhost> \
D=userforward T=address_file 2000-01-31 15:18:17 12FNH6-0000Kj-00 Completed
2000-01-31 15:18:18 12FNH7-0000Kj-00 <= RA8147@co.richmond.ga.us H=localhost \
[127.0.0.1] U=mike P=esmtp S=2043 \
id=32F2DEF23C7FD31181A700508B44A98E3E9EA0@mail.co.richmond.ga.us 2000-01-31 15:18:18 \
12FNH7-0000Kj-00 => /home/mike/Mail/suzuki-l <mike@localhost> D=userforward \
T=address_file 2000-01-31 15:18:18 12FNH7-0000Kj-00 Completed
2000-01-31 15:18:20 12FNH9-0000Kj-00 <= suzuki-bikes-admin@lomond.pro-libertate.com \
H=localhost [127.0.0.1] U=mike P=esmtp S=4934 \
id=4.2.0.58.20000131121052.00b3ee70@illyana.qualcomm.com 2000-01-31 15:18:20 \
12FNH9-0000Kj-00 => /home/mike/Mail/suzuki-bikes <mike@localhost> D=userforward \
T=address_file 2000-01-31 15:18:20 12FNH9-0000Kj-00 Completed

The symbol <= says who it is from, the => says where exim decided to put
that message.  It looks like your script should work with some minor
changes.  I'm really not sure, but the information that gets logged
might be configurable to some point.  I haven't dug into exim's docs
quite that deeply yet.
-- 
Mike Werner  KA8YSD           |  "Where do you want to go today?"
ICQ# 12934898                 |  "As far from Redmond as possible!"
'91 GS500E                    |
Morgantown WV                 |  Only dead fish go with the flow.


-- 
Unsubscribe?  mail -s unsubscribe debian-user-request@lists.debian.org < /dev/null


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic