Monitoring/Security of Exim



Monitoring/Security of Exim



Monitoring/Security of Exim 

[Picture 6.  pic/mta-ube.png]

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

——————————————————

8. Delete mails for particular domain which is largest email sender you got by previous step (4):

[root@server~]# exiqgrep -i -r domainname.com | xargs exim -Mrm

——————————————————

9. Number of emails sent by perticular domain greping by date:

[root@server~]# grep “Sept 18″ /var/log/exim_mainlog | grep domainname.com | wc -l

——————————————————

10. Get the content of an email by message id:

[root@server~]# exim -Mvb messageid

——————————————————

11. Force delivery of single email:

[root@server~]# exim -M email-id

——————————————————

12. Delete particular message id:

[root@server~]# exim -Mg messageid

——————————————————

13. Delete the entire mail queue:

[root@server~]# exim -bpru | awk {‘print $3′} | xargs exim -Mrm

——————————————————

14. Check all mails by username:

[root@server~]# exigrep -u username /var/log/exim_mainlog

——————————————————

15. View an email’s header:

[root@server~]# exim -Mvh message-id

——————————————————

16. View an email’s body:

[root@server~]# exim -Mvb message-id

——————————————————

17. Deliver all emails in mailqueue forcefully:

[root@server~]# exiqgrep -i | xargs exim -M






FEED






Share










SUPPORT

















VISIT COUNTER !!








ROHIT PATEL