Sam Varshavchik wrote:
Mircea Damian writes:Then how can you explain that the number of control files found in msgs director is much higher than the number of control file in msgq directory.
The wakeup time is none.
What is more strange is that the number of messages into the queue does not increase even that it accepts new messages and stores them into the msgs directory, but there is no hardlink for them into the msgq dir.
This is not possible for the simple reason that the link in the msgq dir is created before the control and the data files are moved from the tmp directory to the msgs directory.
After reading the source and the explanations I found at http://www.courier-mta.org/queue.html this seems impossible but it happens and I frankly do not know how to debug it.
The MAXDAEMONS was 300 and MAXPERC was 60. I set them now to 50 and respectively 40. Let's see what happens now.
One simple way to fix this problem is to block the incoming connections on port 25 (iptables -j DROP). After that immediatelly it starts to complete a lot of messages and things are starting to deliver:
I suspect that your server is simply unable to keep up when the number of incoming SMTP connections maxes out. Reduce MAXDAEMONS in the esmtpd configuration file until your server is able to keep up.
And I still do not understand why after I blocked any incoming messages the number of total messages in the queue (reported by mailq or counted by numbering the total control files in msgq directory) increased slowly from 1500 to 33000 then it started to decrease because most of them were local delivers. After about 1h30m the queue left with 1300 messages and I removed the firewall block from port 25. How can anyone explain this?
I suspect that submit was chocking on the incoming esmtpd connections and it was unable to move the messages properly into the courierd queue and that means a race conditions somewhere on the critical path of submit.
--
www.astral.ro
| Mircea Damian | |
| Manager Infrastructura Metropolitana - Internet & Data | |
| Astral Telecom | |
| Mihai Bravu 223 | |
| Sector 3, cod 030301 | |
| Tel: | 021 326 5003 |
| Fax: | 021 326 6196 |
| GSM: | 0745 128 110 |
<<inline: logo2.gif>>
