OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
 
Queue cleanup script?

From: Anders Norrbring (listsnorrbring.se)
Date: Wed Mar 08 2006 - 07:04:33 CST


Hello all!

Can someone please help me with a cleanup script for the Postfix queue?
I run version 2.1.1.

The "problem" I have is the buildup of undeliverable mail in the queue
and I'm sick of deleting them manually.

I've made some googling on the subject, but can't find anything really
useful. So, any tips would be welcome..

The stuff I want to get rid of are messages flagged such as these:

8F19B58081 2649 Tue Mar 7 05:08:05 MAILER-DAEMON (Host or domain name
not found. Name service error for name=gklhk.www-mailserver.com type=MX:
Host not found, try again) dilgergklhk.www-mailserver.com

6EB39CC0A 2538 Wed Mar 8 06:23:46 MAILER-DAEMON (connect to
exalumnos.com[204.228.229.168]: Connection refused) obermanexalumnos.com

8E976580AF 2559 Mon Mar 6 14:04:51 MAILER-DAEMON (connect to
mashoor.net[69.36.184.220]: server dropped connection without sending
the initial SMTP greeting) xrkhwpzmwormashoor.net

--
Anders Norrbring
Norrbring Consulting