Tag Archives: mailserver

Exim – list of useful commands

I put together a small list of useful commands for Exim mail server, needless to say that i am using this commands on a day-to-day basis.

exim -bp – Shows exim mail queue
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 emails in queue
exiqgrep -i -f '<example@example.com>' | xargs exim -Mrm – Delete the emails from that address
exiqgrep -i -o 172000 | xargs exim -Mrm – Delete the emails which were not delivered 2-3days
exim -bpc – Show emails number in queue
exim -d -bt your@email.com – To see where exim is delivering (resolving the mail) login to your server
exim -bpru |awk '{print $3}' | xargs -n 1 -P 40 exim -v -M – This will force the queue and will run multiple instances along