Reprocessing quarantined messages

Kevin Miller Kevin_Miller at ci.juneau.ak.us
Thu Nov 29 21:28:32 GMT 2012


Just "ls" the directory, and output it to a text file.  I forget the syntax but you can specify the characters to keep, tossing the rest (date, permissions, etc.) and keeping the filename.  You could then paste that into the script or redirect it in from the cli...

 ...Kevin
--
Kevin Miller
Network/email Administrator, CBJ MIS Dept.
155 South Seward Street
Juneau, Alaska 99801
Phone: (907) 586-0242, Fax: (907) 586-4500
Registered Linux User No: 307357
From: mailscanner-bounces at lists.mailscanner.info [mailto:mailscanner-bounces at lists.mailscanner.info] On Behalf Of Michael Sauvola
Sent: Thursday, November 29, 2012 12:16 PM
To: MailScanner discussion
Subject: Re: Reprocessing quarantined messages

Stephan,

You mean I would have to type in all 4046 directories named qARJ0a8W011130, qARJ0j88K673043, etc... for this to work? Yikes!

Mike

From: Stephen Swaney<mailto:steve at fsl.com>
Sent: Thursday, November 29, 2012 2:05 PM
To: MailScanner discussion<mailto:mailscanner at lists.mailscanner.info>
Subject: Re: Reprocessing quarantined messages

Michael,

If you are using sendmail,  you could create a script something like:

---------------------cut start -------------------------
!# /bin/bash

MESSAGES="/qARJ0a8W011130
qARJ0j88K673043
qARJ0j88K673043"

for each message in $MESSAGES
do
    sendmail -toi < /var/spool/MailScanner/quarantine/20121127/${message}/message
done

exit 0
--------------------cut end----------------------


Best regards,

Steve
--
Steve Swaney
steve at fsl.com<mailto:steve at fsl.com>
202 595-7760 ext: 601
www.fsl.com<http://www.fsl.com>
The most accurate and cost effective anti-spam solutions available



On 11/29/12 1:33 PM, Michael Sauvola wrote:
Hi all,

Due to my own fault, MailScanner put about 16 hours worth of messages (4026) into the quarantine.

message
                                                                            /qARJ0Cr8W02980/message
                                                                            /qARJ0j88K673043/message and so on...

I fixed my goof-up, and mail is now flowing through normally.

How can I re-send/reprocess the 4026 messages through MailScanner?

Mike



--
This message has been scanned for viruses and
dangerous content by MailScanner<http://www.mailscanner.info/>, and is
believed to be clean.



--
This message has been scanned for viruses and
dangerous content by MailScanner<http://www.mailscanner.info/>, and is
believed to be clean.
________________________________
--
MailScanner mailing list
mailscanner at lists.mailscanner.info<mailto:mailscanner at lists.mailscanner.info>
http://lists.mailscanner.info/mailman/listinfo/mailscanner

Before posting, read http://wiki.mailscanner.info/posting

Support MailScanner development - buy the book off the website!

--
This message has been scanned for viruses and
dangerous content by MailScanner<http://www.mailscanner.info/>, and is
believed to be clean.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.mailscanner.info/pipermail/mailscanner/attachments/20121129/74d4d461/attachment.html 


More information about the MailScanner mailing list