FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.

» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Redhat > Red Hat Linux

LinkBack Thread Tools
Old 10-21-2010, 10:01 AM
sunhux G
Default SMTP mailq : can postsuper move mails to another queue that is not scanned

I have a case where tens of thousands of spam & spoof emails jammed up my
Linux SMTP mail queue :
mailq | grep MAILER | wc -l ==> tens of thousands

This caused genuine emails (which is usually a couple hundreds only) to
up & not being processed because the it will take forever to scan from the
to the end of the mailq with tens of thousands of emails.

However, I don't want to delete away those spam/spoof mails, just want to
them to somewhere else (say another queue) so that I can review & in case
are genuine ones, I'll redeliver them later.

I thought of:
mailq | grep -i mailer | awk '{print ($1)}' | grep -v "@" >

for each queue id or mail entry id in listofsuspectmails.txt, I'll do a
postsuper -h entry_id
to hold the suspect email & after reviewing if I want to release, issue
postsuper -H entry_id

Question is :
Are the 'held' mails still something that will be scanned (& thus prolonged
scan time) or scanning of mail queue will skip 'witheld' mails? If I have
'witheld' emails & they're still being scanned, it will defeat this purpose
of me
witholding the mails.

Currently we manually do a " postsuper -d entry_id " to delete away emails
(which can be automated with a Shell script but I don't want to automate
deletion as we may delete possibly genuine emails) after examining the

Any other solution are welcome

redhat-list mailing list
unsubscribe mailto:redhat-list-request@redhat.com?subject=unsubscribe

Thread Tools

All times are GMT. The time now is 07:51 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org