SQL Grey / Postfix Throttling - Fix

Report bugs and workarounds
Post Reply
sharktech
Posts: 89
Joined: 14 Jan 2014 14:23

SQL Grey / Postfix Throttling - Fix

Post by sharktech »

Hi all

After upgrading to 3.0.0.9 I had the issue of tonnes of emails being throttled by postfix and sqlgrey. From what me and shawn can find it looks to be new functionality within postfix 3.

the log shows :

Mar 24 17:30:31 spam sqlgrey: grey: throttling: x.x.x.x, bounce25817.1630988@domain.site -> email@domain.co.uk
Mar 24 17:30:31 spam postfix/smtpd[20083]: NOQUEUE: reject: RCPT from domain.site[x.x.x.x]: 451 4.7.1 <email@domain.co.uk>: Recipient address rejected: Throttling too many connections from new source - Try again later.; from=<bounce25817.1630988@domain.site> to=<email@domain.co.uk> proto=ESMTP helo=<dartmone.site


I fixed mine by adding smtpd_client_connection_rate_limit = 0 to /etc/postfix/main.cf

This disabled throttling totally so I would probably set it to a high number like 100 and see how you go.

Cheers
cardins2u
Posts: 4
Joined: 05 Apr 2016 15:49

Re: SQL Grey / Postfix Throttling - Fix

Post by cardins2u »

Im getting the same eerror but this fix doesn't fix it. Any suggestion?
cardins2u
Posts: 4
Joined: 05 Apr 2016 15:49

Re: SQL Grey / Postfix Throttling - Fix

Post by cardins2u »

this happens with amazon servers and hotmail address.


inbound emails get thottle and rejeceted
bostjanc
Posts: 165
Joined: 01 Jun 2016 17:18

Re: SQL Grey / Postfix Throttling - Fix

Post by bostjanc »

Hi guys.
What is the proper solution?
We have the same issue here.
Putting that line in postfix main.cf also did not help us.
We have even put that problematic domain:
-ON WHITELIST
-ON GREYLIST / OPT OUT DOMAIN

but messages get throttling into infinity.
Restarting EFA did not help.
After the restart it saids that message will be greylisted for 5 minutes, but then it goes into throttling mode again :(
PLEASE HELP!
Jul 1 13:19:32 efa postfix/smtpd[32219]: NOQUEUE: reject: RCPT from mail-bl2nam02on0118.outbound.protection.outlook.com[104.47.38.118]: 451 4.7.1 <MY-MAIL@MY-DOMAIN.com>: Recipient address rejected: Greylisted for 5 minutes; from=<SENDER@HISDOMAIN.com> to=<MY-MAIL@MY-DOMAIN.com
> proto=ESMTP helo=<NAM02-BL2-obe.outbound.protection.outlook.com>
Jul 1 14:20:32 efa sqlgrey: grey: throttling: 104.47.32(104.47.32.111), SENDER@HISDOMAIN.com -> MY-MAIL@MY-DOMAIN.com
Jul 1 14:20:32 efa postfix/smtpd[12669]: NOQUEUE: reject: RCPT from mail-sn1nam01on0111.outbound.protection.outlook.com[104.47.32.111]: 451 4.7.1 <MY-MAIL@MY-DOMAIN.com>: Recipient address rejected: Throttling too many connections from new source - Try again later.; from=<SENDER@HISDOMAIN.com> to=<MY-MAIL@MY-DOMAIN.com
> proto=ESMTP helo=<NAM01-SN1-obe.outbound.protection.outlook.com>
User avatar
shawniverson
Posts: 3649
Joined: 13 Jan 2014 23:30
Location: Indianapolis, Indiana USA
Contact:

Re: SQL Grey / Postfix Throttling - Fix

Post by shawniverson »

Take a look at this:


/etc/sqlgrey/sqlgrey.conf

Code: Select all

## Throttling too many new entries from new host
# Setting this optional parameter will refuse an excessive number of
# new entries in the connect table from the same host, in the following
# manner:
# - If there are already "connect_src_throttle" entries in the connect
#   table from the same host (e-mails which have not been retried yet)
# - And there is NO entry for this host in domain_awl
# - And there are LESS than "connect_src_throttle" entries in the
#   from_awl table for this host
# THEN further incoming connections from this host will be (temporarily)
# refused without new entries being created in the connect table (until
# some already waiting entries have been successfully retried).
# This feature may prevent the connect table from growing too big and
# being polluted by spambots, viruses, zombie machines and the like.
# If set to "0" (default), this feature won't be used.
connect_src_throttle = 5
bostjanc
Posts: 165
Joined: 01 Jun 2016 17:18

Re: SQL Grey / Postfix Throttling - Fix

Post by bostjanc »

Thank you very much for the reply.
Changing the value (connect_src_throttle = 5) to 0 and restarting the sqlgrey did the trick.
Now mails got delivered.
There is still one unsolved mistery to me, why does this domain even if it's ON GREYLIST / OPT OUT DOMAIN, still being greylisted?

Thank you again.
With best regards
Post Reply