Skip to content

Instantly share code, notes, and snippets.

@iammart
Last active September 30, 2020 19:55
Show Gist options
  • Select an option

  • Save iammart/5620189 to your computer and use it in GitHub Desktop.

Select an option

Save iammart/5620189 to your computer and use it in GitHub Desktop.
Mountain Lion Server
// Flush mail queue
$ sudo postfix flush
// Delete everything in the mail queue
$ sudo postsuper -d ALL
// See what's in the mail queue
$ sudo postqueue -p
// Stop mail
$ sudo serveradmin stop mail
// Start mail
$ sudo serveradmin start mail
// Restart the Server locally (-r to restart, 'now' or hhmm)
$ shutdown -r now
// Restart the Server remotely with ssh
$ ssh -l root server shutdown -r now
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment