Skip to main content

Posts

Showing posts from June 11, 2012

Monitoring/Security of Exim

Monitoring/Security of Exim Monitoring/Security of Exim  1. Number of emails in the mail queue: [root@server~]# exim -bpc —————————————————— 2. Frozen mails in a Queue [root@server~]# exim -bp | grep -c frozen [root@server~]# exim -bpr | grep frozen | wc -l —————————————————— 3. Remoing all frozen messages: [root@server~]# exiqgrep -z -i | xargs exim -Mrm or [root@server~]# exim -bpru | grep “frozen” | awk {‘print $3′} | xargs exim -Mrm —————————————————— 4. Deliver forecfully emails: [root@server~]# exim -qff -v -C /etc/exim.conf & —————————————- 5. Remove mails from sender:   [root@server~]# exiqgrep -i -f (mail add here) | xargs exaim -Mrm —————————————- 6. Remove mails from Recipient: [root@server~]# exiqgrep -i -r (mail add here) | xargs exaim -Mrm —————————————- 7. Below command will display total number of emails send as well receive statistics per domain basis: [root@server~]# exim -bp | exiqsumm | sort -n