LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (http://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   How to Move Unwanted messages From Mailq to Diffrent Folder (http://www.linuxquestions.org/questions/linux-newbie-8/how-to-move-unwanted-messages-from-mailq-to-diffrent-folder-800721/)

manusys 04-08-2010 12:35 AM

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

bakdong 04-08-2010 01:37 AM

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.

manusys 04-08-2010 04:12 AM

Thanks for the resolution.
Can you please elaborate more on it & how do I delete those mails from queue???

Regrds
Manusys.

bakdong 04-08-2010 07:01 AM

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.


All times are GMT -5. The time now is 07:14 AM.