Ad Widget

Collapse

How to empty zabbix mail queue

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Zabarj
    Junior Member
    • Jul 2016
    • 2

    #1

    How to empty zabbix mail queue

    Hi everyone,

    I have a question, we would like to empty the zabbix mail queue. But i have no idea what to do. The problem is that it keeps spamming old messages because the server had to process alot of emails. (because of wrong dependencies).

    So I would love to stop the messages who are still in the zabbix mail queue.

    When searching the forum, I only found one command "# postsuper -d ALL"
    Is it safe to execute? What does it do?

    Or does anyone have some advice how to emtpy it?
  • SBO
    Zabbix Certified Specialist
    Zabbix Certified Specialist
    • Sep 2015
    • 226

    #2
    Hi,

    I know this is a help forum, but a some effort sometimes would be nice..
    A google research would have given you the answer..

    postsuper is a postfix command.
    If you launch it without any arg :
    Code:
    postsuper: fatal: usage: postsuper [-c config_dir] [COLOR="Red"][-d queue_id (delete)][/COLOR] [-h queue_id (hold)] [-H queue_id (un-hold)] [-p (purge temporary files)] [-r queue_id (requeue)] [-s (structure fix)] [-S (redundant structure fix)][-v (verbose)] [queue...]
    -d -> delete

    So it will delete all the mails in the queue.. Which is what you asked.
    Magic !

    Comment

    • Zabarj
      Junior Member
      • Jul 2016
      • 2

      #3
      Originally posted by SBO
      Hi,

      I know this is a help forum, but a some effort sometimes would be nice..
      A google research would have given you the answer..

      postsuper is a postfix command.
      If you launch it without any arg :
      Code:
      postsuper: fatal: usage: postsuper [-c config_dir] [COLOR="Red"][-d queue_id (delete)][/COLOR] [-h queue_id (hold)] [-H queue_id (un-hold)] [-p (purge temporary files)] [-r queue_id (requeue)] [-s (structure fix)] [-S (redundant structure fix)][-v (verbose)] [queue...]
      -d -> delete

      So it will delete all the mails in the queue.. Which is what you asked.
      Magic !
      Hi,
      Thanks for your reply, I really searched my *ss of, but probably not good enough. Sorry for my n00b question.
      But thanks for your help and quick reply!

      Comment

      • SBO
        Zabbix Certified Specialist
        Zabbix Certified Specialist
        • Sep 2015
        • 226

        #4
        You're welcome Hope it helped to resolve your issue.

        Comment

        Working...