LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 09-30-2004, 07:18 PM   #1
redwolf3
LQ Newbie
 
Registered: Sep 2004
Location: Sacramento, CA
Distribution: Redhat Enterprise 3.0
Posts: 7

Rep: Reputation: 0
Postfix Problems


Hey all. New Guy on here, also a fairly new user to Linux. I know enough to get myself into trouble but not enough to consider myself an expert by any means.

Anywho, here's the situation. Our company has a dedicated Linux box (Runnning Redhat Enterprise 3.0). The sole purpose of this box is to run as a dedicated SMTP Server. The server is co-located through a different company which poses a number of problems, one of which is that the only interface I have available to me is "Webmin" *blech*.

In any case, the server has 2 connections, one "back door" connection to our dedicated Web Server and another connection to the web.

The purpose of this server is to simply process and send mail that comes in from the Web Server, nothing more, nothing less. This server receives huge amounts of e-mails on a regular basis (transfers about 40 gigs of E-Mail over the web a month). and is constantly under load.

The server has been running properly for about 5 months, but over this last weekend, the servers web connection died for a day. During this time, e-mails were still coming in from the Web Server, the end result? The SMTP Server crashed and locked the server.

Monday, the server was restarted and everything appeared ok at first, but after a couple of hours of use it was clear that SMTP processes were not being handled properly.

It currently appears as if all the E-Mails in queue to be sent were dumped into the "Defer" list, and now the server is so backed up that it doesn't seem it will ever catch up.

What I'm trying to find out is 2 things... first, is there anyway to dump or move the defer queue so that the server can at least handle its current e-mail load?

Also, where's a good place to go to find the optimal settings for our server?

We handle around 600 different domains, and can not specify every domain in the machine, but we need the server to be able to keep up the pace without backing up.

There's a lot more information than this, but I'd rather start with this and then get some suggestions, and if you have any questions of me, feel free to ask me.

As you can imagine, we need this situation resolved ASAP, so I hope all you linux guru's can help me. Thanks.
 
Old 09-30-2004, 08:29 PM   #2
scowles
Member
 
Registered: Sep 2004
Location: Texas, USA
Distribution: Fedora
Posts: 620

Rep: Reputation: 31
Quote:
What I'm trying to find out is 2 things... first, is there anyway to dump or move the defer queue so that the server can at least handle its current e-mail load?
If you can connect into this system via ssh or some backdoor - as root, type:
# postsuper -h ALL deferred

The above command would put all e-mails currently in deferred state on hold.
See: man postsuper - for further options.
Quote:
Also, where's a good place to go to find the optimal settings for our server?
If you haven't done so already, I would start by reading the following online postfix documents that seem relavent to your problem.
Bottleneck Analysis
Performance Tuning
 
Old 09-30-2004, 08:37 PM   #3
redwolf3
LQ Newbie
 
Registered: Sep 2004
Location: Sacramento, CA
Distribution: Redhat Enterprise 3.0
Posts: 7

Original Poster
Rep: Reputation: 0
Scowles-

Thanks for that, I am in the process of running the postsuper command... it appears to be taking a while, but there are A LOT of e-mails built up in the queue, so I'm not too surprised.


I have those two articles you mentioned, and have started going through them, but part of the problem is that I can't run the qshape command on the deferred or incoming queues... I have let both run for well over an hour without any response back. As far as I can tell, I've got somewhere in the neighborhood of 5 - 10 gigs of e-mail built up in the various queues (from several days of receiving e-mails and not being able to send them).

I really don't want to dump them all, but I also can't troubleshoot the system or Postfix until they clear themselves out.

I will look through the rest of those two documents and see if there's anything in them that will help me out more... possibly with getting that queue emptied quicker.

Thanks, and I will post later with what additional infmormation I find.
 
Old 10-01-2004, 01:02 AM   #4
tej
Member
 
Registered: Aug 2004
Location: india
Posts: 32

Rep: Reputation: 15
hello redwolf,

it seems i am having same problem , so incase u find any solution plz post it as soon as possible. i have about 10000 mails waiting in queue not moving forward

= bye
 
Old 10-01-2004, 01:16 PM   #5
redwolf3
LQ Newbie
 
Registered: Sep 2004
Location: Sacramento, CA
Distribution: Redhat Enterprise 3.0
Posts: 7

