How to Delete Exim Email For A Particular User From Mail Server Queue
Q. I’m using Fedora 7 server with exim pre installed by someone else. How do I delete email for a particular user from exim queue (like user@dom.com)?
A. Exim is a mail transfer agent (MTA) used on Unix-like operating systems. It is freely available under the GNU GPL and it aims to be a general and flexible mailer with extensive facilities for checking incoming e-mail.
Task Delete email for a particular user
By default the exim mail queue is located at /var/spool/exim/input directory. To delete email for a particular user called vivek@nixcraft.co.in, enter:
# exiqgrep -ir email@domain.com | xargs exim -Mrm
# exiqgrep -ir vivek@nixcraft.co.in | xargs exim -Mrm
Updated for accuracy.
E-mail this to a friend
Printable version
Related Other Helpful FAQs:
- Access Linux mail server from windows XP
- Qmail delivering mail ~/Mailbox home directories
- Force sendmail to route mail to specific hosts or mailserver
- Configure sendmail as a smart host
- Sending mail with Perl mail script
Discussion on This FAQ
Leave a Reply
We encourage your comments, and suggestions. But please stay on topic, be polite, and avoid spam. Thank you very much for stopping by our site!
Tags: exim mail server, exiqgrep command, input directory, mail queue, mail transfer agent, UNIX, xargs command




March 15th, 2008 at 4:23 am
wow, manually deleting the files from the spool can lead to issues…
exim has tools for these kind of tasks (exiqgrep for instance).
here’s what i would use to remove all messages addressed to an email address:
#exiqgrep -ir email@domain.com | xargs exim -Mrm
March 17th, 2008 at 6:23 pm
Thanks, the faq has been updated.