It is possible to manaully delete messages from the mail queue.
B693A1601A9 154654 Thu Mar 1 16:20:22 [email protected]
(connect to gmail.cm[74.125.224.168]:25: Connection timed out)
[email protected]
Would be removed by postsuper -d B693A1601A9
.
Is it possible to manually bounce messages from the mail queue?
However, what you probably mean is to force-bounce a recipient, which is the real issue, not the message.
Asked before elsewhere in 2011. After setting up Wietse's configuration below, you could
postmap
,postfix reload
, and flush the queue, forcing that recipient/message pairing to slam into the new transport rule.Wietse says:
/etc/postfix/main.cf: transport_maps = hash:/etc/postfix/transport
/etc/postfix/transport: typodomain.example error:5.1.2 Bad destination system address
No. It is not possible, as there is only minimal need of doing manual queue management. There are configuration parameters for doing it automatically: http://www.postfix.org/QSHAPE_README.html#deferred_queue and http://www.postfix.org/postconf.5.html#bounce_queue_lifetime (but remember the fatal downside of reducing bounce_queue_lifetime)
The best way would be to notify the sender about the delay and just wait until it bounces on its own: http://www.postfix.org/postconf.5.html#delay_warning_time