Re: How to delete Exims' queue

2002-01-05 Thread Stephen Gran
Thus spake Dave Sherohman:
 On Sat, Dec 29, 2001 at 04:00:05PM -0500, Stephen Gran wrote:
  exim -Mrm message-ID will remove from the queue.
  all from man exim.
 
 ...but the thing I've never been able to find is something that lets
 you do the equivalent of
 
 exim -Mrm *
 
 or even
 
 exim -Mrm msgid1 msgid2 msgid3...
 
 instead of having to do a separate command for each message to be
 dropped.  Have I just missed it in that huge manpage or does it
 actually not exist?
I haven't tried it, but I would think that 
ls /var/spool/exim/msglog  exim.log
exim -Mrm  exim.log
would do the trick.  The man page says that this option can take a
number of message ID's, and that's where the messages are kept.
HTH,
Steve
-- 
It's computer hardware, of course it's worth having g
-- Espy on #Debian


pgpcmZdpny16W.pgp
Description: PGP signature


Re: How to delete Exims' queue

2002-01-02 Thread Dave Sherohman
On Sat, Dec 29, 2001 at 04:00:05PM -0500, Stephen Gran wrote:
 exim -Mrm message-ID will remove from the queue.
 all from man exim.

...but the thing I've never been able to find is something that lets
you do the equivalent of

exim -Mrm *

or even

exim -Mrm msgid1 msgid2 msgid3...

instead of having to do a separate command for each message to be
dropped.  Have I just missed it in that huge manpage or does it
actually not exist?

-- 
When we reduce our own liberties to stop terrorism, the terrorists
have already won. - reverius

Innocence is no protection when governments go bad. - Tom Swiss



Re: How to delete Exims' queue

2001-12-31 Thread vincent
Hi.

Thanks a lot for your help.

Mateusz Mazur

Re: How to delete Exims' queue

2001-12-30 Thread Jijo Jose A
On Sat, Dec 29, 2001 at 11:07:29AM +0100, [EMAIL PROTECTED] wrote:
 In past my host was open relay - people from company want to snend emails 
 from home -my mistake - and a lot spammers put through my host a lot of 
 mails. When I have closed open relay a lot of frozen mails stayed in my exim 
 queue and staying there till now. Exim couldn't send them. How should I 
 delete this unwanted queue.
 
hi Mateusz Mazur
i had written a script to do this. 
u should type 'remex email -r' to delete the mail. 
i will attached it with this mail Ok.
-jijo jose
 

# remove msges from exim queue
# by jijojose ;[EMAIL PROTECTED]
if test -z mailq ; then
echo No Messages in Exim Queue -exit
exit 0
fi


if [ $1 =  ]  || [ $2 =  ]; then
echo Usage remex email_address [-p postpone] [ -r remove]
echo by [EMAIL PROTECTED]
#mailq
echo v 1.00
exit 0
fi
h=$(grep -l $1 /var/spool/exim/msglog/*|cut -b24-)
if [ ! $h =  ]; then
a=(/var/spool/exim/input/$h-H)
c=$(grep '\Subject:' $a)
if [ $2 = -p ]; then
#cat /var/spool/exim/input/$h-D
cat /var/spool/exim/input/$h-D
exit 0
fi
if [ $2 = -r ]; then
echo Remove Msg With  $c   ID  $h y/N
read a
if [ $a = y ]; then
exim -Mrm $h
echo removed
else
echo Exit
fi
fi
else
echo No such address

fi



Re: How to delete Exims' queue

2001-12-29 Thread Sam Varghese
On Sat, Dec 29, 2001 at 11:07:29AM +0100, [EMAIL PROTECTED] wrote:
 Hello.
 
 In past my host was open relay - people from 
 company want to snend emails from home -my mistake 
 - and a lot spammers put through my host a lot of mails. 
 When I have closed open relay a lot of frozen mails stayed 
 in my exim queue and staying there till now. Exim couldn't 
 send them. How should I delete this unwanted queue.

As root type mailq and you will be able to see a list of the 
messages which have been frozen.

You can delete them from /var/spool/exim/input/ (there are
two files for each message) and in /var/spool/exim/msglog/
you will find one system message for each mail which has
been frozen. These can be removed as well.

Sam
-- 
(Sam Varghese)
http://www.gnubies.com
The dogs bark but the caravan passes. - ancient Arab proverb



Re: How to delete Exims' queue

2001-12-29 Thread Stephen Gran
Thus spake [EMAIL PROTECTED]:
 Hello.
 
 In past my host was open relay - people from company want to snend emails 
 from home -my mistake - and a lot spammers put through my host a lot of 
 mails. When I have closed open relay a lot of frozen mails stayed in my exim 
 queue and staying there till now. Exim couldn't send them. How should I 
 delete this unwanted queue.
exim -bp will list the queue.
exim -M message-ID will retry delivery.
exim -Mrm message-ID will remove from the queue.
all from man exim.
HTH,
Steve
-- 
Reputation, adj.:
What others are not thinking about you.


pgpQV5A4tdx17.pgp
Description: PGP signature