Koozali.org: home of the SME Server

Too Many Connections, Sever Slows, Stops

Offline newhopenet

  • 16
  • +0/-0
Re: Too Many Connections, Sever Slows, Stops
« Reply #15 on: August 27, 2007, 02:14:44 AM »
Just wanted to post this in case there is any other newbie out there, like me, that had not run YUM UPDATE in a long time. 

Run It! 

Since I got my box updated to 7.2 and any additional packages beyond that as well, my "too many connections problem" has disappeared, and this server is operating far more efficiently than before, AND Spam filtering is remarkable.  Lesson learned -- keep the box updated!

To those experts who maintain SME Server -- WOW.  Thank you.

Offline newhopenet

  • 16
  • +0/-0
Re: Too Many Connections, Sever Slows, Stops
« Reply #16 on: August 27, 2007, 10:53:57 PM »
Arrrrrgh!  Problem has returned, even with all the updates.

Server stops receiving mail, senders get delivery delay messages. 

Box is fully updated to 7.2 +any other updates found by the yum update command.

Our SME Server sits in a DMZ behind our firewall, and hands off incoming mail to our exchange server.  Outgoing mail is handled by the exchange server only, the SME box should not be sending mail.  This 'mail proxying' is the only thing our SME server is used for, no other functions are used.  It's on a 550Mhz Pentium box with 1GB of ram.  We only have 10 users (mail recipients) on our whole network.

I've pasted some sections of log files below.  I'm really new at this, and have no idea what is "normal" or "abnormal" in these log files.  I'm just hoping someone can spot something and point me in the right direction towards troubleshooting this problem.


This was the clamd/current log just as the problem reappeared:

Code: [Select]
2007-08-26 19:54:30.250558500 Database correctly reloaded (149167 signatures)
2007-08-26 21:02:41.625353500 SelfCheck: Database status OK.
2007-08-26 21:59:18.671036500 SelfCheck: Database status OK.
2007-08-26 22:40:05.587130500 SelfCheck: Database status OK.
2007-08-26 23:32:00.666187500 SelfCheck: Database status OK.
2007-08-27 00:13:16.561827500 SelfCheck: Database status OK.
2007-08-27 00:48:38.815830500 SelfCheck: Database status OK.
2007-08-27 02:15:57.896391500 SelfCheck: Database status OK.
2007-08-27 03:54:53.900529500 SelfCheck: Database status OK.
2007-08-27 05:51:47.990194500 SelfCheck: Database status OK.
2007-08-27 06:46:47.243520500 SelfCheck: Database status OK.
2007-08-27 07:01:05.028816500 Reading databases from /var/clamav
2007-08-27 07:02:38.883306500 Database correctly reloaded (149173 signatures)
2007-08-27 07:21:28.546203500 SelfCheck: Database status OK.
2007-08-27 07:51:54.220319500 SelfCheck: Database status OK.
2007-08-27 08:54:26.731284500 SelfCheck: Database modification detected. Forcing reload.
2007-08-27 08:55:18.230453500 Reading databases from /var/clamav
2007-08-27 08:55:34.168043500 Database correctly reloaded (149179 signatures)
2007-08-27 09:54:27.693210500 SelfCheck: Database modification detected. Forcing reload.
2007-08-27 09:54:27.693218500 Reading databases from /var/clamav
2007-08-27 09:54:40.696665500 Database correctly reloaded (149190 signatures)
2007-08-27 13:54:30.727351500 SelfCheck: Database modification detected. Forcing reload.
2007-08-27 13:54:30.727360500 Reading databases from /var/clamav
2007-08-27 13:54:45.642734500 Database correctly reloaded (149272 signatures)


This is qpsmtp/current:


