see https://www.howtoforge.com/perfect-server-debian-10-buster-apache-bind-dovecot-ispconfig-3-1/ - you can use the steps from "To prevent the error 'Error in accept: Too many open files' we will set higher open file limits for MariaDB now."