How to slowdown email delivery to certain domain

Hello every Body
I recently setup an email server for a client that use it for sending newsletter, he use mailwizz as plateform
my problem i get this message in log for domain orange.fr and wanadoo.fr
host smtp-in.orange.fr[193.252.22.65] refused to talk to me: 421 mwinf5c84 ME Trop de connexions, veuillez verifier votre configuration. Too many connections, slow down. OFR004_104 [104])

i found in some forum that i need the add specific parameter in postfix
https://www.zapoyok.info/2011/01/01/orangewanadoo-et-«-too-many-connections-slow-down-ofr004_104-104-»/

but it can’t be parmanent so, nethserver load back the original config

Thank you

Nethserver uses templates for writing config files, so you may need to add a custom template for your custom config.

1 Like

When you made the changes to the configuration files, did you make them exactly as in the link you reported?
If yes, we can see to create some custom templates to try to solve the problem.

mkdir -p /etc/e-smith/templates-custom/etc/postfix/transport
cd /etc/e-smith/templates-custom/etc/postfix/transport

=====

vi 90slow

#
# custom: 90slow
#
wanadoo.com slow:
wanadoo.fr slow:
orange.com slow:
orange.fr slow:

=====

mkdir -p /etc/e-smith/templates-custom/etc/postfix/master.cf
cd /etc/e-smith/templates-custom/etc/postfix/master.cf

=====

vi 90slow

#
# custom: 90slow
#
slow      unix  -       -       n       -       5       smtp
   -o syslog_name=postfix-slow
   -o smtp_destination_concurrency_limit=3
   -o slow_destination_rate_delay=1

=====

mkdir -p /etc/e-smith/templates-custom/etc/postfix/main.cf
cd /etc/e-smith/templates-custom/etc/postfix/main.cf

=====

vi 90slow

#
# custom: 90slow
#    
slow_destination_recipient_limit = 20
slow_destination_concurrency_limit = 2

=====

expand-template /etc/postfix/transport
expand-template /etc/postifx/master.cf
expand-template /etc/postfix/main.cf
postmap /etc/postfix/transport
signal-event nethserver-mail-server-update
signal-event nethserver-mail-server-save
3 Likes