milter as a logging tool
am 07.01.2008 08:01:47 von wschow
Dear all,
I wanna know if any milter exists for logging messages'
headers and size in file format. For example,
Date=2008-01-07|Time=12:09:08|Queue-id=xxxxxx|From=|To="",To=...,To=...|Bcc=...|Cc=...|Subject="XXXXX"|Size=1024
Therefore I can check everything easily.
Thank you very much.
--
Johnson Chow
Re: milter as a logging tool
am 07.01.2008 10:11:54 von lewis.bergman
On Jan 7, 1:01 am, "Mr. Chow Wing Siu"
wrote:
> I wanna know if any milter exists for logging messages'
> headers and size in file format. For example,
>
> Date=2008-01-07|Time=12:09:08|Queue-id=xxxxxx|From=|To="",To=...,To=...|Bcc=...|Cc=...|Subject="XXXXX"|Size=1024
>
> Therefore I can check everything easily.
I think there are two that could help. I don't know what OS you use so
take that into consideration. The first seems a little bit of an
overkill but it will do what you want.
http://www.mimedefang.org/kwiki/index.cgi?MdsyslogDocumentat ion
The second would require more work but without all the overhead.
milter-cli from snert.com would let you use bash-syslog or the logger
program available in bsd and linux. You might have to define the vars
for the milter in the m4 to pass it what you want it to log. Don't
really know abot that part.
Re: milter as a logging tool
am 07.01.2008 16:34:24 von Bill Cole
In article ,
"Mr. Chow Wing Siu" wrote:
> Dear all,
>
> I wanna know if any milter exists for logging messages'
> headers and size in file format. For example,
>
> Date=2008-01-07|Time=12:09:08|Queue-id=xxxxxx|From=|To="
> com>",To=...,To=...|Bcc=...|Cc=...|Subject="XXXXX"|Size=1024
>
> Therefore I can check everything easily.
Look at MIMEDefang: http://www.mimedefang.org
Because it gives you hooks into the Milter at each phase of the mail
transaction and a couple of different ways to log anything you want to
log (or really, do anything Perl can do...) it can handle what you want
as long as you can write a trivial amount of Perl.
--
Now where did I hide that website...