[Mimedefang] Re: MD-Quarantine and received by headers
Yizhar Hurwitz
yizhar at mail.com
Wed Feb 7 16:00:16 EST 2007
HI.
> > > -----Original Message-----
> > > From: Yizhar Hurwitz
> > > So I would still like to know if/how I can preserve this
> > > information in the quarantine directory, and try to do it
> > > efficiently as well by minimizing system calls from my custom filter.
>
> From: "Damrose, Mark" <mdamrose at elgin.edu>
> Here's what I do.
> action_quarantine_entire_message("Spam Score: $hits - rules matched:
> $names\nRelay: $RelayAddr");
> $qdir = get_quarantine_dir();
> md_syslog('info', "$MsgID: Quarantined in $qdir");
> open ( EXTRA, ">$qdir/EXTRA_HEADERS");
> print EXTRA synthesize_received_header();
> if ( $MessageID eq "NOQUEUE" ) {
> print EXTRA gen_msgid_header();
> }
> close EXTRA;
>
> From: "David F. Skoll" <dfs at roaringpenguin.com>
>
> MIMEDefang has a synthesize_received_header function that returns
> a header quite similar to what Sendmail *would* have added. Example
filter
> code:
>
> my $hdr = synthesize_received_header();
> my $qdir = get_quarantine_dir();
> # Now save $hdr somewhere in $qdir
Thank you both very much for the helpful answers.
David - would you consider adding something like that to the built in
"quarantine_entire_message" procedure in mimedefang.pl?
For example saving this text by default to a file named HEADERS.0 (or
RECEIVED, or whatever) in the qdir?
A built in standard filename for this info can lead to better sharing of
supporting tools and scripts that would work on different implementations,
such as "un-quarantine" script/cgi-page, quarantine management and
reporting tools, etc..
Thanks again
Yizhar
More information about the MIMEDefang
mailing list