Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Provide a "slow" transport for Postfix #2213

Closed
1 of 3 tasks
FabriceLapeyrere opened this issue Feb 2, 2022 · 1 comment · Fixed by #2255
Closed
1 of 3 tasks

Provide a "slow" transport for Postfix #2213

FabriceLapeyrere opened this issue Feb 2, 2022 · 1 comment · Fixed by #2255
Labels
type/feature Introduces a new feature

Comments

@FabriceLapeyrere
Copy link

Environment & Versions

Environment

  • docker-compose
  • kubernetes
  • docker swarm

Versions

1.9

Description

Orange, a mainstream french ISP, and a few others, have a rate limit : without a slow transport, I get deferred messages with this : "Too many connections, slow down." It is a known issue https://blog.network-studio.fr/2011/06/30/too-many-connections-slow-down/

I managed to get it done with the overrides/ files :

overrides/postfix.cf :

transport_maps = socketmap:unix:/tmp/podop.socket:transport lmdb:/etc/postfix/transport.map

slow_destination_concurrency_limit = 1
slow_destination_recipient_limit = 20
slow_destination_rate_delay = 5s
slow_destination_concurrency_failed_cohort_limit=10

overrides/postfix.master :

slow/unix= slow unix - - n - 5 smtp -o syslog_name=postfix-slow

overrides/transport.map :

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

I did not have time to fully test it, but it seems to work. Configuration values may need a fine tuning...

It would be nice to have such "slow" transport built in in Mailu, with an override possibility to edit the domain list.

@nextgens
Copy link
Contributor

@FabriceLapeyrere would you mind giving #2255 a try please?

You should be able to pull the images directly from dockerhub once they are built (docker pull mailuci/postfix:pr-2255)

@bors bors bot closed this as completed in 68d3d67 Mar 18, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type/feature Introduces a new feature
Projects
None yet
2 participants