SBDavid
May 7th, 2010
May 7th, 2010
Managing an Exim 4 server
Managing an Exim 4 server.
Remove mails by ID.
/usr/sbin/exim -v -Mrm (MAIL ID HERE)
List queded mails.
/usr/sbin/exim -bp
Output the number of queded mails.
/usr/sbin/exim -bpc
Delete frozen mails.
/usr/sbin/exim -bp | awk ‘$6~”frozen” { print $3 }’ | xargs exim -Mrm
Deliver forcefully emails.
/usr/sbin/exim -qff -v -C /etc/exim.conf &
Freeze Mails from the sender.
/usr/sbin/exiqgrep -i -f (MAIL ADDRESS HERE) | xargs exim -Mf
Remove mails from the sender.
/usr/sbin/exiqgrep -i -f (MAIL ADDRESS HERE) | xargs exim -Mrm
Files in /var/spool/exim/msglog contain logging information for each message and are named the same as the message-id.
Exim includes a utility that is quite nice for grepping through the queue, called exiqgrep.
http://www.exim.org/exim-html-4.50/doc/html/spec_49.html#IX2895
Reference: http://www.exim.org/