Original Poster
Rep: Reputation: 0
Well, by doing the above, I have been able to get the queue flushed out enough that mail is starting to come more regularly, the system is still backed up, but getting better. I am in the process of optimizing the settings right now.

One other related question though. I notice that there are a large number of e-mails that go from the Dedicated Web Server, through the SMTP and back to the Dedicated Web Servers POP Server...

Is there anyway to tell redhat to route all SMTP E-Mail destined for [x.x.x.x] ip address through the private IP Address [192.168.1.1]? I'm sure there is an easy way to do this, but I am having a hard time coming up with the right way to word it in order to find my answer.

I think this will help immensely more by taking this e-mail away from the web connection that is heavily used and routing it through the private connection that barely is being used.

I will continue working and posting updates on this problem, along with which things helped the most for other users with similar problems.


Thanks again for any help, it is much appreciated.
 
Old 10-01-2004, 04:56 PM   #6
scowles
Member
 
Registered: Sep 2004
Location: Texas, USA
Distribution: Fedora
Posts: 620

Rep: Reputation: 31
Quote:
Is there anyway to tell redhat to route all SMTP E-Mail destined for [x.x.x.x] ip address through the private IP Address [192.168.1.1]? I'm sure there is an easy way to do this, but I am having a hard time coming up with the right way to word it in order to find my answer.


Are you possibly asking about configuring the transport table? i.e.

mydomain.com :[192.168.9.2]

The above would relay any e-mail for mydomain.com to the MTA at 192.168.9.2. But postfix running on your web server would still receive the inbound e-mail, just not hand it off to the local delivery agent like procmail.
 
Old 10-02-2004, 01:18 AM   #7
redwolf3
LQ Newbie
 
Registered: Sep 2004
Location: Sacramento, CA
Distribution: Redhat Enterprise 3.0
Posts: 7

Original Poster
Rep: Reputation: 0
Well, sort of... but, not using the domain. Our Dedicated web server has 600+ sites on it, all the at times receive e-mail that loops from Postfix back through the Web Server. What I am trying to do is setup the machine so that any routing that should eventually end up at the ip address: (10.1.1.10, not the real IP obviously), is routed to 192.168.1.1 instead, so that it doesn't have to go out to the internet, and instead is transferred between the local connection between the two machines.
 
Old 10-11-2004, 01:22 PM   #8
redwolf3
LQ Newbie
 
Registered: Sep 2004
Location: Sacramento, CA
Distribution: Redhat Enterprise 3.0
Posts: 7

Original Poster
Rep: Reputation: 0
Well, the good news is that Postfix has finally gotten back to working as normal, now the problem is I have all that E-Mail that I previously held. What would the command be to remove those e-mails from the "held" queue and place them back in the active queue? Also, is there a way to place only a portion of them at a time so that I don't reflood the SMTP Server again?
 
Old 10-11-2004, 02:41 PM   #9
scowles
Member
 
Registered: Sep 2004
Location: Texas, USA
Distribution: Fedora
Posts: 620

Rep: Reputation: 31
Please see: man postsuper - I would think the -H (upper case) argument is what you are looking for.

As far as releasing some of the "held" e-mail (versus ALL at once)... you will probably need to wrte a shell script that extracts the queue ID for each held e-mail (using mailq) and then pipes a portion of those queue ID's to the postsuper -H command. The postsuper man page talks about using standard input for specifying queue ID's.
 
Old 10-11-2004, 03:47 PM   #10
Kilahchris
Member
 
Registered: Jan 2003
Location: NY
Distribution: Suse 9.0
Posts: 202

Rep: Reputation: 30
just curious. this is a newbie question.

What program is it in Red Hat enterprise is processing all the smtp transactions in this case?
 
Old 10-11-2004, 04:00 PM   #11
scowles
Member
 
Registered: Sep 2004
Location: Texas, USA
Distribution: Fedora
Posts: 620

Rep: Reputation: 31
It's probably sendmail.
 
  


Reply



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
Postfix problems elitenoob Linux - Newbie 2 05-30-2005 11:31 PM
Problems with postfix 2.1.1 to3t3r Linux - Software 5 11-23-2004 12:08 PM
Postfix on 10.1 problems barrys Mandriva 0 10-27-2004 10:02 AM
Postfix Problems Ronw Mandriva 4 02-26-2004 01:20 PM
Postfix problems razptutin Linux - Networking 3 09-10-2003 08:20 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 07:27 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