How to delete only emails to domain @domain.net from mail queue ?

WebHostDog

Well-Known Member
Sep 3, 2006
143
1
166
cPanel Access Level
Website Owner
How to delete only emails to domain @domain.net from mail queue ? Mean to delete emails with filter not all queue ?




Thanks.
 

Manuel_accu

Well-Known Member
Jun 19, 2005
191
0
166
Hi,

I think you need to try the below command:


exiqgrep -ir "@domaintodelete.com" | xargs -n1 exim -Mrm
and, if you are not satisfy try to seach in this forum chrispy and other guys has posted wonderful workaround of it.


thanks,