Difference between revisions of "Useful CLI Commands"

From Roaring Penguin
Jump to: navigation, search
Line 1: Line 1:
 
Force a mailqueue run to a specific domain, e.g. example.com. The -v will generate verbose reporting.
 
Force a mailqueue run to a specific domain, e.g. example.com. The -v will generate verbose reporting.
 
   sendmail -v -qRexample.com
 
   sendmail -v -qRexample.com
Watch the end of the current log file.
+
Watch the end of the current mail log file.
 
   tail -f /var/log/mail-daily/current.log
 
   tail -f /var/log/mail-daily/current.log
 
<div style="float:right; clear:both; margin-right:0.5em">[[Support Wiki | [Home]]]</div>
 
<div style="float:right; clear:both; margin-right:0.5em">[[Support Wiki | [Home]]]</div>
 
[[category:All]][[category:Troubleshooting]]
 
[[category:All]][[category:Troubleshooting]]

Revision as of 13:54, 20 June 2014

Force a mailqueue run to a specific domain, e.g. example.com. The -v will generate verbose reporting.

  sendmail -v -qRexample.com

Watch the end of the current mail log file.

  tail -f /var/log/mail-daily/current.log