Skip to content

Instantly share code, notes, and snippets.

@ipascual
Last active April 23, 2019 13:35
Show Gist options
  • Save ipascual/199b596c11c50766aa48 to your computer and use it in GitHub Desktop.
Save ipascual/199b596c11c50766aa48 to your computer and use it in GitHub Desktop.
Unix - Postfix - Sendmail
# List queue
postqueue -p
# Send queue
postqueue -f
# OR
sendmail -q
# Delete queue
postsuper -d ALL
postsuper -d ID
# Send Email
echo "body of your email" | mail -s "This is a Subject" -a "From: no-reply@example.com" test@example.com
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment