To delete email for a particular user use shell pipes. By default the exim mail queue is located at /var/spool/exim/input directory. To delete email for a particular user called mayur@test.com, enter:# exiqgrep -ir email@domain.com | xargs exim -Mrm
# exiqgrep -ir mayur@test.com | xargs exim -Mrm
To delete frozen mails from amil queue.
exim -bpr | grep frozen | awk {'print $3'} | xargs exim -Mrm
0 comments:
Post a Comment