Reprocessing quarantined messages
Michael Sauvola
msauvola at nwls.lib.wi.us
Thu Nov 29 22:29:10 GMT 2012
OK, so using your suggestions, I have a script like this:
MESSAGES= “ qARJ0a8W011130 qARJ0j88K673043 etc... “
for each message in $MESSAGES
do
sendmail -toi < /var/spool/MailScanner/quarantine/20121127/${message}/message
done
exit 0
When I run it, I get errors:
line 182: syntax error near unexpected token `message’
line 182: `for each message in $MESSAGES’
Mike
From: Kevin Miller
Sent: Thursday, November 29, 2012 3:28 PM
To: 'MailScanner discussion'
Subject: RE: Reprocessing quarantined messages
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
Sent: Thursday, November 29, 2012 2:05 PM
To: MailScanner discussion
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
202 595-7760 ext: 601
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, and is
believed to be clean.
--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
--------------------------------------------------------------------------------
--
MailScanner mailing list
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, and is
believed to be clean.
--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
--------------------------------------------------------------------------------
--
MailScanner mailing list
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 Northern Waters MailScanner, and is
believed to be clean.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.mailscanner.info/pipermail/mailscanner/attachments/20121129/29ccf2a9/attachment.html
More information about the MailScanner
mailing list