LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 03-07-2011, 02:25 PM   #1
blainemiller
Member
 
Registered: Dec 2003
Posts: 78

Rep: Reputation: 1
sendmail mqueue inexplicably growing


I have a server (RHEL 4.7) with an mqueue that keeps growing over a two or three day interval. Then I have to manually flush the queue by removing all the mail in the spool directory as the sendmail flush command doesn't work.

I've looked at the mail queue manually with a sendmail -bp command and it seems to show an occaisional mail item in the queue. On the other hand, there seems to be a lot more non-legitimate emails in the queue spool.

First, how do I find out the source of the email in the main queue? Next, how do I stop it from building the queue? Next, is there anyway to automatically flush the queue once it builds if I need to?

Sorry, but I'm a serious newbie when it comes to email and specifically sendmail server.

I've googled for an answer and only find links to the Sendmail server site and its' (to me) cryptic command structure.

Thanks!

Blaine
 
Old 03-08-2011, 04:05 AM   #2
centosboy
Senior Member
 
Registered: May 2009
Location: london
Distribution: centos5
Posts: 1,137

Rep: Reputation: 116Reputation: 116
Quote:
Originally Posted by blainemiller View Post
I have a server (RHEL 4.7) with an mqueue that keeps growing over a two or three day interval. Then I have to manually flush the queue by removing all the mail in the spool directory as the sendmail flush command doesn't work.

I've looked at the mail queue manually with a sendmail -bp command and it seems to show an occaisional mail item in the queue. On the other hand, there seems to be a lot more non-legitimate emails in the queue spool.

First, how do I find out the source of the email in the main queue? Next, how do I stop it from building the queue? Next, is there anyway to automatically flush the queue once it builds if I need to?

Sorry, but I'm a serious newbie when it comes to email and specifically sendmail server.

I've googled for an answer and only find links to the Sendmail server site and its' (to me) cryptic command structure.

Thanks!

Blaine

There are a few things you need to do to investigate.
Stop the mail server.
Examine the messages and headers in /var/spool/mqueue and clientqueue to determine the source and destination.

Tail the maillog...

Code:
tail -f /var/log/maillog
Run the above command in the background if you need to.

Check your mail server for an open relay.

Code:
http://spamlinks.net/prevent-secure-relay-test.htm

Report back so we can determine the next course of action
 
Old 06-08-2011, 12:19 PM   #3
blainemiller
Member
 
Registered: Dec 2003
Posts: 78

Original Poster
Rep: Reputation: 1
I did all of the things as suggested except for turning sendmail off on the server. This is a critical Production system and I couldn't afford to do that.

What I did find out(finally) from an associate is that the mailq and root mail directories are filling up because of a flaw in the application level of the system. Apparently these files and directories need to be purged or deleted manually when they grow to an alerting size.

This was something I wasn't made aware of until yesterday. Oops on the Developer side.

I'm going to close this request for help as solved... Never-the-less thanks for all the information and helpful ideas.

Blaine
 
  


Reply

Tags
sendmail


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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How can I save Sendmail relayed mqueue messages? MensaWater Linux - Server 1 07-17-2012 06:36 PM
[SOLVED] sendmail - disable local delivery and queue is growing up? quanta Linux - Server 6 01-26-2011 10:28 PM
MySQL ibdata1 growing and growing and growing and... jnojr Linux - Software 1 07-20-2009 08:11 PM
/var/spool/mqueue/ is empty, but Sendmail keeps on sending messages guarriman Linux - Software 1 02-20-2006 05:46 AM
K3b inexplicably stopped working apachedude Linux - Software 2 01-27-2005 01:59 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 08:24 PM.

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
Open Source Consulting | Domain Registration