Koozali.org: home of the SME Server

Remove message from remote mail queue?

Offline edb

  • *
  • 548
  • +0/-0
Remove message from remote mail queue?
« on: September 16, 2011, 07:40:56 AM »
I have an outgoing message that someone has sent to a user at a domain that resolves to 127.0.0.2 and it is causing an endless loop and my SME Server 8 to use 99% CPU.
Is there a way I can delete this message from the mail queue to stop the cycle?
I don't think that we can still use qmhandle in SME8 anymore but is there another way to kill this message?
Thanks

-edb
......

Offline mmccarn

  • *
  • 2,656
  • +10/-0
Re: Remove message from remote mail queue?
« Reply #1 on: September 16, 2011, 02:04:45 PM »
Qmhandle should work fine - I think it's just a collection of bash or perl scripts, so the 7.5.1 version should work on 8b6.


Offline edb

  • *
  • 548
  • +0/-0
Re: Remove message from remote mail queue?
« Reply #2 on: September 16, 2011, 06:48:18 PM »
Well I installed qmhandle just fine but it cannot seem to delete that one message in the remote mail queue.
I stop qmail then delete the message, then start qmail again but the message just comes back again.
It just keeps delivering that message over and over and over.
Any words of wisdom appreciated.

-edb
......

Offline cactus

  • *
  • 4,880
  • +3/-0
    • http://www.snetram.nl
Re: Remove message from remote mail queue?
« Reply #3 on: September 16, 2011, 07:42:34 PM »
Well I installed qmhandle just fine but it cannot seem to delete that one message in the remote mail queue.
I stop qmail then delete the message, then start qmail again but the message just comes back again.
It just keeps delivering that message over and over and over.
Any words of wisdom appreciated.

-edb
Perhaps the client PC keeps adding it to the queue. I suggest you check the outbox of the user who sent the mail.
Be careful whose advice you buy, but be patient with those who supply it. Advice is a form of nostalgia, dispensing it is a way of fishing the past from the disposal, wiping it off, painting over the ugly parts and recycling it for more than its worth ~ Baz Luhrmann - Everybody's Free (To Wear Sunscreen)

Offline edb

  • *
  • 548
  • +0/-0
Re: Remove message from remote mail queue?
« Reply #4 on: September 16, 2011, 07:55:00 PM »
Thanks cactus, that is what I was thinking as well since it does seem to delete from the queue but then get's re-submitted again so it must be stuck in the users Outlook outbox.
I will try and contact the user to see if this is the case and then have him delete the message and restart Outlook again and that might clear it up.
Thank you for responding to my post.

-edb
......

Offline edb

  • *
  • 548
  • +0/-0
Re: Remove message from remote mail queue?
« Reply #5 on: September 16, 2011, 08:33:14 PM »
Well apparently the user does not have anything in their Outlook outbox so it's not what we thought.
This is very weird as to why it keeps appearing over & over with a new message ID and in a different remote queue folder each time.
I just don't know how to stop and kill this one message.

-edb
......

Offline edb

  • *
  • 548
  • +0/-0
Re: Remove message from remote mail queue?
« Reply #6 on: September 16, 2011, 09:01:48 PM »
Ok, I finally solved the silly problem.
What I had to do is stop the qmail service with
Code: [Select]
sv d /service/qmail
then go to the /var/qmail/queue/todo folder and find the problem message and delete it.
Then issue the
Code: [Select]
sv u /service/qmail
to start qmail again.
Now my server is no longer utilizing 98% CPU resources and back to normal as well.
Thank God it's solved now and thanks to those who replied to this post.

-edb
......

Offline CharlieBrady

  • *
  • 6,918
  • +3/-0
Re: Remove message from remote mail queue?
« Reply #7 on: September 19, 2011, 05:30:13 PM »
I have an outgoing message that someone has sent to a user at a domain that resolves to 127.0.0.2 and it is causing an endless loop and my SME Server 8 to use 99% CPU.

I'm sure that you have been told this before, but the message seems not to have sunk in. Please report all problems via the bug tracker.

Offline CharlieBrady

  • *
  • 6,918
  • +3/-0
Re: Remove message from remote mail queue?
« Reply #8 on: September 19, 2011, 05:31:24 PM »
Thank God it's solved now ...

Well, only until the next time someone sends a message to a user at a domain that resolves to 127.0.0.2...

Offline edb

  • *
  • 548
  • +0/-0
Re: Remove message from remote mail queue?
« Reply #9 on: September 19, 2011, 07:15:47 PM »
Hi Charlie,

Sorry, I didn't think it was a bug just something I never ran across before and thought that maybe someone else had seen it before.
It was a bit odd because the sender and the recipient addresses were both legit addresses so I don't know why it was resolving to 127.0.0.2 which seemed to put it in an endless sending loop.
The Domain that it was sending to was "user@shaw.ca".
Was an easy fix though and now that I know what to do if it ever happens again I will try to remember what I did.
 
Thanks

-edb
......

Offline purvis

  • *****
  • 567
  • +0/-0
Re: Remove message from remote mail queue?
« Reply #10 on: September 24, 2011, 08:14:57 AM »
How long has the server been trying to send the email message.
I am no expert, even not close.
I thought this kind of thing would timeout after some time relative short period of time and to tie up the server to 99 percent is just wild i would say for a single email message.


Offline CharlieBrady

  • *
  • 6,918
  • +3/-0
Re: Remove message from remote mail queue?
« Reply #11 on: September 24, 2011, 04:45:10 PM »
Sorry, I didn't think it was a bug ...

Clearly it is. Someone shouldn't be able to put your server out of commission just be sending an email message through it.

I don't recall seeing your bug report. Please create it.