Code: [Select]
2007-08-27 08:10:46.594736500 4796 Too many connections: 40 >= 40.  Waiting one second.
2007-08-27 08:10:46.660797500 15310 Accepted connection 39/40 from 208.70.185.49 / givestrength.com
2007-08-27 08:10:46.662597500 15310 Connection from givestrength.com [208.70.185.49]
2007-08-27 08:10:46.770094500 15310 check_smtp_forward plugin: newhope: 192.168.111.2
2007-08-27 08:10:46.771537500 15310 check_smtp_forward plugin: newhopefellowship.com: 192.168.111.2
2007-08-27 08:10:47.598473500 4796 Too many connections: 40 >= 40.  Waiting one second.
2007-08-27 08:10:47.809345500 15310 check_earlytalker plugin: remote host said nothing spontaneous, proceeding
2007-08-27 08:10:47.918993500 15310 220 david.newhopefellowship.com ESMTP
2007-08-27 08:10:47.957301500 15310 dispatching EHLO givestrength.com
2007-08-27 08:10:47.991191500 15310 250-newhopefellowship.com Hi givestrength.com [208.70.185.49]
2007-08-27 08:10:47.992526500 15310 250-PIPELINING
2007-08-27 08:10:47.993839500 15310 250-8BITMIME
2007-08-27 08:10:47.995177500 15310 250 SIZE 15000000
2007-08-27 08:10:48.030933500 15310 dispatching MAIL FROM:<phoenixuni@floppyshoes.com> BODY=8BITMIME
2007-08-27 08:10:48.033118500 15310 full from_parameter: FROM:<phoenixuni@floppyshoes.com> BODY=8BITMIME
2007-08-27 08:10:48.035715500 15310 from email address : [<phoenixuni@floppyshoes.com>]
2007-08-27 08:10:48.129683500 15310 getting mail from <phoenixuni@floppyshoes.com>
2007-08-27 08:10:48.131172500 15310 250 <phoenixuni@floppyshoes.com>, sender OK - how exciting to get mail from you!
2007-08-27 08:10:48.133021500 15310 dispatching RCPT TO:<becky@newhopefellowship.com>
2007-08-27 08:10:48.135763500 15310 to email address : [<becky@newhopefellowship.com>]
2007-08-27 08:10:48.173780500 15310 check_smtp_forward plugin: Checking <becky@newhopefellowship.com> on 192.168.111.2:25
2007-08-27 08:10:48.197471500 15310 check_smtp_forward plugin: 192.168.111.2 would accept message to <becky@newhopefellowship.com>
2007-08-27 08:10:48.207775500 15310 250 <becky@newhopefellowship.com>, recipient ok
2007-08-27 08:10:48.209640500 15310 dispatching DATA
2007-08-27 08:10:48.211823500 15310 354 go ahead
2007-08-27 08:10:48.410242500 15310 spooling message to disk
2007-08-27 08:10:48.606347500 4796 Too many connections: 40 >= 40.  Waiting one second.
2007-08-27 08:10:49.614189500 4796 Too many connections: 40 >= 40.  Waiting one second.
2007-08-27 08:10:50.618069500 4796 Too many connections: 40 >= 40.  Waiting one second.
2007-08-27 08:10:59.644782500 4796 Too many connections: 40 >= 40.  Waiting one second.
2007-08-27 08:11:00.647755500 4796 Too many connections: 40 >= 40.  Waiting one second.
2007-08-27 08:11:01.650546500 4796 Too many connections: 40 >= 40.  Waiting one second.
2007-08-27 08:11:02.653527500 4796 Too many connections: 40 >= 40.  Waiting one second.
(...this continues indefinitely)

This is qmail/current, leading up to the time the problem started:

