Tonino Greco <[EMAIL PROTECTED]> writes:

  Is there a way of viewing the e-mail queue??

As others have mentioned, qmail-queue and qmail-stat.  Somewhere
(qmail's unofficial web page?) there something that you can use to
provide a "mailq"-like interface.

Run tcpserver as

tcpserver -u U -g G -H -R 127.0.0.1 20025 qmail-qread &

(replace U and G with qmails's uid and gid)

Create /usr/bin/mailq (or wherever you want to place it) with

#!/bin/sh

exec /usr/local/bin/tcpclient -RHl0 -- 127.0.0.1 20025 sh -c 'exec cat <&6'

You're set.

You might want to do "mailq | grep -v done" to see pending deliveries.

Reply via email to