I’m experiencing some issues with my KumoMTA setup and could use some help. I’ve encountered a series of errors in the logs that seem related to WebSocket communication and IO operations. I’ve included the relevant log entries below for reference:
Sep 10 10:40:28 test.dummy-domain.com kumod[3555350]: 2024-09-10T10:40:28.258517Z INFO localset-0 kumod::spool: start_spool: still enumerating. 427794 items in 3870.165372425s 111/s
Sep 10 10:40:34 test.dummy-domain.com kumod[3555350]: 2024-09-10T10:40:34.862137Z ERROR localset-0 kumod::http_server::admin_trace_smtp_client_v1: error in websocket: IO error: Broken pipe (os error 32): IO error: Broken pipe (os error 32): Broken pipe (os error 32)
Sep 10 10:40:44 test.dummy-domain.com kumod[3555350]: TSA Error, will retry in 30 seconds false WebSocket protocol error: Connection reset without closing handshake
Sep 10 10:40:44 test.dummy-domain.com kumod[3555350]: stack traceback:
Sep 10 10:40:44 test.dummy-domain.com kumod[3555350]: [C]: in local 'poll'
Sep 10 10:40:44 test.dummy-domain.com kumod[3555350]: [string "?"]:4: in method 'recv'
Sep 10 10:40:44 test.dummy-domain.com kumod[3555350]: /opt/kumomta/share/policy-extras/shaping.lua:191: in function </opt/kumomta/share/policy-extras/shaping.lua:180>
Sep 10 10:40:44 test.dummy-domain.com kumod[3555350]: [C]: in function 'pcall'
Sep 10 10:40:44 test.dummy-domain.com kumod[3555350]: /opt/kumomta/share/policy-extras/shaping.lua:206: in function </opt/kumomta/share/policy-extras/shaping.lua:200>
Looks to me that the kumo-tsa-daemon is not running and kumod cannot connect to it. But in order to help better we would need to see some bits of the configuration.
Thanks for pointing that out! It does seem like the kumo-tsa-daemon might not be running properly.
Could you let me know which specific configuration files or sections you’d like to see in order to help troubleshoot this issue further? I can share any relevant details you need.
I’ve gone through the Traffic Shaping section and the debugging tips in the KumoMTA docs. I’ve been working on configuring traffic shaping for different ESPs and MBPs like Gmail, Yahoo, Outlook, AOL, and some others, but I’m still hitting roadblocks when it comes to:
Max connections: Should I set the same limits across all ESPs (like Gmail, Yahoo, Outlook, AOL, etc.) or fine-tune these for each provider based on feedback? For instance, Gmail seems stricter with temporary blocks, while Yahoo sometimes has other issues like TS04 blocks.
Shaping across different MBPs: How do I optimize the max connection and message rate for MBPs (like Rackspace, Amazon WorkMail, etc.)? I want to ensure I hit the ideal limits for each one.
Could you share any example shaping.toml configurations that you’ve found to be effective across these ESPs/MBPs?
Additionally, if you have an example of a tsa_init.lua config that’s optimized for traffic shaping, that would be super helpful as well!
Any advice or tips for fine-tuning traffic shaping for various ESPs and MBPs would be greatly appreciated!
As for what to put in your TSA configs, I’ll leave that one to the community. We already give the software away for free, our experience has to be kept for the sponsors.
Hey @yearning-hyena – Sorry to bring up an old thread, but this is somewhat relevant. Can you confirm that the tsa-daemon will autostart in the docker container?
From what I can see, only the init.lua is started with the docker-runner.sh script. I had to manually bring it up with the following command in the container:
root@a585b6081922:/opt/kumomta/sbin# ./tsa-daemon --policy /opt/kumomta/etc/policy/tsa_init.lua. to stop this error:
kumo-sink | TSA Error, will retry in 30 seconds false callback error
kumo-sink | stack traceback:
kumo-sink | [C]: in local 'poll'
kumo-sink | [string "?"]:5: in field 'connect_websocket'
kumo-sink | /opt/kumomta/share/policy-extras/shaping.lua:184: in function </opt/kumomta/share/policy-extras/shaping.lua:180>
kumo-sink | [C]: in function 'pcall'
kumo-sink | /opt/kumomta/share/policy-extras/shaping.lua:206: in function </opt/kumomta/share/policy-extras/shaping.lua:200>
kumo-sink | caused by: IO error: Connection refused (os error 111)