Quarantined email testing/troubleshooting
Julian Field
MailScanner at ecs.soton.ac.uk
Fri Jan 23 21:39:14 GMT 2009
On 23/1/09 18:44, Scott Silva wrote:
> on 1-22-2009 8:50 AM Julian Field spake the following:
>
>> You can't just use df and/or qf files as if they were RFC822 messages.
>> They're not.
>> However, they *nearly* are, when used as a pair.
>> Many years ago (2002 is the date stamp on the file) I wrote a script
>> which would take an entire quarantine directory (or a string of
>> directory names) full of qf* and df* files, and generate an mbox file
>> from them, which could then be simply fed to sa-learn with 1 command to
>> learn the whole lot at one go by using the "--mbox" command-line option
>> to sa-learn.
>> It's at
>> www.mailscanner.info/files/4/df2mbox
>> It's a fairly simple shell script, I'm sure you can hack it around if
>> you want to do something slightly different with it.
>>
>> Usage example:
>> Say you have a quarantine directory
>> /var/spool/MailScanner/quarantine/<date-here> and each of those
>> <date-here> subdirectories contains a whole bunch of qf and df files in
>> the same directory. You can just do
>> cd /var/spool/MailSanner/quarantine
>> df2mbox *
>> and it will go and get on with it, and give you a pile of mbox files as
>> a result.
>>
>>
> The requested URL /files/4/df2mbox was not found on this server.
>
>
Drop the "4/", sorry.
Jules
--
Julian Field MEng CITP CEng
www.MailScanner.info
Buy the MailScanner book at www.MailScanner.info/store
MailScanner customisation, or any advanced system administration help?
Contact me at Jules at Jules.FM
PGP footprint: EE81 D763 3DB0 0BFD E1DC 7222 11F6 5947 1415 B654
PGP public key: http://www.jules.fm/julesfm.asc
--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
More information about the MailScanner
mailing list