/var/spool/mqueue had filled my hard disk

Hi,

I have a webserver at a ISP somewhere. Probably in tele house london, which I rent out on one of these server packages.

I don't know much about linux at all,

What I noticed is that my /var partition was full on close looks it was the /var/spool/mqueue was fulll of files.

Question is what causes this and what are they, and how do I prevent it from happening in future.

I look on google and someone said run sendmail -q but what does that do.

Any help would be good.

Regards

R
LVL 4
supportsoftAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

PsiCopCommented:
/var/spool/mqueue is where sendmail stores queued E-Mail. This is E-Mail awaiting transmission to out of your system to another host.

You haven't really said much about your configuration (e.g. VERSION of sendmail, how its configured, if you use RBLs or other anti-spam mechanisms, etc. etc.) so telling you why all your E-Mail is piled up is mainly guesswork.

One guess is that you're running an unsecure version/configuration of sendmail and are being used by spammers as a relay. If this is the case, then you may have also been blacklisted, meaning your legitimate E-Mail isn't going anywhere either.

Another possibilty is that sendmail is hung/misconfigured.

Another possibility is that sendmail's configuration won't let it process the queue when disk space is so low,  but the actual reason it got low is unrelated, like a log file growing too large.

These are all guesses. If you would like more definitive help, you need to provide DETAILED information.
0
supportsoftAuthor Commented:
Hi,

Thanks for the info. The details I don't really know as I rent this server from a company called Fasthosts and they pre build it all. I presume it is set up as secure server.

How do I tell if it is a open relay?

How do I tell the sendmail version?

I have access to root level command prompt so I can tell whats what.

Regards

Richard
0
PsiCopCommented:
The fastest way to tell the sendmail version is to telnet to port 25 on the machine and look at the banner it displays.

Example --> telnet mail.mymachine.com 25

sendmail, or whatever MTA is running, should display a banner, telling you, among other things, its version. You can also tell sendmail's version using one of the debugging commands at a command-line, like so:

/usr/lib/sendmail -d1.0

I think that's the syntax. But that presumes that sendmail is indeed your MTA. Telnetting to port 25 makes sure of what you MTA is.
0
Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.

supportsoftAuthor Commented:
Hi,

ESMTP Sendmail 8.10.2/8.10.1 is what comes up in telnet

Relaying wise it is not a open server I tested it with this mail site  http://www.abuse.net/relay.html and every site came up relaying denied.

Maybe it was just sendmail hanging but that is surely rare.

Any other information I can supply or areas to look in to keep a eye on this problem.

Regards

R
0
PsiCopCommented:
Well, v8.10 of sendmail is quite outdated. And it does have security vulnerabilities. The latest is v8.13.1, so as you see, you're way behind the times. You should insist that the  ISP upgrade it immediately.

abuse.net is just one ORDB (Open Relay DataBase). Others include MAPS and ORBS. Check them too.
0
supportsoftAuthor Commented:
Happned again today, 998MB filled up in a couple of hours. I will have to try and see if there is a pattern in when it occurs.

I will see if I can upgrade to latest version of sendmail. If I do will it remember all my settings and keep whats in my virtusertable.?

Regards

R
0
PsiCopCommented:
Well, since this is a managed server, it sounds like the ISP will be responsible for the upgrade. If they do it right, yes, the information will be retained. No harm, however, in making copies of the source files (aliases, sendmail.mc, virtusertable, etc. etc) prior to the upgrade. That way if they are lost, its just a matter of copying the source files back over and running them thru the appropriate tools (newaliases, m4, makemap, etc. etc)
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Email Servers

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.