Advertisement
theitd

EXIM cheatsheet

Oct 17th, 2016
261
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.00 KB | None | 0 0
  1. # Here are some useful exim commands.  They\'re useful if you have an overloaded queue and need to clear it out, or find out why the messages are being piled up.
  2.  
  3. exim -M id      #Try to send the message with id id
  4.  
  5. exim -qf       #Tell exim to process the entire queue again
  6. exim -qff      #same as qf, but it will flush the frozen messages
  7.  
  8. exim -Mvl id    #view the message log for message id
  9. exim -Mvh id    #view message id's headers
  10. exim -Mvb id    #view message id's body
  11. exim -Mrm id    #remove message id from the queue
  12. exim -Mg id     #fail and send a bounce to the sender
  13. exim -bp | exiqsumm    #Print summary of the messages in the queue
  14. exiwhat        #show what exim is doing right now
  15. exim -bpc      #show number of messages in the queue
  16. exim -bp       #print list of messages in the queue
  17.  
  18. # The manual way to remove the entire queue is as follows
  19. cd /var/spool
  20. mv exim exim.old
  21. mkdir -p exim/input
  22. mkdir -p exim/msglog
  23. mkdir -p exim/db
  24. chown -R mail:mail exim
  25.  
  26. Then restart exim.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement