Qmail has been my MTA of choice now for many years. It's fast, small and very secure.
Sometimes it may be desirable to delete all items from qmali's mail queue. The safest way to clean the outbound queue in qmail is to trick qmail into thinking the messages have been around for too long, so it'll give up and discard the messages. This can be done using find in conjunction with touch:
1
|
|
Once we've touched the messages we then need to signal qmail to re-run the queue :
1
|
|
Keep an eye on /var/log/maillog to check the progress:
1
|
|
And that's it!