sending email to gmail.com, orange.fr

nicolas-trust

New Member
Feb 5, 2024
1
0
1
Hi
i have issue sending email to gmail.com or orange.fr (ISP in France)
with error too many connexion slow down

Before using proxmox PMG, i was using centos server and postfix.
To solve this problem, i add an entry in postfix in transport table with

domain.tld smtp:domain.tld
but for gmail and other problematic domain :

gmail.com slow:
orange.fr slow:

How can i reproduce this configuration to slow sending mail to specific destination.?

Thanks for help

2024-02-05T19:56:23.229903+01:00 mx4 postfix/qmgr[195092]: 9305B6094B: from=<efha@boisdechauffagealsace.com>, size=6129, nrcpt=1 (queue active)
2024-02-05T19:56:27.718243+01:00 mx4 postfix/smtp[213114]: 9305B6094B: to=<ckowalik@orange.fr>, relay=smtp-in.orange.fr[80.12.26.32]:25, delay=1496, delays=1492/0.03/4.5/0, dsn=4.0.0, status=deferred (host smtp-in.orange.fr[80.12.26.32] refused to talk to me: 421 opmta1mti20nd1 smtp.orange.fr X48jr4a7c3gIY Service refuse. Veuillez essayer plus tard. Service refused, please try later. OFR004_107 [107])
2024-02-05T20:21:23.553071+01:00 mx4 postfix/qmgr[195092]: 9305B6094B: from=<efha@boisdechauffagealsace.com>, size=6129, nrcpt=1 (queue active)
2024-02-05T20:21:27.827273+01:00 mx4 postfix/smtp[213932]: 9305B6094B: to=<ckowalik@orange.fr>, relay=smtp-in.orange.fr[80.12.26.32]:25, delay=2996, delays=2992/0.03/4.2/0, dsn=4.0.0, status=deferred (host smtp-in.orange.fr[80.12.26.32] refused to talk to me: 421 opmta1mti20nd1 smtp.orange.fr X4Wvr4gFn3gIY Service refuse. Veuillez essayer plus tard. Service refused, please try later. OFR004_107 [107])
2024-02-05T21:11:23.424191+01:00 mx4 postfix/qmgr[195092]: 9305B6094B: from=<efha@boisdechauffagealsace.com>, size=6129, nrcpt=1 (queue active)
2024-02-05T21:11:29.850717+01:00 mx4 postfix/smtp[215617]: 9305B6094B: to=<ckowalik@orange.fr>, relay=smtp-in.orange.fr[80.12.26.32]:25, delay=5998, delays=5992/0.06/6.4/0, dsn=4.0.0, status=deferred (host smtp-in.orange.fr[80.12.26.32] refused to talk to me: 421 opmta1mti20nd1 smtp.orange.fr X5JJr4sEU3gIY Service refuse. Veuillez essayer plus tard. Service refused, please try later. OFR004_107 [107])
2024-02-05T22:12:57.527102+01:00 mx4 postfix/qmgr[195092]: 9305B6094B: from=<efha@boisdechauffagealsace.com>, size=6129, nrcpt=1 (queue active)
2024-02-05T22:13:05.884981+01:00 mx4 postfix/smtp[217805]: 9305B6094B: to=<ckowalik@orange.fr>, relay=smtp-in.orange.fr[80.12.26.32]:25, delay=9694, delays=9686/0.06/8.3/0, dsn=4.0.0, status=deferred (host smtp-in.orange.fr[80.12.26.32] refused to talk to me: 421 opmta1mti20nd1 smtp.orange.fr X6Gtr55jq3gIY Trop de connexions, veuillez verifier votre configuration. Too many connections, slow down. OFR004_104 [104])
 
We have exactly the same problem.
No matter what we do, the mails are rejected by the provider with a slow down.

What settings do I need to make to solve the problem?
 
Hi, We also tried to use the classics rate limit of postfix :

https://wiki.deimos.fr/Postfix:_limit_outgoing_mail_throttling

We can modify the template for the main and master but if we add a domain with the slow rules in the transport we get the following error when applying :

parse error in '/etc/pmg/transport': orange.fr slow: - wrong format at /usr/share/perl5/PMG/Config.pm line 1275, <GEN20> line 33.

We also tried to add a default rate limit but without success :

default_destination_rate_delay = 5s
 
have not tried this explicitly - but from a quick glance at the postfix docs - the transport_maps can be multiple tables:
try adding another hash:/etc/pmg/rate-limit-transports file to the template and add your modifications there

I hope this helps!
 
Thank for the answer, I didn't know we could do that.



We make the fallowing modificatioon to our main gateway :

Code:
transport_maps =
        hash:/etc/pmg/transport
        hash:/etc/pmg/rate-limit-transports

And add the following domain to the file :

Code:
orange.fr slow:
wanadoo.fr slow:
laposte.net slow:
free.fr slow:
hotmail.fr slow:
outlook.fr slow:
gmail.com slow:
yahoo.fr slow:


I needed to create the file "rate-limit-transports" manualy to the 2 node even after the sync

I continue to monitor over the next few days
 
Quick update don't forget :

Code:
postmap  /etc/pmg/rate-limit-transports

But using multiple transport map work for us