Menu
NullMind's Lair
  • Home
  • Statue Collection
  • Jacket Collection
  • Contact
  • Archives
  • About
NullMind's Lair

Good way too remove SPAM from QMail queue (HSphere)

Posted on October 24, 2004 by NullMind

If you ever ran /var/qmail/bin/qmail-qstat

to get something like this


[root@mail2 root]# /var/qmail/bin/qmail-qstat
messages in queue: 4830
messages in queue but not yet preprocessed: 173

After you find and stop the spammer, you now have a mess of email on your QMail queue .. here is a way to remove it

take a “user@domain.com” that is common on the spammed emails (usually the sender) and run this command


grep -R user@domain.com /var/qmail/queue/mess/* | awk -F":" '{print "rm -f " $1}' | sh

That will delete the emails that contain that user@domain .. be very careful with this, a wrong setting and you can be wiping your mailserver clean instead 😉

Null

Related

2 thoughts on “Good way too remove SPAM from QMail queue (HSphere)”

  1. Evert says:
    May 21, 2013 at 10:36 am

    Thanks 🙂

    Although… It does leave some cruft behind. ‘qmailctl queue’ gives loads of ‘warning: trouble with #xxxxx: file does not exist’ after running this.

  2. NullMind says:
    July 17, 2013 at 1:49 pm

    Ouch, this was 9 years ago 🙂 … somethings must have changed since 😉

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Carlos Rego – OnApp CVO & Co-Founder

Recent Comments

  • Bob petrusha on Plymouth Prowler
  • Voyager on Tallship Chronicles – Finally !!!
  • Tonny on Wolverine Weapon-X
  • NullMind on Coming Soon – Bullbars
  • Sid James on Coming Soon – Bullbars

Null's Flickr Photos

Відпочинковий комплекс ШепільськаSete CidadesIslamic MuseumBoat in DohaVM-E with 50mm/0.95Double Rainbow
More Photos

Categories

  • Books / Movies (8)
  • Camping (1)
  • Cars (14)
  • Check Ins (69)
  • Computers / Internet (146)
  • Cooking Recipes (2)
  • Family (53)
  • Featured (4)
  • Flights (176)
  • General (107)
  • Models & Statues (42)
  • Photography (276)
  • RC (66)
  • Short Rants (14)
  • Stuff (6)
  • Toonz (24)
  • Trips / Places (36)
  • Uncategorized (241)
  • Vape (3)
  • Voicemails (1)
  • Watches (6)
  • Work (48)

Tag Cloug

1/4 scale 8IGHT-T 8T Azores BSL canon50mmf095 Car Check Ins Copenhagen CPH england Flickr IFTTT Instagram LCY LGW LHR LIS Lisbon london Lviv LWO Marvel PDL Plymouth Prowler Ponta Delgada (Azores) Prowler RC RC NUT sonya7r Statues STN Tattoo Trip Tripit UK2 unitedkingdom VIE Vienna VPS VPS.NET Warsaw WAW Work ¼ Scale

Next Azores Trip

Quick TripFebruary 29, 2020
Going Home to Visit
©2023 NullMind's Lair | Powered by WordPress & Superb Themes