[Mimedefang] enabling razor tests & re-constituting mail from the spool directory

Jason Englander jason at englanders.cc
Mon Apr 28 14:43:01 EDT 2003

On Mon, 28 Apr 2003, Rich Stanton wrote:

> the razor, DCC tests etc I had to ad the line $SALocalTestsOnly = 0; into
> my filter.  I'm using the default filter - where would this line go?  I
> know it would go in among the spamassassin stuff, but I'm not sure where
> exactly - could someone help me out?

Actually it would not go there...  It doesn't really matter what line you
put it on, but it needs to be outside of any subroutines.  Anywhere above
"sub filter_bad_filename ($) {" near the top would be fine.

> Secondly, certain emails are quarantined in the /var/spool directory.  I
> know I can view the 'ENTIREMESSAGE' file in a text editor, but what is the
> easiest way of getting at (eg) attachments, or sending the quarantined
> message off to another email account for viewing?

Look in /var/spool/MIMEDefang/qdir-* you'll see the attachments in there
(in the same directory as ENTIRE_MESSAGE).  And you can always use
utilities like uudeview, metamail, etc. to save attachments to a "normal"
form with their suggested filename.

To resend a quarantined message (can someone please add this to the
mimedefang.org faq (because I'll forget to)):

sendmail -oi -Am -f `cat SENDER` `cat RECIPIENTS` < ENTIRE_MESSAGE

Just make sure that copy doesn't get quarantined too.  It definitely won't
if you, for example, tell MD to not scan mail relayed by


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

More information about the MIMEDefang mailing list