To print a count of the messages in the queue
root@localhost# exim -bpc
Print a listing of the messages in the queue (time queued, size, message-id, sender, recipient)
root@localhost# exim -bp
Print a summary of messages in the queue (count, volume, oldest, newest, domain, and totals):
root@localhost# exim -bp | exiqsumm
Generate and display Exim stats from a logfile:
root@localhost# eximstats /var/log/exim_mainlog
Same as above, with less verbose output:
root@localhost# eximstats -ne -nr -nt /var/log/exim_mainlog
Same as above, for one particular day:
root@localhost# fgrep YYYY-MM-DD /var/log/exim_mainlog | eximstats
Print what Exim is doing right now:
root@localhost# exiwhat
Searching the queue
Search the queue for messages from a specific sender:
root@localhost# exiqgrep -f [luser]@domain
Search the queue for messages for a specific recipient/domain:
root@localhost# exiqgrep -r [luser]@domain
To Print just the message-id of the entire queue:
root@localhost# exiqgrep -i
Managing the queue
Start a queue run:
root@localhost# exim -q -v
Start a queue run for just local deliveries:
root@localhost# exim -ql -v
Remove a message from the queue:
root@localhost# exim -Mrm
Freeze a message:
root@localhost# exim -Mf
Deliver a specific message:
root@localhost# exim -M
Force a message to fail and bounce:
root@localhost# exim -Mg
Remove all frozen messages:
root@localhost# exiqgrep -z -i | xargs exim -Mrm
Freeze all queued mail from a given sender:
root@localhost# exiqgrep -i -f luser@example.tld | xargs exim -Mf
View a message’s headers:
root@localhost# exim -Mvh
View a message’s body:
root@localhost# exim -Mvb
View a message’s logs:
root@localhost# exim -Mvl
No comments:
Post a Comment