Code: [Select]
2007-08-27 07:45:14.741031500 new msg 963295
2007-08-27 07:45:14.741043500 info msg 963295: bytes 31995 from <ESC1101779874249_1101412530530_2366@in.constantcontact.com> qp 14946 uid 453
2007-08-27 07:45:17.033575500 starting delivery 72: msg 963295 to remote josh@newhopefellowship.com
2007-08-27 07:45:17.033585500 status: local 0/10 remote 1/20
2007-08-27 07:45:18.420194500 new msg 963297
2007-08-27 07:45:18.672107500 info msg 963297: bytes 6762 from <WewCQfYx2EoAe0VAWuIoLwgNuTA3tolksy8HPYciq@525311.reply.touchhair.com> qp 14947 uid 453
2007-08-27 07:45:25.240238500 starting delivery 73: msg 963297 to remote cliff@newhopefellowship.com
2007-08-27 07:45:25.240247500 status: local 0/10 remote 2/20
2007-08-27 07:45:28.989887500 delivery 72: success: 192.168.111.2_accepted_message./Remote_host_said:_250_2.6.0__<1101779874249.1101412530530.2366.0.2908002E@scheduler>_Queued_mail_for_delivery/
2007-08-27 07:45:32.826697500 status: local 0/10 remote 1/20
2007-08-27 07:45:32.826705500 delivery 73: success: 192.168.111.2_accepted_message./Remote_host_said:_250_2.6.0__<qIuU2boX82iWM2kSI94890tu7HWn6YySvN2qEe60V@6ogWK9cbScYciec2ag0VnyIZgp6ZzU1aIyiR9sWCu.touchhair.com>_Queued_mail_for_delivery/
2007-08-27 07:45:32.826731500 status: local 0/10 remote 0/20
2007-08-27 07:45:33.216880500 end msg 963295
2007-08-27 07:45:34.387504500 end msg 963297
2007-08-27 07:45:38.830533500 new msg 963301
2007-08-27 07:45:38.830539500 info msg 963301: bytes 5149 from <DebtExperts@sunvessels.com> qp 14950 uid 453
2007-08-27 07:45:42.480491500 starting delivery 74: msg 963301 to remote ann@newhopefellowship.com
2007-08-27 07:45:42.480499500 status: local 0/10 remote 1/20
2007-08-27 07:45:52.630314500 delivery 74: success: 192.168.111.2_accepted_message./Remote_host_said:_250_2.6.0_<GOLIATHpQq5pneeFUtL00000156@goliath.NEWHOPE>_Queued_mail_for_delivery/
2007-08-27 07:45:53.337599500 status: local 0/10 remote 0/20
2007-08-27 07:45:53.337606500 end msg 963301
2007-08-27 07:46:24.529286500 new msg 963295
2007-08-27 07:46:24.529295500 info msg 963295: bytes 32006 from <ESC1101779874249_1101412530530_2026@in.constantcontact.com> qp 14955 uid 453
2007-08-27 07:46:28.428117500 starting delivery 75: msg 963295 to remote becky@newhopefellowship.com
2007-08-27 07:46:28.428127500 status: local 0/10 remote 1/20
2007-08-27 07:46:39.269011500 delivery 75: success: 192.168.111.2_accepted_message./Remote_host_said:_250_2.6.0__<1101779874249.1101412530530.2026.0.2908002E@scheduler>_Queued_mail_for_delivery/
2007-08-27 07:46:40.186992500 status: local 0/10 remote 0/20
2007-08-27 07:46:40.426944500 end msg 963295
2007-08-27 07:55:23.960865500 new msg 963346
2007-08-27 07:55:24.049762500 info msg 963346: bytes 32150 from <ESC1101779874249_1101412530530_2026@in.constantcontact.com> qp 15155 uid 453
2007-08-27 07:55:24.680350500 starting delivery 76: msg 963346 to remote becky@newhopefellowship.com
2007-08-27 07:55:24.680358500 status: local 0/10 remote 1/20
2007-08-27 07:55:26.896372500 delivery 76: success: 192.168.111.2_accepted_message./Remote_host_said:_250_2.6.0__<1101779874249.1101412530530.2026.0.2908002E@scheduler>_Queued_mail_for_delivery/
2007-08-27 07:55:26.896385500 status: local 0/10 remote 0/20
2007-08-27 07:55:26.957183500 end msg 963346
2007-08-27 07:55:36.363116500 new msg 963346
2007-08-27 07:55:36.363123500 info msg 963346: bytes 9845 from <linensthings@helpfuleccentric.com> qp 15157 uid 453
2007-08-27 07:55:36.558074500 starting delivery 77: msg 963346 to remote ann@newhopefellowship.com
2007-08-27 07:55:36.558082500 status: local 0/10 remote 1/20
2007-08-27 07:55:36.671400500 delivery 77: success: 192.168.111.2_accepted_message./Remote_host_said:_250_2.6.0__<8369f7a5e01b$914309748$387382101@helpfuleccentric.com>_Queued_mail_for_delivery/
2007-08-27 07:55:36.671414500 status: local 0/10 remote 0/20
2007-08-27 07:55:36.671417500 end msg 963346
2007-08-27 07:55:36.970489500 new msg 963347
2007-08-27 07:55:36.970494500 info msg 963347: bytes 2455 from <CostaDevelopers@gearfiber.net> qp 15158 uid 453
2007-08-27 07:55:37.287563500 starting delivery 78: msg 963347 to remote ann@newhopefellowship.com
2007-08-27 07:55:37.287571500 status: local 0/10 remote 1/20
2007-08-27 07:55:37.382627500 delivery 78: success: 192.168.111.2_accepted_message./Remote_host_said:_250_2.6.0__<200708270815.l7R8FYkj008212@rharb190.firemanadvise.net>_Queued_mail_for_delivery/
2007-08-27 07:55:37.383098500 status: local 0/10 remote 0/20
2007-08-27 07:55:37.383103500 end msg 963347

I appreciate any advice anyone can offer on what I should check next.  Thank you.

Offline raem

  • *
  • 3,972
  • +4/-0
Re: Too Many Connections, Sever Slows, Stops
« Reply #17 on: August 28, 2007, 12:53:56 AM »
newhopenet

Did you enable RBL rejection ?
http://wiki.contribs.org/Email

Did you customise the spam filter (by selecting Custom) to reject messages if the spam score is higher than the score you nominate ?
see server manager Email panel

Did you install the LearnAsSpam contrib that adds Bayesian filtering using the sonoraccom Howto ?
http://wiki.contribs.org/Email


You can also reduce the number of concurrent connections that qmail will handle to reduce the load on your server, although I suspect if you configure RBL & spammassassin correctly then the 40 connections setting will probably be OK.
Given that you are running a lower powered server, I'd probably reduce that to 20 or even 10.
See ConcurrencyRemote in
config show qmail

