Thử thêm cái coi lào
May 30

exim commands

Hello. I want to share some helpful exim commands for large mailservers:

1. froze messages to recipient root@host.localhost.com

/usr/sbin/exiqgrep -i -r root@host.localhost.com | /usr/bin/xargs exim -Mf

2. delete frozen messages

/usr/sbin/exiqgrep -z -i | /usr/bin/xargs exim -Mrm

3. delete messages older than X hours (X in seconds)

/usr/sbin/exiqgrep -o X -i | /usr/bin/xargs exim -Mrm

4. total messages in queue

/usr/sbin/exiqgrep | /usr/sbin/exiqsumm | grep TOTAL

For other very useful commands, please visit: http://www.skillett.com/index.php/258/hands-on-with-an-exim-cheatsheet. Thanks Keiron.