Skip to content

Exim

Exim

  • Exim Logs

  • => This indicates a successful message delivery.

  • <= message arrival

  • (= message fakereject

  • => normal message delivery

  • -> additional address in same delivery

  • >> cutthrough message delivery

  • *> delivery suppressed by -N

  • ** delivery failed; address bounced

  • == delivery deferred; temporary problem

  • R= assigned router.

  • ** T= assigned transport. **

Configuration Documentation

Configurations

Documentation

  • Attempts to send the message that matches the input ID.

Command Examples

exim -M <mailID>
  • This will process the entire exim queue again. Adding an additional f (-qff) will force frozen messages as well.

exim -qf

  • This is using the mail command, but it runs the debugger, so that you can see any snags along the way.
exim -odf <recipient>
  • This will print the total count of queue messages. This number should be low. If it's high, it needs to be investigated.
exim -bpc

-This summarizes the queue for you

exiqsumm
  • This extracts statistics from the log

    eximstats
    
  • This will check acceptance from a given IP address to the mail server

exim_checkaccess
  • Remove all messages from exim mail queue
exim -bp | awk '/^ *[0-9]+[mhd]/{print "exim -Mrm " $3}' | bash
  • Show emails sent from past hour
    grep '<=' /var/log/exim_mainlog | grep "$(date --date='1 hour ago' '+%Y-%m-%d %H')"
    
awk -v d1="$(date --date='1 hour ago' '+%Y-%m-%d %H:%M:%S')" \
    '$0 > d1 && /<=/ {print}' /var/log/exim_mainlog
awk -v d="$(date --date='1 hour ago' '+%b %_d %H')" '$0 ~ d && /<=/' /var/log/exim_mainlog