Exim reference

I currently know very little about Exim, but I've had to deal with it so I've dumped some notes here for future reference.

  • exim -bp ⇒ show queue entries (like mailq for sendmail)
  • exim -bpc ⇒ no of emails currently mail queue have
  • exim -M email-id ⇒ Force delivery of one message
  • exim -qf ⇒ Force another queue run
  • exim -qff ⇒ Force another queue run and attempt to flush the frozen messages
  • exim -Mvl messageID ⇒ View the log for the message
  • exim -Mvb messageID ⇒ View the body of the message
  • exim -Mvh messageID ⇒ View the header of the message
  • exim -Mrm messageID ⇒ Remove message without sending any error message
  • exim -Mg messageID ⇒ Giveup and fail message to bounce the message to the Sender

Other tricks:

# How many Frozen mails on the queue
exim -bpr | grep frozen | wc -l

# Deleting all frozen messages
exim -bpr | grep frozen | awk {'print $3'} | xargs exim -Mrm 

# find top 20 destinations for delivery in the queue
exim -bp | exiqsumm -c | head -n 20

Q0010: Exim puts for <address> in the Received: headers of some, but not all, messages. Is this a bug?

A0010: No. It is deliberate. Exim inserts a ``for'' phrase only if the incoming message has precisely one recipient. If there is more than one recipient, nothing is inserted. The reason for this is that not all recipients appear in the To: or Cc: headers, and it is considered a breach of privacy to expose such recipients to the others. A common case is when a message has come from a mailing list.

Q0012: Exim is unable to route to any remote domains. It doesn't seen to be able to access the DNS.

A0012: Try running exim -d+resolver -bt <remote address>. The -d options turns on debugging output, and the addition of +resolver will make it show the resolver queries it is building and the results of its DNS queries. If it appears unable to contact any name servers, check the contents and permissions of /etc/resolv.conf.

 
linux/exim.txt · Last modified: 2010/02/26 10:45 (external edit)
 
Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki