<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=US-ASCII">
<META content="MSHTML 6.00.2800.1226" name=GENERATOR></HEAD>
<BODY>
<DIV>> mv /var/spool/mqueue.in/* /var/spool/mqueue</DIV>
<DIV><SPAN class=632151319-03092003>> </SPAN>sh: line 1: /bin/mv: Argument
list too long</DIV>
<DIV><FONT face=Arial color=#0000ff size=2></FONT> </DIV>
<DIV><SPAN class=632151319-03092003><FONT face=Arial color=#0000ff size=2>That
just means there are two many files in the directory to do them all at once -
the "*" is getting expanded to all the filenames. Try this
instead:</FONT></SPAN></DIV>
<DIV><SPAN class=632151319-03092003><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=632151319-03092003><FONT face="Courier New" color=#800080
size=2>for file in `find /var/spool/mqueue.in -type f`;</FONT></SPAN></DIV>
<DIV><SPAN class=632151319-03092003><FONT face="Courier New" color=#800080
size=2>do</FONT></SPAN></DIV>
<DIV><SPAN class=632151319-03092003><FONT face="Courier New"><FONT
color=#800080> <FONT size=2>mv $file
/var/spool/mqueue</FONT></FONT></FONT></SPAN></DIV>
<DIV><SPAN class=632151319-03092003><FONT face="Courier New" color=#800080
size=2>done</FONT></SPAN></DIV>
<DIV><SPAN class=632151319-03092003><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=632151319-03092003><FONT face=Arial color=#0000ff size=2>Be
sure you get the quotes right aound the find command - they're "backticks", ie
backwards apostrophes, not double-quotes or apostrophes.</FONT></SPAN></DIV>
<BLOCKQUOTE
style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #0000ff 2px solid">
<DIV class=OutlookMessageHeader dir=ltr align=left><FONT face=Tahoma
size=2>-----Original Message-----<BR><B>From:</B> lester lasad
[mailto:llasad1@YAHOO.COM]<BR><B>Sent:</B> Wednesday, September 03, 2003 3:50
AM<BR><B>To:</B> MAILSCANNER@JISCMAIL.AC.UK<BR><B>Subject:</B> Re: Mail Not
Routing, stuck in /var/spool/mqueue.in<BR><BR></FONT></DIV>
<DIV><BR><BR><B><I>"Spicer, Kevin" <Kevin.Spicer@BMRB.CO.UK></I></B>
wrote:
<BLOCKQUOTE class=replbq
style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #1010ff 2px solid">
<P>Which queue?<BR><BR>All are in the mqueue.in<BR><BR>As I said, if you're
happy to bypass MailScanner to get the mail delivered follow the
instructions below.</P>
<P>Tried running your commands and received the following:</P><SPAN
class=026590108-03092003><FONT face=Arial color=#0000ff size=2><B><FONT
face="Courier New" color=#000000>
<P>> service MailScanner stop</P></B>
<P>Shutting down MailScanner daemons:</P>
<P>MailScanner: [ OK ]</P>
<P>incoming sendmail: [ OK ]</P>
<P>outgoing sendmail: [ OK ]</P><B>
<P>> mv /var/spool/mqueue.in/* /var/spool/mqueue</P>
<P></B>sh: line 1: /bin/mv: Argument list too long</P>
<P></FONT></FONT></SPAN><BR><BR><BR>> <BR>> "Spicer, Kevin"
<KEVIN.SPICER@BMRB.CO.UK>wrote:<BR>> Can you confirm whether email had
completely stopped, or whether<BR>> MailScanner just wasn't keeping up
with the queue? <BR>> <BR>> If you want to bypass MailScanner to clear
the backlog... (assuming<BR>> RedHat syntax) <BR>> <BR>> service
MailScanner stop [wait for all MailScanner<BR>> processes to disappear
after running this before moving on] mv<BR>> /var/spool/mqueue.in/*
/var/spool/mqueue service MailScanner start <BR>> [restart Mailscanner
toprocess any newly arriving messages, see if it<BR>> copes] sendmail -q
<BR>> <BR>> [this last command will take a very long time to complete
as it will<BR>> attempt to deliver each mesasge in the queue, with your
backlog this<BR>> could be a considerable period of time]
<BR><BR><BR><BR>BMRB International <BR>http://www.bmrb.co.uk<BR>+44 (0)20
8566
5000<BR>_________________________________________________________________<BR>This
message (and any attachment) is intended only for the <BR>recipient and may
contain confidential and/or privileged <BR>material. If you have received
this in error, please contact the <BR>sender and delete this message
immediately. Disclosure, copying <BR>or other action taken in respect of
this email or in <BR>reliance on it is prohibited. BMRB International
Limited <BR>accepts no liability in relation to any personal emails, or
<BR>content of any email which does not directly relate to our
<BR>business.</P></BLOCKQUOTE></DIV>
<P>
<HR SIZE=1>
Do you Yahoo!?<BR><A
href="http://us.rd.yahoo.com/evt=10469/*http://sitebuilder.yahoo.com">Yahoo!
SiteBuilder</A> - Free, easy-to-use web site design
software</BLOCKQUOTE></BODY></HTML>