On Wed, Oct 03, 2001 at 02:26:24PM +0800, Ronald Warner wrote:
> how do i remove emails in the mailq for postfix?
>
if you're not following the snapshots you have to come up with a script.
mine is like this which i find fast:
#!/bin/sh
cd /var/spool/postfix
find deferred -name $1 -print | sed 1q | xargs rm
i just named it "rmq" and placed it in "/usr/local/bin". now everytime
i need to delete a queue i just type "rmq <q-id>". it's a pain though
deleting many queues as you have to specify them one by one but, hey, it
does what it's supposed to do.
--
"GUIs normally make it simple to accomplish simple actions and impossible
to accomplish complex actions." --Doug Gwyn (22/Jun/91 in comp.unix.wizards)
PGP signature