Skip to main content
Solved

Deleting old emails from the mail queue

  • July 29, 2024
  • 2 replies
  • 241 views

Forum|alt.badge.img+3

Hello team,

 

I need help in clearing the mail queue in one of our Centreon pollers. For some reason we have hundreds of old/stale mails in the queue. I use the command “mailq” to see all these old emails in the queue.

 

I need to clear or delete these old emails from the queue, but I am not sure in which folder or directory to check and clear this...also can please advise the correct comment to delete this?

 

Thank you,

Crisanto

Best answer by itoussies

Hello Crisanto 🖐🏾,

 

You can delete them with

postsuper -d queue_id

or 

postsuper -d ALL hold

to the delete all mails in the hold queue.

 

2 replies

itoussies
Centreonian
Forum|alt.badge.img+11
  • Centreonian
  • Answer
  • August 1, 2024

Hello Crisanto 🖐🏾,

 

You can delete them with

postsuper -d queue_id

or 

postsuper -d ALL hold

to the delete all mails in the hold queue.

 


Forum|alt.badge.img+3
  • Author
  • Steward **
  • August 1, 2024

Thanks a lot.

 

I used this -postsuper -d ALL

 

  • Crisanto