Hi all.
Personally I need this and maybe other people would benefit such feature.
I want possibility to use the scripting in order to control the throughput for specific user.
It could be by registering user ip address upon connection and setting X kb/s limit as maximum transfer speed between hmailserver and this registered IP.
This way the user always will send emails without the need of rejections.
I'm mentioning this because it is doable without feature request to throttle emails by matching the last send time and current and if the next email is too quick for the smtp user it can be rejected with hard bounce.
Bandwidth shaping for specific user/ip
Re: Bandwidth shaping for specific user/ip
You may want to visit this page and scroll down to Option Three: https://www.howtogeek.com/347711/how-to ... n-windows/Svetoslav92 wrote: ↑2020-11-15 21:15Hi all.
Personally I need this and maybe other people would benefit such feature.
I want possibility to use the scripting in order to control the throughput for specific user.
It could be by registering user ip address upon connection and setting X kb/s limit as maximum transfer speed between hmailserver and this registered IP.
This way the user always will send emails without the need of rejections.
I'm mentioning this because it is doable without feature request to throttle emails by matching the last send time and current and if the next email is too quick for the smtp user it can be rejected with hard bounce.
SørenR.
Woke is Marxism advancing through Maoist cultural revolution.
Woke is Marxism advancing through Maoist cultural revolution.
-
- New user
- Posts: 6
- Joined: 2018-12-22 14:14
Re: Bandwidth shaping for specific user/ip
I already have TMeter and this is not the request.
Unfortunately TMeter feature for dynamically loading config is not working. Have tried it many times. The only possible way is to restart the TMeter service in order to re-load configs and this is BAD to adjust the possible bandwidth for single user (even if I automate it), nor it brings any options that hmail has.
The request is to limit bandwidth per specific user in hmail. If I knew how to do it in C++ i would implement the throttling on the listening socket inside the hmail source and compile. For a person who knows this should be 30 minute job.
Unfortunately TMeter feature for dynamically loading config is not working. Have tried it many times. The only possible way is to restart the TMeter service in order to re-load configs and this is BAD to adjust the possible bandwidth for single user (even if I automate it), nor it brings any options that hmail has.
The request is to limit bandwidth per specific user in hmail. If I knew how to do it in C++ i would implement the throttling on the listening socket inside the hmail source and compile. For a person who knows this should be 30 minute job.
Re: Bandwidth shaping for specific user/ip
It's not quite that easy. hMailServer uses the Boost ASIO API and AFAIK no such functionality exist in ASIO.Svetoslav92 wrote: ↑2020-11-17 14:54I already have TMeter and this is not the request.
Unfortunately TMeter feature for dynamically loading config is not working. Have tried it many times. The only possible way is to restart the TMeter service in order to re-load configs and this is BAD to adjust the possible bandwidth for single user (even if I automate it), nor it brings any options that hmail has.
The request is to limit bandwidth per specific user in hmail. If I knew how to do it in C++ i would implement the throttling on the listening socket inside the hmail source and compile. For a person who knows this should be 30 minute job.
SørenR.
Woke is Marxism advancing through Maoist cultural revolution.
Woke is Marxism advancing through Maoist cultural revolution.