> You can easily verify in Postfix logs that smtp_destination_rate_delay
> works.

I must have done something wrong because it does not seem to behave correctly.

I’ve added this config to main.cf:

smtp_destination_concurrency_limit = 4
smtp_destination_rate_delay = 1s
libero_destination_concurrency_limit = 2
libero_destination_rate_delay = 6s
alice_destination_concurrency_limit = 1
alice_destination_rate_delay = 7s
turtle_destination_concurrency_limit = 2
turtle_destination_rate_delay = 6s

the first two are for this thread, while the following are custom transport for 
specific domains. in master.cf I’ve restored the standard smtp transport, with 
the additional ones above.
When I flush the queue for the exact same time (15:47:16) I’m getting 15 
attempted connections:

Jan  3 15:47:16 www postfix/smtp[7684]: connect to 
mail.testowe24.pl[151.80.202.137]:25: Connection refused
Jan  3 15:47:16 www postfix/smtp[7684]: 8BC90602808: 
to=<censor...@testowe24.pl>, relay=none, delay=19636, delays=19636/0.07/0.03/0, 
dsn=4.4.1, status=deferred (connect to mail.testowe24.pl[151.80.202.137]:25: 
Connection refused)
Jan  3 15:47:16 www postfix/smtp[7684]: 891FB602AD2: 
to=<censor...@cbdolejki.pl>, relay=none, delay=19383, delays=19383/0.11/0.01/0, 
dsn=4.4.3, status=deferred (Host or domain name not found. Name service error 
for name=cbdolejki.pl type=MX: Host not found, try again)
Jan  3 15:47:16 www postfix/smtp[7698]: connect to 
blertyd.eu[198.37.114.34]:25: Connection refused
Jan  3 15:47:16 www postfix/smtp[7698]: 40E52602A5A: to=<censor...@blertyd.eu>, 
relay=none, delay=19389, delays=19389/0.03/0.33/0, dsn=4.4.1, status=deferred 
(connect to blertyd.eu[198.37.114.34]:25: Connection refused)
Jan  3 15:47:16 www postfix/smtp[7691]: 290A3602C20: host 
ksg.ovh[2001:41d0:8:6f14::1] said: 454 4.7.1 <clea...@ksg.ovh>: Relay access 
denied (in reply to RCPT TO command)
Jan  3 15:47:16 www postfix/smtp[7705]: C6A14602B99: 
to=<censor...@tepgames.com>, relay=tepgames.com[212.129.45.37]:25, delay=19329, 
delays=19329/0.04/0.22/0, dsn=4.4.2, status=deferred (lost connection with 
tepgames.com[212.129.45.37] while receiving the initial server greeting)
Jan  3 15:47:16 www postfix/smtp[7690]: 84507602EA2: 
to=<censor...@maastera.info>, relay=none, delay=19195, 
delays=19194/0.11/0.59/0, dsn=4.4.3, status=deferred (Host or domain name not 
found. Name service error for name=maastera.info type=MX: Host not found, try 
again)
Jan  3 15:47:16 www postfix/smtp[7680]: 37357602E3E: to=<censor...@ruks.info>, 
relay=none, delay=19197, delays=19197/0.04/0.72/0, dsn=4.4.3, status=deferred 
(Host or domain name not found. Name service error for name=ruks.info type=MX: 
Host not found, try again)
Jan  3 15:47:16 www postfix/smtp[7681]: 3E102602E50: 
to=<censor...@lupiko.info>, relay=none, delay=19196, delays=19196/0.04/0.72/0, 
dsn=4.4.3, status=deferred (Host or domain name not found. Name service error 
for name=lupiko.info type=MX: Host not found, try again)
Jan  3 15:47:16 www postfix/smtp[7698]: connect to 
gigsme.com[46.166.189.98]:25: Connection refused
Jan  3 15:47:16 www postfix/smtp[7698]: D49CC6029B8: to=<censor...@gigsme.com>, 
relay=none, delay=19504, delays=19504/0.02/0.16/0, dsn=4.4.1, status=deferred 
(connect to gigsme.com[46.166.189.98]:25: Connection refused)
Jan  3 15:47:16 www postfix/smtp[7706]: CF54E602725: to=<censo...@alice.it>, 
relay=smtp.aliceposta.it[82.57.200.133]:25, delay=19756, 
delays=19756/0.02/0.09/0.22, dsn=2.0.0, status=sent (250 <5B8F9E5B1C3DBF1D> 
Mail accepted)
Jan  3 15:47:16 www postfix/smtp[7686]: 883EF602DF3: to=<censor...@nulki.info>, 
relay=none, delay=19196, delays=19195/0.08/0.7/0, dsn=4.4.3, status=deferred 
(Host or domain name not found. Name service error for name=nulki.info type=MX: 
Host not found, try again)
Jan  3 15:47:16 www postfix/smtp[7684]: 850AB602A65: 
to=<censor...@mailbox.co.pl>, relay=none, delay=19385, 
delays=19384/0.12/0.66/0, dsn=4.4.3, status=deferred (Host or domain name not 
found. Name service error for name=mailbox.co.pl type=MX: Host not found, try 
again)
Jan  3 15:47:16 www postfix/smtp[7699]: E63A46029A5: 
to=<censor...@przedszkole-pruszkow.pl>, relay=none, delay=19505, 
delays=19504/0.02/0.56/0, dsn=4.4.3, status=deferred (Host or domain name not 
found. Name service error for name=przedszkole-pruszkow.pl type=MX: Host not 
found, try again)
Jan  3 15:47:16 www postfix/smtp[7691]: 290A3602C20: to=<censor...@ksg.ovh>, 
relay=ksg.ovh[37.59.52.20]:25, delay=19316, delays=19315/0.08/0.72/0.03, 
dsn=4.7.1, status=deferred (host ksg.ovh[37.59.52.20] said: 454 4.7.1 
<clea...@ksg.ovh>: Relay access denied (in reply to RCPT TO command))
Jan  3 15:47:16 www postfix/smtp[7700]: EF46B602D05: 
to=<censor...@miagency.co.pl>, relay=none, delay=19267, 
delays=19266/0.04/0.62/0, dsn=4.4.3, status=deferred (Host or domain name not 
found. Name service error for name=miagency.co.pl type=MX: Host not found, try 
again)
Jan  3 15:47:16 www postfix/smtp[7704]: C5BF2602947: 
to=<censor...@emailvip.co.pl>, relay=none, delay=19498, 
delays=19498/0.03/0.61/0, dsn=4.4.3, status=deferred (Host or domain name not 
found. Name service error for name=emailvip.co.pl type=MX: Host not found, try 
again)

Did I do something wrong or misunderstood the behaviour?
thanks

Reply via email to