config setprop qmail ConcurrencyRemote 10
signal-event email-update
« Last Edit: August 28, 2007, 02:15:59 AM by RayMitchell »
...

Offline newhopenet

  • 16
  • +0/-0
Re: Too Many Connections, Sever Slows, Stops
« Reply #18 on: August 28, 2007, 01:21:00 AM »
Thanks for your reply, and for taking the time to help me here.  This problem came up very suddenly two days ago, prior to that our system had been operating very smoothly for over a year.


Did you enable RBL rejection ?

Yes, it is enabled.  We have used this RBL / SBL setup for a very long time with great success, almost no SPAM and I can't think of a single false positive.

I ran this command to confirm that they are enabled:
Code: [Select]
[root@david ~]# config show qpsmtpd
qpsmtpd=service
    Bcc=disabled
    BccMode=cc
    BccUser=maillog
    DNSBL=enabled
    LogLevel=6
    MaxScannerSize=25000000
    RBLList=zen.spamhaus.org
    RHSBL=enabled
    RequireResolvableFromHost=no
    SBLList=dsn.rfc-ignorant.org
    access=public
    status=enabled

Did you customise the spam filter (by selecting Custom) to reject messages if the spam score is higher than the score you nominate ?
Yes.  It is enabled, set to custom, and should reject mail with a score higher than 5.  People tell me this score is low, however we have used it for over a year with no problems at all.

Did you install the LearnAsSpam contrib that adds Bayesian filtering using the sonoraccom Howto ?
Yes, I've used Bayesian filtering for a while and our users are able to 'train' it by moving uncaught SPAM to a public folder on the exchange server, which I then "learn" on a weekly basis.  We have a few thousand of both ham and spam in our Bayes database.

You can also reduce the number of connections per IP setting to reduce the load on your server, although I suspect if you configure RBL & spammassassin correctly then the 40 connections setting will probably be OK.
I will investigate doing that as you suggest.  However, I'm concerned that will only make the problem worse.  If I'm getting many connections, and I reduce the maximum number the server will deal with, won't that just cause additional rejection messages and additional delays?

One other forum post, where a similar problem was discussed, it was suggested that user run "netstat -an" When I do so, it reveals hundreds of connections, a few I've copied below:

