Re: deleting selected/filtered mails in sendmail queue

2005-09-15 Thread Alvin Oga


On Thu, 15 Sep 2005, [iso-8859-1] Erik Dörnbach wrote:

 Is there anything available either in sendmail itself 
 (something like sendmail [EMAIL PROTECTED], just for deleting and not
 queuerun) which I haven't found yet or some additional tools/scripts
 whatever.

i clean out the sendmail queue with

http://www.linux-sec.net/Mail/etc.mail/mqueue.clean.pl
- it shows who  sent it and where it's going

- modify it to your specs/requirements

- the assumption is that old pending mail is undeliverable and will
  just sit there indefinitely, as opposed to you deleting the mail at the
  same exact instant that sendmail is sending the outgoing mail that
  would be corrupted due to the deletion

- always restart sendmail after cleaning its queue

c ya
alvin



RE: deleting selected/filtered mails in sendmail queue

2005-09-15 Thread Erik Dörnbach
 From: Alvin Oga [mailto:[EMAIL PROTECTED]
 Sent: Thursday, September 15, 2005 2:25 PM
 
 i clean out the sendmail queue with
 
   http://www.linux-sec.net/Mail/etc.mail/mqueue.clean.pl
   - it shows who  sent it and where it's going
 
   - modify it to your specs/requirements

I'm not sure I understand correctly, what this script is supposed to do, in my 
case I have lots of currently undeliverable mails sitting in queue, but those 
still haven't timed out (on sendmail default values, 5days iirc), so even the 
bounces did now generate the 4h warning which in it self also bounce! :) 
Anyway, those mails in the queue are not just dead yet, others pending might be 
real mails, which will be delievered sooner or later.

I just wanted to scrub those out of the queue without touching other mails 
(filtered by name/domain) which are really pending because of eg. temporary 
unreachable servers.

Thanks,

Erik



RE: deleting selected/filtered mails in sendmail queue

2005-09-15 Thread Alvin Oga


On Thu, 15 Sep 2005, [iso-8859-1] Erik Dörnbach wrote:

  From: Alvin Oga [mailto:[EMAIL PROTECTED]
  Sent: Thursday, September 15, 2005 2:25 PM
  
  i clean out the sendmail queue with
  
  http://www.linux-sec.net/Mail/etc.mail/mqueue.clean.pl
  - it shows who  sent it and where it's going
  
  - modify it to your specs/requirements
 
 I'm not sure I understand correctly, what this script is supposed to do

it does what you wanted .. to clean the queue, but if you don;t speak
perl, it wont help you
- it's a minute or two to test that it works before setting
it to delete undeliverable mail .. leaving others alone

c ya
alvin