postalserver / postal

📮 A fully featured open source mail delivery platform for incoming & outgoing e-mail
https://postalserver.io
MIT License
14.96k stars 1.07k forks source link

Remove Held messages, not release or re-add them to queue #469

Closed influenist closed 5 years ago

influenist commented 6 years ago

Hi, As disucesed in https://github.com/atech/postal/issues/239 https://github.com/atech/postal/issues/257 https://github.com/atech/postal/issues/256

There are options to reapply the held messages to the queue. But how to remove them? Or better from a particular sender if there was a smtp flood? I now have a held queue of 10000 mails to non existing user due to incorrect smtp client connection which flooded the root user mails. In exim I would do smth like this:

exiqgrep -i -f root@localhost | xargs exim -Mrm

willpower232 commented 6 years ago

If a message is held, it will not be sent until it is manually released.

You can leave the messages in the system and they will be filtered out by the passage of time.

teoxrr commented 10 months ago

Hello, we've about 1000 messages held, nevere cleaned by the system. How can we delete all at once?

"You can leave the messages in the system and they will be filtered out by the passage of time." Seems not true