PDA

View Full Version : A few notes on Exim Commands



DnaJinx
07-21-2009, 10:43 AM
It may be useful to someone, sometimes the queded mail list gets gigantic because of some spammer and other emails that aren't spam could get deleted when using cPanel to control it.

The better solution would obviously be to prevent spammers of sending all those mails, if you know a better solution on cPanel 11 please share it with me.

==== REMOVE MAILS BY ID ====

/usr/sbin/exim -v -Mrm (MAIL ID HERE)

==== LIST QUEDED MAILS ====

/usr/sbin/exim -bp

==== OUTPUT NUMBER OF QUEDED MAILS ====

/usr/sbin/exim -bpc

==== DELETE FROZEN MAILS ====

/usr/sbin/exim -bp | awk '$6~"frozen" { print $3 }' | xargs exim -Mrm

==== DELIVER FORCEFULLY EMAILS ====

/usr/sbin/exim -qff -v -C /etc/exim.conf &

==== FREEZE MAILS FROM SENDER ====

/usr/sbin/exiqgrep -i -f (MAIL ADDRESS HERE) | xargs exim -Mf

==== REMOVE MAILS FROM SENDER ====

/usr/sbin/exiqgrep -i -f (MAIL ADDRESS HERE) | xargs exim -Mrm

thewebhostingdi
08-07-2009, 04:39 PM
I am using ConfigServer Mail Queues plugin to manage email queue of my server. It contains many useful features to control queue messages like Deleting frozen (undeliverable) emails, Deleting bounce emails etc. Please check following URL to get full list:

http://www.configserver.com/cp/cmq.html

Thanks!

RH1
08-07-2009, 05:36 PM
Looks interesting, thanks thewebhostingdi