LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices



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

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


Hi,

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 ...!


Regards
manysys
 
Old 04-08-2010, 02:37 AM   #2
bakdong
Member
 
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
manusys
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???

Regrds
Manusys.
 
Old 04-08-2010, 08:01 AM   #4
bakdong
Member
 
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.
 
  


Reply


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 06:35 PM.

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