Code: [Select]
tcp        1      0 192.168.222.2:25            206.162.204.150:63923       CLOSE_WAIT
tcp     5473      0 127.0.0.1:783               127.0.0.1:39634             CLOSE_WAIT
tcp        0      0 192.168.222.2:25            61.109.102.53:1275          ESTABLISHED
tcp    50621      0 127.0.0.1:783               127.0.0.1:39618             CLOSE_WAIT
tcp        1      0 192.168.222.2:25            62.118.56.62:65397          CLOSE_WAIT
tcp      970      0 127.0.0.1:783               127.0.0.1:39650             CLOSE_WAIT
tcp        1      0 192.168.222.2:25            85.180.169.121:4913         CLOSE_WAIT
tcp        1      0 192.168.222.2:25            202.78.162.223:1945         CLOSE_WAIT
tcp        1      0 192.168.222.2:25            65.12.104.160:63534         CLOSE_WAIT
tcp        1      0 192.168.222.2:25            125.74.163.234:3066         CLOSE_WAIT
tcp     7256      0 127.0.0.1:783               127.0.0.1:39585             CLOSE_WAIT
tcp        1      0 192.168.222.2:25            211.252.104.90:1832         CLOSE_WAIT
tcp        1      0 192.168.222.2:25            200.127.121.24:1976         CLOSE_WAIT
tcp        1      0 192.168.222.2:25            89.208.155.146:58400        CLOSE_WAIT
tcp        1      0 192.168.222.2:25            210.213.84.162:4443         CLOSE_WAIT
tcp     5375      0 127.0.0.1:783               127.0.0.1:39552             CLOSE_WAIT
tcp        1      0 192.168.222.2:25            70.42.193.103:40155         CLOSE_WAIT
tcp        1      0 192.168.222.2:25            58.141.205.54:4273          CLOSE_WAIT
tcp     2475      0 127.0.0.1:783               127.0.0.1:39632             CLOSE_WAIT
tcp     2357      0 127.0.0.1:783               127.0.0.1:39616             CLOSE_WAIT
tcp        1      0 192.168.222.2:25            62.118.56.62:65351          CLOSE_WAIT
tcp        1      0 192.168.222.2:25            125.137.196.238:3595        CLOSE_WAIT
tcp     5226      0 127.0.0.1:783               127.0.0.1:39648             CLOSE_WAIT
tcp        1      0 192.168.222.2:25            196.201.93.75:4824          CLOSE_WAIT
tcp        1      0 192.168.222.2:25            89.111.97.6:2111            CLOSE_WAIT
tcp        1      0 192.168.222.2:25            89.208.155.228:6567         CLOSE_WAIT
tcp     7242      0 127.0.0.1:783               127.0.0.1:39559             CLOSE_WAIT
tcp     5376      0 127.0.0.1:783               127.0.0.1:39607             CLOSE_WAIT
tcp        1      0 192.168.222.2:25            125.137.196.238:4428        CLOSE_WAIT
tcp        1      0 192.168.222.2:25            200.161.167.135:2270        CLOSE_WAIT
tcp     2221      0 127.0.0.1:783               127.0.0.1:39623             CLOSE_WAIT
tcp        1      0 192.168.222.2:25            123.22.12.209:34788         CLOSE_WAIT
tcp        0      0 127.0.0.1:783               127.0.0.1:39543             CLOSE_WAIT
tcp        1      0 192.168.222.2:25            66.218.67.71:23182          CLOSE_WAIT
tcp        1      0 192.168.222.2:25            89.49.86.135:2334           CLOSE_WAIT
tcp        0      0 127.0.0.1:39583             127.0.0.1:783               FIN_WAIT2
tcp        0      0 127.0.0.1:39581             127.0.0.1:783               FIN_WAIT2
tcp        0      0 127.0.0.1:39578             127.0.0.1:783               FIN_WAIT2
tcp        0      0 127.0.0.1:39579             127.0.0.1:783               FIN_WAIT2
tcp        0      0 127.0.0.1:39577             127.0.0.1:783               FIN_WAIT2
tcp     9933      0 127.0.0.1:783               127.0.0.1:39558             CLOSE_WAIT
tcp        0      0 127.0.0.1:39558             127.0.0.1:783               FIN_WAIT2
tcp        0      0 127.0.0.1:39559             127.0.0.1:783               FIN_WAIT2
tcp        1      0 192.168.222.2:25            70.42.193.103:59805         CLOSE_WAIT
tcp        0      0 127.0.0.1:39557             127.0.0.1:783               FIN_WAIT2
tcp        0      0 127.0.0.1:39552             127.0.0.1:783               FIN_WAIT2
tcp        0      0 127.0.0.1:39564             127.0.0.1:783               FIN_WAIT2
tcp        0      0 127.0.0.1:39563             127.0.0.1:783               FIN_WAIT2
tcp     5853      0 127.0.0.1:783               127.0.0.1:39606             CLOSE_WAIT
tcp        0      0 127.0.0.1:39606             127.0.0.1:783               FIN_WAIT2
tcp        0      0 127.0.0.1:39607             127.0.0.1:783               FIN_WAIT2
tcp        0      0 127.0.0.1:39612             127.0.0.1:783               FIN_WAIT2
tcp        0      0 127.0.0.1:39610             127.0.0.1:783               FIN_WAIT2
tcp        0      0 127.0.0.1:39608             127.0.0.1:783               FIN_WAIT2
tcp        0      0 127.0.0.1:39585             127.0.0.1:783               FIN_WAIT2
tcp        0      0 127.0.0.1:39598             127.0.0.1:783               FIN_WAIT2
tcp        0      0 127.0.0.1:39599             127.0.0.1:783               FIN_WAIT2
tcp     9944      0 127.0.0.1:783               127.0.0.1:39638             CLOSE_WAIT
tcp        0      0 127.0.0.1:39638             127.0.0.1:783               FIN_WAIT2
tcp        0      0 127.0.0.1:39636             127.0.0.1:783               FIN_WAIT2
tcp        0      0 127.0.0.1:39634             127.0.0.1:783               FIN_WAIT2
tcp        0      0 127.0.0.1:39632             127.0.0.1:783               FIN_WAIT2
(and so on .....)

Any further ideas?


Offline raem

  • *
  • 3,972
  • +4/-0
Re: Too Many Connections, Sever Slows, Stops
« Reply #19 on: August 28, 2007, 02:01:21 AM »
newhopenet

Quote
  RBLList=zen.spamhaus.org

You could add more RBL lists, see the current suggestions for sme7.2
http://wiki.contribs.org/Updating_to_SME_7.2#DNSBL_Servers


Quote
.... reject mail with a score higher than 5.

Yes that's very low and you are probably rejecting real messages, I have seen lot's of legitimate messages get a spam score of 5. A rejection score of 10 or 12 would be more realistic.
What does this show ?
config show spamassassin


Quote
If I'm getting many connections, and I reduce the maximum number the server will deal with, won't that just cause additional rejection messages and additional delays?

You are reducing the number that the server will deal with at the same time. Your lower powered processor is trying to deal with too many connections, it can't handle them all, thus causing errors and delays.
I'd try changing the setting to 10, you only have a few users so you (I assume/guess) don't have hundreds of messages a minute coming in.
...

Offline raem

  • *
  • 3,972
  • +4/-0
Re: Too Many Connections, Sever Slows, Stops
« Reply #20 on: August 28, 2007, 02:14:40 AM »
newhopenet

Re number of connections, I meant to say
You can also reduce the number of concurrent connections that qmail will handle to reduce the load on your server, although I suspect if you configure RBL & spammassassin correctly then the 40 connections setting will probably be OK.
Given that you are running a lower powered server, I'd probably reduce that to 20 or even 10.
See ConcurrencyRemote in
config show qmail

config setprop qmail ConcurrencyRemote 10
signal-event email-update


Quote
RHSBL=enabled
    SBLList=dsn.rfc-ignorant.org

I'd also try disabling RHSBL as that can cause slowdown
...

Offline newhopenet

  • 16
  • +0/-0
Re: Too Many Connections, Sever Slows, Stops
« Reply #21 on: August 28, 2007, 02:26:57 AM »
Quote
You could add more RBL lists, see the current suggestions for sme7.2
OK -- I've added a couple.  A few of those did, in fact, cause a lot of false positives for us.  More than once we had mail from legit Yahoo Mail users rejected by some of those lists.  So, I'm cautious about them.

Code: [Select]
[root@david ~]# config show qpsmtpd
qpsmtpd=service
    Bcc=disabled
    BccMode=cc
    BccUser=maillog
    DNSBL=enabled
    LogLevel=6
    MaxScannerSize=25000000
    RBLList=multihop.dsbl.org:dnsbl-1.uceprotect.net:zen.spamhaus.org
    RHSBL=enabled
    RequireResolvableFromHost=no
    SBLList=dsn.rfc-ignorant.org
    access=public
    status=enabled
[root@david ~]#

Quote
that's very low and you are probably rejecting real messages
Yes, everyone tells me that, but I really don't think we are rejecting any real messages.  I watch it carefully -- and I check headers of emails regularly to see where they are scoring.  But, maybe something has changed recently...I don't know.  If you think I should try raising it, I will.


Quote
What does this show ?
config show spamassassin

Code: [Select]
[root@david ~]# config show spamassassin
spamassassin=service
    BayesAutoLearnThresholdNonspam=0.10
    BayesAutoLearnThresholdSpam=7.00
    DNSAvailable=yes
    MessageRetentionTime=90
    OkLanguages=all
    OkLocales=all
    RejectLevel=5
    ReportSafe=0
    Sensitivity=custom
    SkipRBLChecks=0
    SortSpam=disabled
    Subject=[SPAM]
    SubjectTag=disabled
    TagLevel=3
    UseBayes=1
    status=enabled
[root@david ~]#

Quote
I'd try changing the setting to 10, you only have a few users so you (I assume/guess) don't have hundreds of messages a minute coming in.

OK -- reading the wiki, it talks about that limit dealing with IMAP.  Correct me if I'm wrong here, but the command I saw was "db configuration setprop imap variable value".  This seems to deal with the number of mail clients who can connect to check their mail.  For me however, this could be zero.  No clients check their mail on my SME server.  The SME server is just a proxy for mail -- it passes all mail to my exchange box where all the user accounts reside.

Nevertheless, I did go ahead and reduce that value to 10.  Did I do the right thing?


-------  oops, Ok -- Saw your new post -----

Quote
Re number of connections, I meant to say
You can also reduce the number of concurrent connections that qmail will handle to reduce the load on your server, although I suspect if you configure RBL & spammassassin correctly then the 40 connections setting will probably be OK.
Given that you are running a lower powered server, I'd probably reduce that to 20 or even 10.
See ConcurrencyRemote in
config show qmail

config setprop qmail ConcurrencyRemote 10
signal-event email-update
OK.  Did that.  Down to 10.


At the moment, the mass number of connections has subsided.  But I feel a false sense of security, as this problem comes and goes randomly.





Offline newhopenet

  • 16
  • +0/-0
Re: Too Many Connections, Sever Slows, Stops
« Reply #22 on: August 28, 2007, 02:34:40 AM »
When it comes to us using a lower powered system, I should point out that we don't use many SME features.

No remote access, no FTP, not a part of a workgroup or domain, no printers or print server functions, no users (except admin), no groups, no used I-Bays, no one accessing files, no POP3, no IMAP, no webmail, no outgoing mail.

Since the server is literally only handing incoming mail and nothing else, shouldn't 550MHz with 1GB of RAM be able to handle this task?  It has done well up until 3 days ago???


Offline raem

  • *
  • 3,972
  • +4/-0
Re: Too Many Connections, Sever Slows, Stops
« Reply #23 on: August 28, 2007, 03:29:06 AM »
newhopenet

Quote
...I really don't think we are rejecting any real messages.  I watch it carefully -- and I check headers of emails regularly to see where they are scoring.

Your tag level is 3 which is the score level that messages would get moved to the junkmail folder if you used that function (you are using exchange instead so I don't know what you do with tagged messages), but your reject level is 4.
Reject means that the messages get rejected at smtp level, you never receive them so how can you read them !


Quote
At the moment, the mass number of connections has subsided.  But I feel a false sense of security, as this problem comes and goes randomly.

Well that's the nature of spam & spammers & hackers & crackers, there one minute gone the next. Cyclic behaviour is OK and to be expected. Remember that RBL lists will pick up new spammers within a few hours or so, so it takes a finite time for new spammers messages to start getting rejected.
In the meantime though the reduced number of connections will keep your server from overloading, qmail/qpsmtpd/clamav/spamassassin will use all memory & processor power too if the messages are laden with viruses or spam content.
The box is OK for your usage pattern, but the  lower setting suggested is required to prevent lockups.
I have one sme7.2 server that is Celeron 500MHz with 256Mb RAM, serving mail to 7 users in a busy small office, plus printing & file serving & a few small web sites and it runs perfectly OK, tweaked appropriately of course.
...

Offline newhopenet

  • 16
  • +0/-0
Re: Too Many Connections, Sever Slows, Stops
« Reply #24 on: August 28, 2007, 03:48:19 AM »
Thanks so much for your advice and your time. 

Obviously, you're right that I can't be reading messages that hit the reject level.  Messages that hit our tag level are sorted (by exchange) into the user's junk mail folder in Outlook.  Those, I review.  As I do any uncaught SPAM.  It's just that we've never had any complaints about people's mail not getting through (until recent days).  I'll raise the level a bit.

I think I'm also having spamassassin problems.  All of today's mail has had no tests performed on it, and I'm getting SPAM in my inbox today as well.  I'm going to do a search on the forum since this may be an unrelated problem.  Let me know if you think it is related.

Header Sample is below, this sender is in my white list.  On mail they sent yesterday, it scored a -100, today it scores a 0.0

Quote
X-Virus-Checked: Checked by ClamAV on newhopefellowship.com
X-Spam-Status: No, hits=0.0 required=3.0
   tests=
X-Spam-Check-By: newhopefellowship.com

from spamd/current (not really sure if this looks like normal operation or not...

Code: [Select]
2007-08-27 20:13:30.488485500 [7027] info: prefork: child states: II
2007-08-27 20:18:22.742706500 [7044] info: spamd: connection from localhost [127.0.0.1] at port 33472
2007-08-27 20:18:22.774011500 [7044] info: spamd: checking message <-WAYAWzToXA1zb5DJzx5sQ@xendep.com> for qpsmtpd:1005
2007-08-27 20:18:23.167034500 [7044] info: spamd: clean message (0.0/3.0) for qpsmtpd:1005 in 0.4 seconds, 2706 bytes.
2007-08-27 20:18:23.167896500 [7044] info: spamd: result: . 0 - scantime=0.4,size=2706,user=qpsmtpd,uid=1005,required_score=3.0,rhost=localhost,raddr=127.0.0.1,rport=33472,mid=<-WAYAWzToXA1zb5DJzx5sQ@xendep.com>,autolearn=failed
2007-08-27 20:18:23.689652500 [7027] info: prefork: child states: II
2007-08-27 20:20:09.691137500 [7044] info: spamd: connection from localhost [127.0.0.1] at port 33475
2007-08-27 20:20:10.106439500 [7044] info: spamd: checking message <050401c7e911$931744c0$6401a8c0@CRAPPER> for qpsmtpd:1005
2007-08-27 20:20:13.913168500 [7044] info: spamd: clean message (1.5/3.0) for qpsmtpd:1005 in 4.2 seconds, 36387 bytes.
2007-08-27 20:20:13.914040500 [7044] info: spamd: result: . 1 - MY_CID_AND_ARIAL2 scantime=4.2,size=36387,user=qpsmtpd,uid=1005,required_score=3.0,rhost=localhost,raddr=127.0.0.1,rport=33475,mid=<050401c7e911$931744c0$6401a8c0@CRAPPER>,autolearn=no
2007-08-27 20:20:14.737335500 [7027] info: prefork: child states: II
2007-08-27 20:27:30.016748500 [7044] info: spamd: connection from localhost [127.0.0.1] at port 33479
2007-08-27 20:27:30.055784500 [7044] info: spamd: checking message <000501c62de1$c7159610$88fc087b@zhang> for qpsmtpd:1005
2007-08-27 20:27:32.391804500 [7044] info: spamd: clean message (2.1/3.0) for qpsmtpd:1005 in 2.4 seconds, 1916 bytes.
2007-08-27 20:27:32.392696500 [7044] info: spamd: result: . 2 - MIME_QP_LONG_LINE,SARE_SXLIFE scantime=2.4,size=1916,user=qpsmtpd,uid=1005,required_score=3.0,rhost=localhost,raddr=127.0.0.1,rport=33479,mid=<000501c62de1$c7159610$88fc087b@zhang>,autolearn=no
2007-08-27 20:27:32.860821500 [7027] info: prefork: child states: II
2007-08-27 20:28:56.759171500 [7044] info: spamd: connection from localhost [127.0.0.1] at port 33482
2007-08-27 20:28:56.820361500 [7044] info: spamd: checking message <rd1808_101-33382-julienewhopefellowship.com@smtp1.rapiddeliveryserver.com> for qpsmtpd:1005
2007-08-27 20:28:58.131037500 [7044] info: spamd: clean message (0.0/3.0) for qpsmtpd:1005 in 1.4 seconds, 8648 bytes.
2007-08-27 20:28:58.131048500 [7044] info: spamd: result: . 0 - scantime=1.4,size=8648,user=qpsmtpd,uid=1005,required_score=3.0,rhost=localhost,raddr=127.0.0.1,rport=33482,mid=<rd1808_101-33382-julienewhopefellowship.com@smtp1.rapiddeliveryserver.com>,autolearn=failed
2007-08-27 20:28:58.735779500 [7027] info: prefork: child states: II

« Last Edit: August 28, 2007, 03:53:54 AM by newhopenet »

Offline raem

  • *
  • 3,972
  • +4/-0
Re: Too Many Connections, Sever Slows, Stops
« Reply #25 on: August 28, 2007, 04:36:18 AM »
Quote from: newhopenet


[quote
All of today's mail has had no tests performed on it, and I'm getting SPAM in my inbox today as well.

I can only suggest to check the following:
Check correct repositories are enabled see wiki (re upgrading) for details
Run
yum clean all
run
yum list updates
to see if any more updates are available
Then if required
yum update


Then check ALL your email related settings in server manager VERY CAREFULLY, redo and save them in case settings have been corrupted.

You say:
"This problem came up very suddenly two days ago, prior to that our system had been operating very smoothly for over a year."

What did you do to the system prior to that ?


>  I'll raise the level a bit.

To about 12 if you want to be sure of receiving all legitimate email.


Look in other log files for clues

...

Offline kruhm

  • *
  • 680
  • +0/-0
Re: Too Many Connections, Sever Slows, Stops
« Reply #26 on: August 28, 2007, 07:35:10 AM »
is this really THE SmoothWall dickmorrell?

Offline raem

  • *
  • 3,972
  • +4/-0
Re: Too Many Connections, Sever Slows, Stops
« Reply #27 on: August 28, 2007, 08:58:46 AM »
newhopenet

Quote
I think I'm also having spamassassin problems.  All of today's mail has had no tests performed on it, and I'm getting SPAM in my inbox today as well.


There is another thread that refers to updating again. There was a new version of spamassassin released that fixes some problems.
I thought this was released a few days/week ago, when there was two or three spamassassin updates in a row each day, but maybe some people got the first update and not the later ones.
...

Offline mmccarn

  • *
  • 2,627
  • +10/-0
Re: Too Many Connections, Sever Slows, Stops
« Reply #28 on: August 28, 2007, 02:46:49 PM »
Quote from: newhopnet
At the moment, the mass number of connections has subsided.  But I feel a false sense of security, as this problem comes and goes randomly.
You seem to be seeing behavior similar to what I have seen on 4 separate SME 7 servers since last November.

In every case the problem would pop up, give me headaches for a few days to a couple weeks, then go away.

I fought with this off and on last November on a couple servers -- then it went away.

I fought with this in January on one server, then it went away until about 3 weeks ago.

I fought with it again in May or June on a different server -- then the client chose to bypass the SME and have email delivered directly to the Exchange server.

I can *always* control the situation by creating iptables block rules for destination =port 25 on my server and sources = all hosts that have been blocked by either dnsbl or check_earlytalker from /var/log/qpsmtpd/* and restarting qpsmtpd.

The hardware in question ranges from underpowered (pIII / 933MHz / 192MB RAM) to virtual (running on dual xeon 2.8GHz hardware) to 'should-be-ok' (xeon 2.8GHz, 4GB RAM...). 

All of my systems are gateways for internal mail servers - as yours seems to be...

I've tried adjusting the various settings, enabling & disabling various modules, all with no concrete results.



Offline CharlieBrady

  • *
  • 6,918
  • +3/-0
Re: Too Many Connections, Sever Slows, Stops
« Reply #29 on: August 28, 2007, 09:24:16 PM »
is this really THE SmoothWall dickmorrell?

Yes, same Dick. Sometimes he knows what he is talking about, others not.