Koozali.org: home of the SME Server

Obsolete Releases => SME Server 7.x => Topic started by: [m364n0] on June 24, 2011, 07:57:09 AM

Title: Mail queue
Post by: [m364n0] on June 24, 2011, 07:57:09 AM
We have SME Server 7.4 installed on clone PC (Intel Core 2 Duo Processor, 2 GB Physical Memory) running as a Server-Gateway Server Mode...We have some problems about too many mail queues, now my question is how am I going to minimized these too many mail queues? Could you please help me guys...Thanks....
Title: Re: Mail queue
Post by: Stefano on June 24, 2011, 10:36:03 AM
first of all you should find the reason for it.. IMHO you have an infected client.. check each client for virus/worm/rootkit..
Title: Re: Mail queue
Post by: CharlieBrady on June 24, 2011, 02:21:58 PM
.We have some problems about too many mail queues, now my question is how am I going to minimized these too many mail queues?

I think you mean "too many messages in the mail queue". There are only two mail queues - one for local mail deliveries, and one for outgoing mail messages.

As Stefano says, you need to identify the problem before you can solve it. The two likely causes are 1) a virus infected Windows computer or 2) a compromised password being used by a spammer to send lots of messages via webmail.
Title: Re: Mail queue
Post by: [m364n0] on June 25, 2011, 02:20:27 AM
Thank you very much for paying attention and answering my question...btw I've forgot to mention that we're using horde as our web base email...
Title: Re: Mail queue
Post by: CharlieBrady on June 25, 2011, 08:24:50 AM
btw I've forgot to mention that we're using horde as our web base email...

You don't need to mention that, since horde is the standard webmail application in SME server.

The earlier answers still apply. You either have one or more infected workstations, or one or more compomised account passwords which is being used to send spam via webmail. Careful examination of your qpsmtpd logs and/or the headers of the messages in the mail queue will allow you to identify the problems you have. Start with the qpsmtpd logs.
Title: Re: Mail queue
Post by: Jean-Philippe Pialasse on June 26, 2011, 10:44:25 AM
to have more information about your  qmail lists you can test this contrib that is not maintained by contribs.org but might be helpful  http://www.saco-support.de/index.php?/Knowledgebase/Article/View/26/18/smeserver-saco-qmhandle-134-3 . More info about the contrib here : http://wiki.contribs.org/Qmhandle_mail_queue_manager ( i am not sure this contribs is converted to utf8 if the panel does not work in server manager just use this script at the end of the page of this other contrib http://wiki.contribs.org/Crontab_Manager#Convert_to_UTF8)

This will help you to understand from were are coming theses email by reading the source code. Then the second thing will be to stop the source : an infected computer on your lan, a user account with stolen password.

Third you will need to clear the waiting lists but be careful not to throw your users mail ! this can't be recovered.

_____________________________________________
then if there is a lot of email you need to remove you might need:
first do
Quote
service qmail stop
then use one of this two
http://www.redwoodsoft.com/~dru/mailRemove/ (a python script you can directly use it)
OR
http://www.linuxmagic.com/opensource/qmail/qmail-remove/ (will need to compile a c program)

then
Quote
service qmail start
Title: Re: Mail queue
Post by: [m364n0] on June 28, 2011, 02:32:33 AM
Thank you very much for your brilliant idea because it really works on our SME Server, so now no need to worry if there's  a lot of email queue messages.... :-D
Title: Re: Mail queue
Post by: Jean-Philippe Pialasse on June 28, 2011, 06:03:00 PM
To share your experience with others, what did you finally do and what did you find ?


JP