Min menu

Pages

Remove All messages From the Mail Queue in exim, Remover emails from exim (Updated August 2023)


Remove All messages From the Mail Queue in exim, Remover emails from exim, remove emails from shell


Remove All messages From the Mail Queue



When you using Exim mail server under CentOS Linux or any Linux system.

How do you remove all messages from the Exim mail queue using a shell prompt with one command?


print list of messages in queue

To print a list of the messages in the queue, enter:

# exim -bpc

remove all messages from the queue

To remove a message from the queue, enter:

# exim -Mrm {message-id}

remove all messages from the queue


To remove all messages from the mail queue, enter: 

 
# exim -bp | awk '/^ *[0-9]+[mhd]/{print "exim -Mrm " $3}' | bash

I hope you now can solve this problem, also you can  know the page that sent spam emails with the following command.


 How to know the source of the spam:

# grep cwd /var/log/exim_mainlog | grep -v /var/spool | awk -F"cwd=" '{print $2}' | awk '{print $1}' | sort | uniq -c | sort -n

Remove All messages From the Mail Queue in exim, Remover emails from exim, remove emails from shell

You are now in the first article
reaction:
https://www.it-weblog.com IT weblog and IT Blog contain articles for computer, network,security ,adsense,Hosting, google,freeware download from IT blog.

Comments

15 comments
Post a Comment
  1. This blog provides useful information about new techniques and concepts.very impressive lines are given which is very attractive.
    SEO training in chennai

    ReplyDelete
  2. Those who come to read your article will find lots of helpful and informative tips.
    HBS Case Studies Solutions

    ReplyDelete
  3. Pretty article! I found some useful information in your blog, it was awesome to read, thanks for sharing this great content to my vision, keep sharing.
    Regards,'
    Best PMP Training in Chennai

    ReplyDelete

  4. Thanks for posting this useful content, Good to know about new things here, Let me share this, . VMWare training in pune

    ReplyDelete
  5. Very Nice Blog I like the way you explained these things. I’ve been looking for ways to improve my website and overall rankings.I hope your future article will help me further.Take SEO Training in Chennai to mould yourself.

    ReplyDelete
  6. Thank you for sharing. The information you shared is very effective for learners.
    erp in chennai | erp software providers in chennai

    ReplyDelete
  7. I'm getting excited about this kind of beneficial information of your stuff in the future
    accountingassignment.com

    ReplyDelete
  8. This a good way to appreciate the teacher as they put their efforts to train students. UK dissertation Writers appreciates the teachers.
    https://www.assignmentsprogramming.com/

    ReplyDelete
  9. This blog provides useful information about new techniques and concepts.very impressive lines are given which is very attractive.
    Regards:
    Nithya,

    Android Training Institute in Chennai

    ReplyDelete
  10. Thanks for sharing this informative blog. I have read your blog and I gathered some valuable information from this blog. Keep posting.
    No.1 Dot Net Project Center in Chennai | No.1 Dot Net Project Center in Velachery

    ReplyDelete
  11. Your blog is really amazing, its very informative article and useful for everyone.. Thanks for
    sharing such a nice post..
    Java Training Institute in Chennai | Java Training Center in Velachery | Java Courses in Velachery | Java online Training in Velachery

    ReplyDelete

Post a Comment