LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices



Reply
 
Search this Thread
Old 07-18-2005, 08:57 AM   #1
fuelinjection
Member
 
Registered: Nov 2003
Location: County Durham, England
Distribution: Fedora
Posts: 238

Rep: Reputation: 30
qmail folder is 3.8Gb!!!


We've got a dedicated server running fedora core 2.

We're having some problems logging into Horde, it just keeps giving us the login screen without any error message. We also have some php scripts which send emails out, and they are not sending either.

I tried locating a file today, but locate said the database was corupt, so I tried updatedb, only to be told that there isnt enough space on the partition.

I've had a look, and it seems like the qmail folder is using up 3.9Gb of a 4Gb paritition.

I have no idea where to start with this as I've never used qmail before, but I assume I need to clear some stuff out of this folder, but I'm not sure what.

The /qmail/queue/ folder is 2.8Gb, so I assume this is where everything is.
 
Old 07-18-2005, 12:45 PM   #2
TruckStuff
Member
 
Registered: Apr 2002
Posts: 498

Rep: Reputation: 30
My guess is that your queue is full of joe-job bounces. Either that are one of your users is infected with a virus. The queue is messages waiting to be sent. You can see how mayn messages are in there by running
Code:
# /var/qmail/bin/qmailctl stat
Do *NOT* simply start deleting files from the queue; you could cause irrepairable damage to your queue. Check out www.qmail.org for tools to view the messages in the queue as well as remove messages from the queue.
 
Old 07-19-2005, 05:28 AM   #3
fuelinjection
Member
 
Registered: Nov 2003
Location: County Durham, England
Distribution: Fedora
Posts: 238

Original Poster
Rep: Reputation: 30
thanks,

I resolved this issue by stopping qmail and then...

cd /var/qmail/queue
find intd todo local remote mess info bounce -type f -print |xargs rm

I restarted qmail and all is well again.

Thanks for the tip though I'll keep it for next time this happens.
 
Old 07-19-2005, 11:42 AM   #4
TruckStuff
Member
 
Registered: Apr 2002
Posts: 498

Rep: Reputation: 30
Did you look to see what the queued messages were? Simply deleting them won't do you much good in figuring out *why* this problem happened in the first place.
 
Old 07-21-2005, 11:13 AM   #5
fuelinjection
Member
 
Registered: Nov 2003
Location: County Durham, England
Distribution: Fedora
Posts: 238

Original Poster
Rep: Reputation: 30
How do I look at the queues. its just that the partition is full again today, as well as another partition where the maillog is held, the maillog file was 4.3gb
 
Old 07-21-2005, 04:53 PM   #6
TruckStuff
Member
 
Registered: Apr 2002
Posts: 498

Rep: Reputation: 30
Quote:
Originally posted by fuelinjection
How do I look at the queues.
Quote:
Originally posted by TruckStuff
My guess is that your queue is full of joe-job bounces. Either that are one of your users is infected with a virus. The queue is messages waiting to be sent. You can see how mayn messages are in there by running
Code:
# /var/qmail/bin/qmailctl stat
Do *NOT* simply start deleting files from the queue; you could cause irrepairable damage to your queue. Check out www.qmail.org for tools to view the messages in the queue as well as remove messages from the queue.
Quote:
Originally posted by fuelinjection
its just that the partition is full again today, as well as another partition where the maillog is held, the maillog file was 4.3gb
OK, you have several *serious* problems:

1) Your queue is inexplicably filling up quickly. This is not "just" a little problem.
2) Your maillog is filling up radpidly. This means you didn't install qmail per Life w/ Qmail, otherwise your mail logs wouldn't be that big.
3) The fact that you didn't install per LWQ means that you are probably also an open relay for spammers.
4) You obviously have no interest in actually *reading* your logs, otherwise you would probably find the cause of your problems.

My suggestion:

1) Shutdown qmail. Immediately.
2) rm -rf /var/qmail
3) Reinstall qmail per Life w/ Qmail
4) Read your logs!
 
Old 07-21-2005, 05:49 PM   #7
fuelinjection
Member
 
Registered: Nov 2003
Location: County Durham, England
Distribution: Fedora
Posts: 238

Original Poster
Rep: Reputation: 30
The server was supply as is by 1and1, so I didnt install qmail.

I've reported the problem to them and left it with them to resolve, in the meantime I found that qmail was open to everyone so I've restricted it to authenticated users only.

We have no users that use the server as STMP, so it can only be someone who has exploited the fact that the server was left wide open.
 
Old 07-21-2005, 05:51 PM   #8
TruckStuff
Member
 
Registered: Apr 2002
Posts: 498

Rep: Reputation: 30
Quote:
Originally posted by fuelinjection
The server was supply as is by 1and1, so I didnt install qmail.

I've reported the problem to them and left it with them to resolve, in the meantime I found that qmail was open to everyone so I've restricted it to authenticated users only.

We have no users that use the server as STMP, so it can only be someone who has exploited the fact that the server was left wide open.
In that case you probably want to change hosting companies. If they don't even know how to secure a mail server, god only knows what else they don't know. Sounds like a disaster waiting to happen.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Maxtor 200gb shows as 33.8gb Gunrunner Linux - Hardware 6 11-14-2004 06:41 PM
qmail +qmail-qfilter + qmail-scanner-queue+qmail-user-masq.pl problem countcobolt Linux - Networking 0 07-08-2004 12:29 PM
I can't see all of my memory (only 3.5Gb of my 8Gb is seen) in Mandrake 10 jmaxdirect Linux - Newbie 15 06-03-2004 04:23 AM
Trouble with an 8GB file Jonasx Linux - Software 7 05-26-2004 01:33 AM
Mandrade 8.1 under 8GB? freezinbutt Linux - Software 1 03-15-2002 12:08 PM


All times are GMT -5. The time now is 02:05 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration