LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
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 05-29-2015, 03:04 AM   #1
mariogarcia
Member
 
Registered: Sep 2005
Distribution: debian, solaris 10
Posts: 202

Rep: Reputation: 31
sendmail rejecting messages with error connection limit rate exceeded.


I am running debian jessie with sendmail 8.14.4. I do not find where is the setting to disable the mails to be rejected for a certain host and i get periodically this message:

Code:
May 28 16:20:30 mx6 sm-mta[14808]: ruleset=check_relay, arg1=[x.x.x.x], arg2=x.x.x.x, relay=[x.x.x.x], reject=421 4.3.2 Connection rate limit exceeded
I have removed from sendmail.mc the configuration

Code:
define(confCONNECTION_RATE_THROTTLE',15')dnl
 
define(confCONNECTION_RATE_WINDOW_SIZE',60s')dnl
still the messages are rejected which I do not understand because those option would delay the messages and not reject them.

is there a way to disable for certain domains that there is no connection limit at all? need to recompile? downgrade? I am using sendmail installed via apt-get.

thank you.
 
Old 05-29-2015, 06:04 AM   #2
kmhuntly
Member
 
Registered: Mar 2015
Location: Cheektowaga, NY
Distribution: ArchLinux
Posts: 34

Rep: Reputation: 7
sendmail rejecting messages with error connection limit rate exceeded.

CONNECTION_RATE_THROTTLE

This sets a limit on the number of new connections per second. It helps protect you against mail-bombs and similar denial-of-service attacks.

define(`confCONNECTION_RATE_THROTTLE', `100')dnl

If the rate goes above the limit, new connections are rejected and the sending mailers have to retry later.
 
Old 05-29-2015, 07:19 AM   #3
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
Quote:
I have removed from sendmail.mc the configuration

define(confCONNECTION_RATE_THROTTLE',15')dnl

define(confCONNECTION_RATE_WINDOW_SIZE',60s')dnl

still the messages are rejected which I do not understand because those option would delay the messages and not reject them.

is there a way to disable for certain domains that there is no connection limit at all? need to recompile? downgrade? I am using sendmail installed via apt-get.
After editing sendmail.mc you need to recompile it to create the corresponding sendmail.cf:
Code:
m4 /etc/mail/sendmail.mc > /etc/mail/sendmail.cf
Don't forget to backup both files in case something goes wrong. Then restart the sendmail service

Or you can just disable throttling for the host in question. Edit/etc/mail/access and add:
Code:
ClientRate: x.x.x.x 0
Then run:
Code:
makemap hash /etc/mail/access < /etc/mail/access
 
Old 05-29-2015, 07:50 AM   #4
mariogarcia
Member
 
Registered: Sep 2005
Distribution: debian, solaris 10
Posts: 202

Original Poster
Rep: Reputation: 31
Hello,
thank you for your help..


I understand that CONNECTION_RATE_THROTTLE delays the message do not reject it.

i see this on the doc online i find:

define(`confCONNECTION_RATE_THROTTLE', `5')dnl
This defines the overall number of concurrent connection the server accepts per second, before queuing incoming connection-request regardless of the host. The connections will not be rejected but stalled until the next second. This means that for the above example that when 20 connection-requests arrive, the first five (1-5) are processed in second one, the second five (6-10) in second two, the third five (11-15) in second three, and the final five (16-20) in second four.

this is not my case as my connection are simple rejected

I think I may have found the issue: sendmail.mc has this two rules:

dnl # Stop connections that overflow our concurrent and time connection rates
FEATURE(`conncontrol', `nodelay', `terminate')dnl
FEATURE(`ratecontrol', `nodelay', `terminate')dnl

but how can I find the current connection rates.

I will test with applying the rule ClientRate on the access DB.

thank you all for your answers.

Mario.
 
  


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
File size limit exceeded error nobitavn Linux - Software 2 10-13-2010 02:55 AM
File size limit exceeded error athomas Linux - Software 9 05-10-2010 04:41 AM
pdftk 'File size limit exceeded' error ysrini Linux - Software 1 04-13-2010 10:17 AM
File Size Limit Exceeded error bhassel Red Hat 2 01-16-2008 05:39 PM
Hep me---File size limit exceeded--error Ratheeshshenoy Linux - General 6 07-30-2007 05:47 AM

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

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