1.1 --- a/docs/wiki/MailIntegration--MTA Wed Apr 20 16:13:29 2016 +0200
1.2 +++ b/docs/wiki/MailIntegration--MTA Wed Apr 20 17:02:37 2016 +0200
1.3 @@ -77,3 +77,32 @@
1.4 mailserver:example.com
1.5 }}}
1.6 }}}}
1.7 +
1.8 +== Useful Commands ==
1.9 +
1.10 +The following commands prove useful when troubleshooting and appear to be
1.11 +available as shown within a Debian environment.
1.12 +
1.13 +{{{#!table
1.14 +'''Task''' || '''Exim''' || '''Postfix'''
1.15 +==
1.16 +Check the mail queue
1.17 +||<colspan="2"> `mailq`
1.18 +==
1.19 +Process the mail queue
1.20 +|| `sendmail -q` (or `exim -q` or `runq`)
1.21 +|| `sendmail -q` (or `postqueue`)
1.22 +==
1.23 +Flush the mail queue
1.24 +|| `exim -qff`
1.25 +|| `postqueue -f`
1.26 +==
1.27 +Deliver a specific message
1.28 +|| `exim -M <identifier>`
1.29 +|| `postqueue -i <identifier>`
1.30 +==
1.31 +Test delivery for an address
1.32 +||<colspan="2"> `sendmail -bt <address>` (see also `sendmail -v -bv <address>` and `sendmail -v -bvs <address>`)
1.33 +}}}
1.34 +
1.35 +See [[http://bradthemad.org/tech/notes/exim_cheatsheet.php|Exim Cheatsheet]] and [[http://www.postfix.org/DEBUG_README.html|Postfix Debugging Howto]] for more guidance.