Many messages from MAILER-DAEMON@example.com is stuck on the queue

Follow

Comments

2 comments

  • Avatar
    TorbenH

    First thing is that postqueue -f alone would not work as cron.
    So use

    • /usr/sbin/postqueue -f

    instead.

    Second thing, I would recommend to use the following script, because "postsuper -d ALL" would delete ALL messages from the queue, not only the ones from mailer-deamon:

    • mailq|gawk '/MAILER-DAEMON/ { print $1 }'|/usr/sbin/postsuper -d -

    This removes only the unwanted mails from queue.

    0
    Comment actions Permalink
  • Avatar
    Anton Maslov

    @TorbenH Thank you a lot for the hints! The article was updated. 

    0
    Comment actions Permalink

Please sign in to leave a comment.

Have more questions? Submit a request