Hi,

I'm using tcpserver and supervise to run qmail.

I'm using Nick Leverton's patch to qmail-send to suspend remotedelivery. So
I write a file called holdremote with value 1 then I HUP qmail-send, causing
the remote queue to be held, so I can stop qmail-send immediately (svc -dx
...). I don't need to wait from pending queue to be sent, because if I stop
qmail-send process with pending delivery, the supervised qmail-send process
stays in "want down" status until the pending message is totally delivered.

If I want to cancel a message:
1) echo 1 > /var/qmail/control/holdremote
2) HUP on qmail-send process
3) qmail-read to check the queue and see the message number (nnn)
4) qmHandle -dnnn to delete the message (I've patched qmHandle to stop and
start qmail-send with supervise)
5) echo 0 > /var/qmail/control/holdremote
6) HUP on qmail-send process

The message is canceled and the remote delivery is normal, but I would like
to resend it during the night, how can I do this? (Ah, some user sent the
message, not me!!!)

Best regards,

Ari


Reply via email to