Visit the LQ Articles and Editorials section
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 04-08-2010, 01:35 AM   #1
LQ Newbie
Registered: Nov 2009
Posts: 6

Rep: Reputation: 0
Lightbulb How to Move Unwanted messages From Mailq to Diffrent Folder


I m using sendmail. I have two queries regrding mailq

1) How i can move unwanted mails from mailq to diffrent folder?
2) How i can remove those mails from the mailq ?

Please suggest me the options.

Thanks in advance ...!

Old 04-08-2010, 02:37 AM   #2
Registered: Apr 2009
Posts: 214

Rep: Reputation: 44
You can move them manually, but what are they doing there anyway? ClamAV puts infected messages into quarantine in the mailq, and I use a cgi script to view and handle those.
Old 04-08-2010, 05:12 AM   #3
LQ Newbie
Registered: Nov 2009
Posts: 6

Original Poster
Rep: Reputation: 0
Thanks for the resolution.
Can you please elaborate more on it & how do I delete those mails from queue???

Old 04-08-2010, 08:01 AM   #4
Registered: Apr 2009
Posts: 214

Rep: Reputation: 44
You'll have to locate your mail directory, I would normally look in /var/spool/mqueue. You'll find two files for each email (probably). One with the actual email and one with details used by sendmail. mc is a good utility to use for this, as you can browse and view the files easily.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to copy files from diffrent folders to a single folder cadcrazy Linux - Software 3 09-18-2008 10:57 AM
mailq reporting 4000 messages - obviously spam attack genderbender Linux - Security 2 05-19-2007 12:27 AM
unwanted log messages on the screen pranavchoudhary Red Hat 8 09-07-2006 02:58 AM
Kernel echoing messages on VC (unwanted behavior) lhoff Mandriva 3 12-05-2003 04:28 PM

All times are GMT -5. The time now is 02:45 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration