Any way to clear the Mail Queue Completely?

So it seems my SMTP service was hacked over the weekend, with someone deciding to use my server to send a whole lot of mail. I've shut down the service and locked down the security hole, but now I have a lot of mail sitting in the queue and it is taking hours to clear it all out by using the Maintenance tab. Is there a quicker, easier way to clear the queue?

Hi
Rather than using Server Admin it's generally agree to use the command line instead.
sudo mailq
This command flushes the mail queue
sudo postfix flush
To re-queue the mail queue
sudo postsuper -r ALL
Command to see what's in the mail queue
sudo postqueue -p
Command to delete everything in the mail queue
sudo postsuper -d ALL
If you've got lots in there it will take some time. You might benefit by stopping the mail service first:
sudo serveradmin stop mail
Use this command to restart the service afterwards:
sudo serveradmin start mail
If you've got a lot of mail in there it will take the time it takes. You will need some patience. This link discusses how you can secure your mail server:
http://osx.topicdesk.com/content/view/38/41/
Some friendly advice. Secure your server further by placing it behind a firewall. Only open ports required by the Mail Service. If you have to open ssh secure it by using ssh-keygens and disable sshd passwords. Beef up all your passwords.
My 2p.
Tony

Similar Messages

  • Any way to get the mail app to get updated message counts for other folders

    I've been wondering if there's a way to get the mail app to not only check if new mail exists in my main "inbox", but also all of the folders on my imap server? I can individually visit each folder I'm interested in and while it works, I have to guess what folders might have mail in them.. It would be great to have the phone check all folders (or perhaps a list of subscribed folders) for new mail on a regular basis.. Any ideas?

    I have opened a wrap-up thread related to the issue reported here and in many other threads -- "iPhone Mail does not poll IMAP subfolders for server-side processed e-mails": http://discussions.apple.com/thread.jspa?threadID=1355852

  • Is there any way to fix the slow code completion in Netbeans 5.5+

    Netbeans 5.5 or Netbeans 5.5.1
    Is there any possible fix for the slow code completion within the editor? I've googled this issue and haven't found much of anything relevant.
    While, not used all the time - a faster than what it is now code completion would be helpful.
    Thanks,
    --Todd                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

    helloWorld
    Thanks for the response and useful response.
    :P
    I'm not a decent machine now and I guess I'll just keep on typing.
    --Todd                                                                                                                                                                                                                                                                                       

  • Is there any way to clear the Update badge from Settings?

    I don't want to update to IOS 5.1. I prefer to keep running 5.0.1 which is runing fine and fast for me. Seems like when I update too much, my i devices end up slowing down to a point where they frustrate me. Best to leave them the way they were when I got them. I'll get 5.1 when I get a new iPad and/or a new iPhone.
    But I'm not fond of staring at this red badge on settings for the next several months. Seems like there should be a way to clear it without having to obey it.

    GeneTucc wrote:
    I don't want to update to IOS 5.1. I prefer to keep running 5.0.1 which is runing fine and fast for me. Seems like when I update too much, my i devices end up slowing down to a point where they frustrate me. Best to leave them the way they were when I got them. I'll get 5.1 when I get a new iPad and/or a new iPhone.
    But I'm not fond of staring at this red badge on settings for the next several months. Seems like there should be a way to clear it without having to obey it.
    You MUST OBEY!! Repeat YOU MUST OBEY, YOU MUST OBEY!

  • How do I clear the Mail queue?

    When I start mail it shows sending on an email.  It never sends it.. I would like to just delete it out of the queue.

    Not Firefox related....

  • Any way to get the Mail icon with changing number for incoming mail in ...

    Toolbar, the big one across the top of my screen. I have a lot of other handy little items in there, Mozy, Growl Plaxo, world clock, ical, in addition to the Mac stuff. If I could see how many mails I have up there, I wouldn't need to check my dock or open Mail.

    Look for something at VersionTracker or MacUpdate.

  • Is there any way to config the maximum queue size?

    Hi all:
    I wander to know how can I configure my iMQ3.5 to limite the maximum message number in a queue instance?
    And if the producer is too fast, how can I limite the input rate of producer?
    Thanks for your help!
    BR.

    For destinations in IMQ 3.5, you can configure the parameters maxTotalMsgBytes and maxNumMsgs (from version 3.5, these parameters apply to queues AND topics).
    The Enterprise edition gives you the following options to configure the behaviour when the producer is faster than the consumer: slowing producers (FLOW_CONTROL), throwing out oldest messages (REMOVE_OLDEST), throwing out lowest priority messages according to age of the messages (REMOVE_LOW_PRIORITY), and/or throwing out the newest message (REJECT_NEWEST).
    Thomas
    www.arjuna.com

  • When updating to the latest OS X my wife's Mac Book Pro locked at a grey screen with an apple icon and status bar.  Is there any way to recover the data on the laptop and complete the OS install?

    When my wife's Mac Book Pro was being updated to the latest version of OS X the laptop locked up at a grey screen with the Apple icon and status bar.  Is there any way to recover the data and complete the install?  I have not tried anything yet because of the data issue.  I am not sure which OS X version as I did not install the software.

    Used Macs of every description are always available on Ebay and Craigslist and from a plethora of online used-Mac resellers. Apple sells refurbished late-model Macs at 10-20% discounts with a new-computer warranty and the opportunity to extend the warranty with AppleCare.
    http://store.apple.com/us/browse/home/specialdeals/mac

  • Clear the smtp queue in postfix

    I've been trying to find a way to clear the smtp queue from postfix in Lion Mail Server.  Got hit by a bad account penetration sending spam and want to clear it to see what is new.  TIA

    Sorry for the delay in getting back.  Thanks.  That's exactly what I was looking for.  Another one of those tidbits to tuck away.

  • Is there any way to change the status of MO to clear by di ?

    Is there any way to change the status of MO to clear  automatically ?
    When the finished qty isn't less than planned qty , we can do it.
    Thanks

    Hello,
    If the finished QTY less then Planned Qty can be:
    - Post a Receipt from production again with the remaining Qty to complete the production Order
    - Close the Work Order by  oPorductionOrder.Cancel Command
    - Report remaining Qty as Rejected Qty.
    Regards,
    J.

  • Is there any way to make the sent folder in mail list emails "to" instead of  "from"

    Is there any way to make the sent folder in mail list emails in the "to" order instead of  "from".

    Sure open Sent folder.
    Just above first message is an icon titled Sort By Date followed by a downward pointing arrow.
    Click on the arrow and select "To" from the list.
    Allan

  • In Mail, is there any way to prevent the ampersand 20 symbol in downloaded attachments?

    Long title, but as it suggests, every time I download an attachment in Mail that has a space in the title, Mail puts in %20 to replace the space (ascii symbol for space).  I'd like to prevent this and have attachments stored under the name they are sent.  Any way to do this?

    Is there any way to prevent the OS from querying the Superdrive when start
    No
    he OS queries the drive slot to see if there is a disc present.
    How can you tell? Based on the noise it makes?

  • .  It's not clear to me if the default sync for calendar is the iphone or my mac (shows 82 modifications).  I want it to default to the mac but the wording suggests the iphone.  Also, I don't see any way to do the syncy

    I'm having trouble with a sync alert.  It's not clear to me if the default sync for calendar is my iphone (3G) or my mac (shows 82 modifications).  I want it to default to the mac but the wording suggests the iphone.  Anybody know the default device and if it can be and if the other can be selected if desired
    Also, I don't see any way to do the sync on an individual entry basis for calendar.  Looks like it will only do all of them at once.  I'd like to go through them one by one to confirm which entry is correct.
    Thanks
    PS This message ("Syncing with [OWNER'S NAME] iphone will change more than xx% of your calendars events or todos on this computer) only started when I recently updated my OS.

    bubblesblom wrote:
    Okay, so my friends think it is funny to change the passcode on my iPhone.
    Maybe you should get new friends.
    I'm not sure that recovery mode works when you have to trust the computer, but did you try it?
    If you can't update or restore your iOS device - Apple Support
    If that won't work, perhaps you can use Find my iPhone from a computer in your iCloud.com account to erase the device.
    iCloud: Erase your device - Apple Support
    This has nothing to do with the Find my iPhone app being installed on the phone, but you do have to have Find my iPhone activated in the iCloud settings on the phone.

  • I am not able to access ANSI character ALT 0165 Symbols font (infinity symbol) in Illustrator in CS (Windows 8.1) but I can access it in Illustrator 10 running on Windows XP. Any way to download the complete symbol character set under symbols to Illustrat

    I need to use the infinity symbol in Illustrator but it is not available in Illustrator in CS5 running on Windows 8.1. It is available in Illustrator 10 running on Windows XP. Is there any way to access the INFINITY character under fonts in Illustrator in CS5 (Windows 8.1)?

    Thank you for your suggestion. But I do not know how to access UNICODE. How do I download Unicode fonts?
    Also I have a problem working copying illustrations from Illustrator launched from CS5. The illustration does not copy correctly into FrameMaker 10 with Windows 8.1. However, the illustration copies correctly if I use Illustrator 10 in my computer with Windows XP. How do I solve this?
    When I called Adobe I was just told that they do not support CS5.

  • Is there any way to limit the number of Threads running in Application(JVM)

    Hello all,
    is there any way to limit the number of Threads running in Application(JVM)?
    how to ensure that only 100 Threads are running in an Application?
    Thanks
    Mohamed Javeed

    You should definitely use a thread pool for this. You can specify maximum number of threads that can be run. Be note that the thread pool will only limit the number of threads that are submitted to it. So donot call "Thread"s start() method to start thread on your own. Submit it to the pool. To know more, study about executor service and thread pool creation. Actually it will not be more than 20 line code for a class and you might need maximum of 2 such classes, one for threadPool and other one for rejection handler (if you want).
    Just choose the queue used carefully, you just have to pass it as a parameter to the pool.
    You should use "Bounded" queue for limiting threads, but also be careful in using queues like SynchronizedQueue as the queue will execute immediately the threads submitted to it if maximum number of threads have not been running. Otherwise it will reject it and you should use rejection handler. So if your pool has a synchronized queue of size 100, if you submit 101th thread, it will be rejected and is not executed.
    If you want some kind of waiting mechanism, use something like LinkedBlockingQueue. What this will do is even if you want 100 threads, you can specify the queue's size to be 1000, so that you can submit 1000 threads, only 100 will run at a time and the remaining will wait in the queue. They will be executed when each thread already executing will complete. Rejection occurs only when the queue oveflows.

Maybe you are looking for