Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7833009
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T12:31:38+00:00 2026-06-02T12:31:38+00:00

I guess it serves me right, but I was testing a looping mail script

  • 0

I guess it serves me right, but I was testing a looping mail script that was designed to send an email to a friend every minute (for a set period of time) just to annoy them. (A reminder for a forgetful person)

I was testing it on myself to see if it would work and in the process set an infinite loop, and emailed myself an unknown number of times. It was on my localhost using MAMP Pro.

The accident looked like this

<?php
while (1){
$to = "me@me.com";
$subject = "The Subject";
$message = "The Reminder.";
$from = "me@me.com";
$headers = "From:" . $from;
mail($to,$subject,$message,$headers);
echo "The End.";
}
?>

I ran the script and left it in the browser for about 40 seconds while having a mind blank, since then I’ve received about 800 or more emails in my spam folder before turning off MAMP.

I’m wondering how I can clear the queue that it’s made. (While MAMPs off no new spam emails are received, when MAMPs on it starts again)

In terminal sudo postqueue -p will give me long the list however postfix -f / postfix flush etc produce

postqueue: fatal: Cannot flush mail queue – mail system is down

postsuper -p gives me

postsuper: fatal: use of this command is reserved for the superuser

sudo postsuper -d and one ID will delete a message but I can’t delete all.


EDIT/UPDATE

ANSWER:

I should have kept fiddling.

sudo postsuper -d ALL
Is the winner resulting in 385 messages deleted

That could have been annoying.

Serves me right for trying to play a practical joke I didn’t fully understand.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-02T12:31:39+00:00Added an answer on June 2, 2026 at 12:31 pm

    I should have kept fiddling.

    sudo postsuper -d ALL Is the winner resulting in 385 messages deleted

    That could have been annoying.

    Serves me right for trying to play a practical joke I didn’t fully understand.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I guess I didn't upgrade the right way, but for a while I was
Delphi XE2, so I guess that is Indy 10(?). One server, 10 clients. I
Guess that I have a TextView that I want to update it in some
I guess that the # Net column is the most interesting, although I don't
I guess it is impossible, but I will ask it anyway. I have a
I am updating some older OpenCV code that was written in (I guess) an
Please help understand what I'm doing wrong here. I guess escaping is wrong, but
I've tried looking on google but i guess I can just not get the
I had asked a question about this earlier, but it didn't get answered right
hey, i'm not sure if this is the right place to ask this, but

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.