Exim Log Files
Exim logs to three locations:
•/var/log/exim_mainlog
•/var/log/exim_paniclog
•/var/log/exim_rejectlog
The Exim Queue
•There is just a single collection of messages awaiting delivery, each of which may have several recipients.
•You can list the messages on the queue by running the command: exim -bp
•The message-IDs that Exim uses to refer to messages in its queue are mixed-case alpha-numeric, and take the form of: XXXXXX-YYYYYY-ZZ Most commands related to managing the queue and logging use these message-ids.
• /var/spool/exim/msglog
Files contain logging information for each message and are named the same as the message-id.
• /var/spool/exim/input
Files are named after the message-id, plus a suffix denoting whether it is the envelope header (-H) or message data (-D).
Note: These directories may contain further hashed subdirectories to deal with larger mail queues, so don’t expect everything to always appear directly in the top /var/spool/exim/input or /var/spool/exim/msglog directories; any searches or greps will need to be recursive.
Some Exim Queue Commands
• exim -bpc
Print a count of msgs on the queue
• exim -bp
Print a listing oft the msgs on the queue
• exim -bp | exiqsumm
Print a summary of messages in the queue
• exiwhat
Print what exim is doing
exim -M emailID – force delivery of one message
exim -Mvl messageID – View Log for message
exim -Mvb messageID – View Body for message
exim -Mvh messageID – View Header for message
exim -Mrm messageID – ReMove message (no errors sent)
exiqgrep -zi | xargs exim -Mrm – Remove all frozen mails in q
Exim logs to three locations:
•/var/log/exim_mainlog
•/var/log/exim_paniclog
•/var/log/exim_rejectlog
The Exim Queue
•There is just a single collection of messages awaiting delivery, each of which may have several recipients.
•You can list the messages on the queue by running the command: exim -bp
•The message-IDs that Exim uses to refer to messages in its queue are mixed-case alpha-numeric, and take the form of: XXXXXX-YYYYYY-ZZ Most commands related to managing the queue and logging use these message-ids.
• /var/spool/exim/msglog
Files contain logging information for each message and are named the same as the message-id.
• /var/spool/exim/input
Files are named after the message-id, plus a suffix denoting whether it is the envelope header (-H) or message data (-D).
Note: These directories may contain further hashed subdirectories to deal with larger mail queues, so don’t expect everything to always appear directly in the top /var/spool/exim/input or /var/spool/exim/msglog directories; any searches or greps will need to be recursive.
Some Exim Queue Commands
• exim -bpc
Print a count of msgs on the queue
• exim -bp
Print a listing oft the msgs on the queue
• exim -bp | exiqsumm
Print a summary of messages in the queue
• exiwhat
Print what exim is doing
exim -M emailID – force delivery of one message
exim -Mvl messageID – View Log for message
exim -Mvb messageID – View Body for message
exim -Mvh messageID – View Header for message
exim -Mrm messageID – ReMove message (no errors sent)
exiqgrep -zi | xargs exim -Mrm – Remove all frozen mails in q