Reprocessing quarantined messages

Supun Rathnayake supunr at lankacom.net
Fri Nov 30 01:21:58 GMT 2012


Hi ,

I think "each" keyword is wrong hence it has to be

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

Thanks,
Supun


On 11/30/2012 03:59 AM, Michael Sauvola wrote:
> 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 <mailto:Kevin_Miller at ci.juneau.ak.us>
> *Sent:* Thursday, November 29, 2012 3:28 PM
> *To:* 'MailScanner discussion' 
> <mailto:mailscanner at lists.mailscanner.info>
> *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 <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.
>
>
> -- 
> 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
> 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/20121130/1e623306/attachment-0001.html 


More information about the MailScanner mailing list