Archiving non-spam

Kevin Miller Kevin_Miller at ci.juneau.ak.us
Mon May 21 18:17:59 IST 2007


I've been toying with the idea of archiving incoming mail (non-spam).
My MailScanner box is just a gateway and forwards non-spam on to our
Exchange server.  I've been thinking it would be a good idea to have it
store inbound non-spam for a couple weeks to a month, in case the
Exchange server goes south for some reason.  That way, no mail would be
lost between the time of the last backup and the time of the last rites
(and whenever Exchange gets restored).  I've got a couple questions on
doing so though.  

Right now, the Archive Mail setting is as follows:
 #Archive Mail = /var/spool/MailScanner/archive
 Archive Mail =

Will mail be archived if I simply uncomment the path (and, of course,
comment out the null path)? Or will I have to add the store command in
the Non Spam actions?

Is /var/spool/MailScanner/archive the default and doesn't need to be
uncommented or must it be explicitly set?

The comment in the Non Spam Actions says
 "#  store       - store the message in the quarantine"
 
Is the word "quarantine" a copy/paste carry over from the Spam Actions
comments?  Or will the messages be stored in quarantine?  I'd expect
they'd end up in /var/spool/MailScanner/archive.

I've been quarantining spam for some time, and was looking at the
messages in there and noticed that the headers and body were combined -
they weren't in sendmail format.  I expect that archived mail will be
stored the same way.  I can easily release a quarantined message with
MailWatch w/o having to worry about the storage format but I'm not not
sure how to do the same with archived mail.  I was hoping I could just
move all the messages back to /var/spool/mqueue.in but since they're not
in df/qf format I doubt that will work.  How does one get them back in
sendmail format.  Mostly I'd be doing this in a batch - i.e., thousands
of messages, not one or two at a time.

Finally, the quarantined messages are stored in directories named by
date (i.e. 20070521) - will archive do the same thing or will I have to
use the _DATE_ string?  Any issues with modifying the
/etc/cron.daily/clean.quarantine script to get rid of archives older
than X days?

Thanks much...

...Kevin
-- 
Kevin Miller                Registered Linux User No: 307357
CBJ MIS Dept.               Network Systems Admin., Mail Admin.
155 South Seward Street     ph: (907) 586-0242
Juneau, Alaska 99801        fax: (907 586-4500
 


More information about the MailScanner mailing list