Differences
This shows you the differences between two versions of the page.
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/ | Start/ | ||
- | <code console># / | + | <sxh bash>/ |
Print what Exim is doing right now | Print what Exim is doing right now | ||
- | <code console># exiwhat</ | + | <sxh bash> |
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</ | + | <sxh bash>exim -bt email@address.tld</ |
Generate and display Exim stats from a logfile | Generate and display Exim stats from a logfile | ||
- | <code console># eximstats / | + | <sxh bash> |
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</ | + | <sxh bash>exim -bh x.x.x.x</ |
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</ | + | <sxh bash>exim -bp | exiqsumm</ |
==== 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</ | + | <sxh bash> |
Search the queue for messages for a specific recipient/ | Search the queue for messages for a specific recipient/ | ||
- | <code console># exiqgrep -r [user]@domain</ | + | <sxh bash> |
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> |
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> |
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> |
==== Viewing Messages In The Queue ==== | ==== Viewing Messages In The Queue ==== | ||
Line 61: | Line 61: | ||
View a message' | View a message' | ||
- | <code console># exim -Mvh < | + | <sxh bash>exim -Mvh < |
View a message' | View a message' | ||
- | <code console># exim -Mvb < | + | <sxh bash>exim -Mvb < |
View a message' | View a message' | ||
- | <code console># exim -Mvl < | + | <sxh bash>exim -Mvl < |
==== 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 < | + | <sxh bash>exim -Mrm < |
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> |
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> |
View a queued message' | View a queued message' | ||
- | <code console># exim -Mvh < | + | <sxh bash>exim -Mvh < |
View a queued message' | View a queued message' | ||
- | <code console># exim -Mvb < | + | <sxh bash>exim -Mvb < |
View a queued message' | View a queued message' | ||
- | <code console># exim -Mvl < | + | <sxh bash>exim -Mvl < |
- | 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. |
- | <code console># exiqgrep -i | xargs exim -Mrm </code> | + | <sxh bash> |
{{tag> | {{tag> |