Files
kumomta/docs/reference/kumo/set_smtpsrv_threads.md
T
smsvip 05d4a23b60 Update set_smtpsrv_threads.md
Repair set_smtpsrv_threads documents
2025-08-25 22:20:23 -04:00

27 lines
505 B
Markdown

---
tags:
- threadpool
---
# kumo.set_smtpsrv_threads
```lua
kumo.set_smtpsrv_threads(N)
```
{{since('2024.09.02-c5476b89')}}
Sets the number of threads to be used for the smtpsrv thread pool.
This thread pool is used to process incoming smtp sessions.
The default number of threads is computed using some unspecified fraction of
the available parallelism on the running system, and is shown in the journal on
startup.
```lua
kumo.on('pre_init', function()
kumo.set_smtpsrv_threads(12)
end)
```