Skip to content

Instantly share code, notes, and snippets.

@airtonzanon
Last active October 25, 2016 11:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save airtonzanon/e5c18e19d7406c68b745c7569312f942 to your computer and use it in GitHub Desktop.
Save airtonzanon/e5c18e19d7406c68b745c7569312f942 to your computer and use it in GitHub Desktop.
Some Exim Commands

Some Exim Commands

  • exim -bp or mailq - List queue
  • exim -bpc - Count e-mails in queue
  • exim -qff - Force try to send queue, even freeze e-mails (if you use -qf, just try to send queue without freeze e-mails)
  • exiqgrep -i -z | xargs exim -Mrm - Remove all freeze e-mails from queue - if you use without -z, you can remove all e-mails from queue
  • exim -Mrm message-id - Remove a message from queue
  • exim -Mvh message-id - View a message's header
  • exim -Mvb message-id - View a message's body
  • exim -v -M message-id - Try to send again some message
  • exim -bP - Show all Exim's configurations
  • exim -bh 0.0.0.0 - Change 0.0.0.0 to some IP and verify if it's avaliable to send e-mail with SMTP (It'll verify if can or can't trust in this server)

Log

  • tail -f /var/log/exim4/mainlog - Watch exim mainlog (with all things, queue, rejects, etc...)
  • tail -f /var/log/exim4/rejectlog - Watch exim rejectlog (just rejects)
  • tail -f /var/log/exim4/paniclog - Watch exim paniclog (just things that happened with exim server)
  • exigrep message-id /var/log/exim4/mainlog or exim -Mvl message-id - Verify the log about this message (can you get the id on exim -bp it'll look like "1bxA6l-0001fT-Ly")
  • eximstats /var/log/exim4/mainlog | less - Here you can get the status about delivered messages

Tips

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment