Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Next revision Both sides next revision
mail:exim-management [2010-10-14 22:39:05]
shaun.reitan Approved
mail:exim-management [2013-03-22 22:55:06]
shaun.reitan [Queue Management]
Line 5: Line 5:
  
 Start/Stop/Restart Exim Start/Stop/Restart Exim
-<code console>/etc/init.d/exim start|stop|restart</code>+<sxh bash>/etc/init.d/exim start|stop|restart</sxh>
  
 Print what Exim is doing right now Print what Exim is doing right now
-<code console>exiwhat</code>+<sxh bash>exiwhat</sxh>
  
 Test how exim will route a given email address Test how exim will route a given email address
-<code console>exim -bt email@address.tld</code>+<sxh bash>exim -bt email@address.tld</sxh>
  
 Generate and display Exim stats from a logfile Generate and display Exim stats from a logfile
-<code console>eximstats /path/to/exim_mainlog</code>+<sxh bash>eximstats /path/to/exim_mainlog</sxh>
  
 Run a pretend SMTP transaction from the command line, as if it were coming from the given IP address. This will display Exim’s checks, ACLs, and filters as they are applied. Replace x.x.x.x with the IP you want to use as the source Run a pretend SMTP transaction from the command line, as if it were coming from the given IP address. This will display Exim’s checks, ACLs, and filters as they are applied. Replace x.x.x.x with the IP you want to use as the source
  
-<code console>exim -bh x.x.x.x</code>+<sxh bash>exim -bh x.x.x.x</sxh>
  
 Display all of Exim’s configuration settings Display all of Exim’s configuration settings
  
-<code console>exim -bP</code>+<sxh bash>exim -bP</sxh>
  
 ==== Queue Information ==== ==== Queue Information ====
  
 Print a count of messages in the queue Print a count of messages in the queue
-<code console>exim -bpc</code>+<sxh bash>exim -bpc</sxh>
  
 Print a listing of the messages in the queue (time queued, size, message-id, sender, recipient) Print a listing of the messages in the queue (time queued, size, message-id, sender, recipient)
-<code console>exim -bp</code>+<sxh bash>exim -bp</sxh>
  
 Print a summary of messages in the queue (count, volume, oldest, newest, domain, and totals) Print a summary of messages in the queue (count, volume, oldest, newest, domain, and totals)
-<code console>exim -bp | exiqsumm</code>+<sxh bash>exim -bp | exiqsumm</sxh>
  
 ==== Searching the Queue ==== ==== Searching the Queue ====
Line 39: Line 39:
 Search the queue for messages from a specific sender Search the queue for messages from a specific sender
  
-<code console>exiqgrep -f [user]@domain</code>+<sxh bash>exiqgrep -f [user]@domain</sxh>
  
 Search the queue for messages for a specific recipient/domain Search the queue for messages for a specific recipient/domain
  
-<code console>exiqgrep -r [user]@domain</code>+<sxh bash>exiqgrep -r [user]@domain</sxh>
  
 Print just the message-id as a result of one of the above two searches Print just the message-id as a result of one of the above two searches
  
-<code console>exiqgrep -i [ -r | -f ] ...</code>+<sxh bash>exiqgrep -i [ -r | -f ] ...</sxh>
  
 Print a count of messages matching one of the above searches Print a count of messages matching one of the above searches
  
-<code console>exiqgrep -c [ -r | -f ] ...</code>+<sxh bash>exiqgrep -c [ -r | -f ] ...</sxh>
  
 Print just the message-id of the entire queue Print just the message-id of the entire queue
  
-<code console>exiqgrep -i</code>+<sxh bash>exiqgrep -i</sxh>
  
 ==== Viewing Messages In The Queue ==== ==== Viewing Messages In The Queue ====
Line 61: Line 61:
 View a message's headers: View a message's headers:
  
-<code console>exim -Mvh <message-id></code>+<sxh bash>exim -Mvh <message-id></sxh>
  
 View a message's body: View a message's body:
  
-<code console>exim -Mvb <message-id></code>+<sxh bash>exim -Mvb <message-id></sxh>
  
 View a message's logs: View a message's logs:
  
-<code console>exim -Mvl <message-id></code>+<sxh bash>exim -Mvl <message-id></sxh>
  
 ==== Queue Management ==== ==== Queue Management ====
  
 Start a queue run Start a queue run
-<code console>exim -q -v</code>+<sxh bash>exim -q -v</sxh>
  
 Start a queue run for just local deliveries Start a queue run for just local deliveries
-<code console>exim -ql -v</code>+<sxh bash>exim -ql -v</sxh>
  
 Remove a message from the queue Remove a message from the queue
-<code console>exim -Mrm <message-id></code>+<sxh bash>exim -Mrm <message-id></sxh>
  
 Remove all messages older than X seconds from the queue(for example 5 days would be 432000 seconds) Remove all messages older than X seconds from the queue(for example 5 days would be 432000 seconds)
-<code console>exiqgrep -o 432000 -i | xargs exim -Mrm</code>+<sxh bash>exiqgrep -o 432000 -i | xargs exim -Mrm</sxh>
  
 Freeze all queued mail from a sender Freeze all queued mail from a sender
-<code console>exiqgrep -i -f email@address.tld | xargs exim -Mf</code>+<sxh bash>exiqgrep -i -f email@address.tld | xargs exim -Mf</sxh>
  
 View a queued message's header View a queued message's header
-<code console>exim -Mvh <message-id></code>+<sxh bash>exim -Mvh <message-id></sxh>
  
 View a queued message's body View a queued message's body
-<code console>exim -Mvb <message-id></code>+<sxh bash>exim -Mvb <message-id></sxh>
  
 View a queued message's log View a queued message's log
-<code console>exim -Mvl <message-id></code>+<sxh bash>exim -Mvl <message-id></sxh>
  
-Remove all messages from the queue (usually a bad idea) +Remove all messages from the queue (usually a bad idea), note the -P25 switch passed to xargs.  This option tells xargs to run 25 concurrent exim removal processes. 
-<code console>exiqgrep -i | xargs exim -Mrm </code>+<sxh bash>exiqgrep -i | xargs -P25 exim -Mrm </sxh>
  
  
 {{tag>how-to exim smx}} {{tag>how-to exim smx}}