Koozali.org: home of the SME Server
Obsolete Releases => SME 7.x Contribs => Topic started by: joshAU on August 29, 2008, 03:53:07 AM
-
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
sv d /service/qmail
which returned no errors.
I then deleted the queue using:
qmHandle -D
which took quite a while, as you can imagine.
I then restarted qmail using
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
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
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
sv u /service/qmail
and 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?
-
BTW:
http://wiki.contribs.org/Email#How_do_I_enable_smtp_authentication_for_users_on_the_internal_network.
and
http://wiki.contribs.org/Email#How_do_I_disable_SMTP_relay_for_unauthenticated_LAN_clients
I have the same problem, and fix with authenticate mode :)
-
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
-
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:
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
-
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.]
-
Moving this topic to the SME 7.x contribs forum, it is more appropriate there. Thanks!
-
Thanks mercyh,
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.