Koozali.org: home of the SME Server

False "qmail isn't running, can't send messages!" message....but I think it is!

Offline joshAU

  • ***
  • 70
  • +0/-0
Hello. 
I have a bit of a qmail glitch. I'm not sure whether qmail is running, or running correctly at least.

This started when I realised an infected customers computer had started spamming the planet from inside my network.

The SME server dutifully allowed these to pass.

Checking the queue, there were 29000+ emails in the queue!

Apologies to all recipients, by the way. :-(

To delete the queue, I installed qmHandle as per:
http://wiki.contribs.org/Qmhandle_mail_queue_manager

I stopped qmail prior to deleting the queue, using

Code: [Select]
sv d /service/qmailwhich returned no errors.

I then deleted the queue using:
Code: [Select]
qmHandle -D
which took quite a while, as you can imagine.

I then restarted qmail using
Code: [Select]
sv u /service/qmail
The queue was now empty.
Problem solved, I thought.

However, the next day I checked the queue and there was 1 email in the queue.
This was a legit email with an incorrect address, although I didnt notice that at first.

So, from the qmHandle "Email queue Management" panel, I ran "try to send queued messages now"
and it returned "Qmail isn't running, can't send messages!"

Odd, I thought, so I attempted to delete the queue again, however when I ran
Code: [Select]
qmHandle -D
it also showed
"Qmail isn't running... no need to stop it.
Message 2179073 slotted for deletion!
Deleted 1 messages from queue
Qmail wasn't running when qmHandle was started, so it won't be restarted."


If I try to get the status of qmail using
Code: [Select]
sv s /service/qmail
it returns:
"run: /service/qmail: (pid 4644) 6279s, normally down; run: log: (pid 2815) 7156s"

I have rebooted the server.

I have attempted to restart the qmail service using
Code: [Select]
sv u /service/qmailand it returns no errors.

I dont actually use the email side of things, and have POP3, IMAP and webmail disabled in the email settings panel. I plan on using it, however for the time being I am using an email from my isp.

If I send an email to myself, I recieve it ok.

In the log files, under messages, the only references to qmail state:
"mail: Starting qmail succeeded" and
"smith::event[4277]: Running event handler: /etc/e-smith/events/ip-up/S20qmail-ipup"
"esmith::event[4277]: S20qmail-ipup=action|Event|ip-up|Action|S20qmail-ipup|Start|1219962690 319059|End|1219962690 457366|Elapsed|0.138307"

So it appears to be starting.
and the qmail/current log it appears to be processing emails correctly.


To me, with my vastly insufficient knowledge, qmail appears to be running, but if so, why am I getting the error "Qmail isn't running, can't send messages!" in the qmhandle email queue management panel?

Any ideas or suggestions?



« Last Edit: August 30, 2008, 03:15:41 PM by joshAU »


Offline joshAU

  • ***
  • 70
  • +0/-0
Re: Qmail isn't running, can't send messages!....but I think it is!
« Reply #2 on: August 29, 2008, 09:51:02 AM »
Thanks Normando, those links look like just what I need to implement, ASAP.

However, should I be concerned that qmHandle thinks qmail is not running?

I appreciate your help.

JoshAU

Offline mercyh

  • *
  • 824
  • +0/-0
    • http://mercyh.org
Re: Qmail isn't running, can't send messages!....but I think it is!
« Reply #3 on: August 29, 2008, 03:50:21 PM »
Quote
However, should I be concerned that qmHandle thinks qmail is not running?

I can't answer your message specifically (Why qmHandle thinks qmail is not running) as I do not use qmHandle.

I do know that this:
Quote
run: /service/qmail: (pid 4644) 6279s, normally down; run: log: (pid 2815) 7156s
Is a normal response from a working SME mail server.

There may be some clues as to why in this old old post.

http://forums.contribs.org/index.php?topic=9179.0

Offline CharlieBrady

  • *
  • 6,918
  • +3/-0
Re: Qmail isn't running, can't send messages!....but I think it is!
« Reply #4 on: August 29, 2008, 05:25:37 PM »
However, should I be concerned that qmHandle thinks qmail is not running?

Please report a bug against the qmHandle contrib in the Contribs section of the bug tracker.

Please also adjust the Subject of this thread so that it doesn't say "Qmail isn't running", which is false.

[P.S. It's qmail, BTW, not Qmail.]
 
« Last Edit: August 29, 2008, 05:27:16 PM by CharlieBrady »

Offline byte

  • *
  • 2,183
  • +2/-0
Re: Qmail isn't running, can't send messages!....but I think it is!
« Reply #5 on: August 29, 2008, 06:50:54 PM »
Moving this topic to the SME 7.x contribs forum, it is more appropriate there. Thanks!
--[byte]--

Have you filled in a Bug Report over @ http://bugs.contribs.org ? Please don't wait to be told this way you help us to help you/others - Thanks!

Offline joshAU

  • ***
  • 70
  • +0/-0
Thanks mercyh,

Quote
Is a normal response from a working SME mail server.
is all I needed to hear, I guess.

Thanks CharlieBrady,

bug...i'll try to.
Subject adjected.
Punctuation lesson appreciated.  :smile:


Thanks btye,

Fair enough.


« Last Edit: September 01, 2008, 05:07:37 AM by joshAU »