Exim cheatsheet
Print a count of the messages in the queue
exim -bpcPrint a listing of the messages in the queue (time queued, size, message-id, sender, recipient)
exim -bpPrint a summary of messages in the queue (count, volume, oldest, newest, domain, and totals)
exim -bp | exiqsummRemove all frozen messages in queue
exim -bpr | grep frozen | awk {'print $3'} | xargs exim -MrmRemove all mails that has a certains string in it
grep -lr 'search string' /var/spool/exim/input/ | sed -e 's/^.*\/\([a-zA-Z0-9-]*\)-[DH]$/\1/g' | xargs exim -Mrm
Remove mails with more than 10 recipients
exipick -i '$recipients_count > 10' | xargs exim -MrmView a message's log
exim -Mvl <message-id>Remove all mails in queue
exim -bp | awk '/^ *[0-9]+[mhd]/{print "exim -Mrm " $3}' | bashRemove all mails sent from nobody
for i in `exim -bpr | grep nobody | awk {'print $3'}`; do exim -Mrm $i; doneGet list of scripts which sends out mails
for i in `exim -bp | awk '{print $3}' | sort | uniq `; do exim -Mvh $i | grep "X-PHP-Script"; done | awk '{print $3}' | sort | uniqFind the authenticated user involved in mails in queue
for i in `exim -bp | awk '{print $3}' | sort | uniq `; do exim -Mvh $i | grep "auth"; doneCheck out more on
http://bradthemad.org/tech/notes/exim_cheatsheet.php
hello!
ReplyDeletelinux server
myblog: http://phanmem99.blogspot.com