[Mimedefang] MIMEDefang 2.28

Jason Englander jason at englanders.cc
Mon Dec 23 13:50:02 EST 2002

On Fri, 20 Dec 2002, Brad Dameron wrote:

> debug mode but there is just too much debugging information. Is there a way
> to enable just partial debugging? Or maybe log the debugging to a seperate
> file?

Hopefully by now you figured it out, but if not...

If you use a "normal" syslogd, you could send everything sent to syslog's
mail facility at the debug priority to a file (not just MIMEDefang, but
anything else that uses that) with something like this:

mail.=debug		/var/log/mail.debug

but I'd use syslog-ng instead.  With it you can tell it to log
everything from a certain program to a file and that sort of thing.
I use a filter like this with it to pull out md_log() logs for graphdefang
to parse through that instead of the whole /var/log/(messages|maillog).

filter mdlog { program(mimedefang.pl) and match("MDLOG"); };
destination mdlog { file("/var/log/mdlog"); };
log { source(local); filter(mdlog); destination(mdlog); };


Jason Englander <jason at englanders.cc>
394F 7E02 C105 7268 777A  3F5A 0AC0 C618 0675 80CA

More information about the MIMEDefang mailing list