Disable automatic blocking
I have the issue that the the IP 172.17.0.1 gets automatically blocked periodically and this results in blocking all emails in and out to my poste pro v2.07 pro installation. I did not have this issue in v2.06 pro
- Is there a way to disable automatic blocking?
- Why are all connections listed as being from 172.17.0.1 an not from their real public IP ?
Comments (7)
-
reporter -
reporter Still have the issue that original ips are not listed, but only the proxied ip of docker
-
repo owner Plugin block_bad_connections counts wasted SMTP connections. It means that any connection which ends without sending email is counted and if counter hits treshold host get blocked.
With "all connections" you mean at users log or really all connections including SMTP ones? Do you have some non-common docker setup? Custom firewall with nating?
-
reporter I have docker in bridge mode. With all connections I mean all connections incl. smtp ones. So any connection is seen as from 172.17.0.1. This is why blocking 172.17.0.1 is so fatal ...
Unfortunately, 172.17.0.1 still got blocked over night, so my question still is: where can I disable autoblocking? Setting value to false in /opt/haraka-smtp/config/block_bad_connections.ini did not seem to work!
-
reporter Ok, I think I need to disable it in the following file as well: /opt/haraka-submission/config/block_bad_connections.ini
-
repo owner I am more worried about "real" IP issue. It causes block_bad_connections plugin working bad and it is kind of miracle you have not hit issue before because there are other plugins working with counters per IP (spamfilter, ralay, karma...). I would definitely recommend to try solve IP issue first.
Thing is that container itself is not modifiing IP headers itself so it fully depends on what host system deliver to him. Thats why I am asking what is your docker setup and afaik default bridge mode should not work as you describe - it seems that you have something like masquerade for docker subnets.
-
repo owner - changed status to resolved
fix
#345optionally disable connection blocking→ <<cset 3770cf81af24>>
- Log in to comment
Ok, I think I've found how to disable the autoblock function, it's configured in /opt/haraka-smtp/config/block_bad_connections.ini