Tuesday, 22 January 2013

Some useful postfix commands

Intro

This is a partial list of useful commands related to postfix/sendmail for my own reference. It's posted here in case anyone else finds this useful, too.

Commands

  • List stuff in the mail queue:
    mailq

  • Read a message in the mail queue with example id 012345678F:
    postcat -q 012345678F

  • Delete a message in the mail queue with example id 012345678F:
    postsuper -d 012345678F

  • Delete ALL messages in the mail queue (warning - no confirmation nor undo!):
    postsuper -d ALL

No comments:

Post a Comment