Webserver faced not working email, after about september 2023.
Could be due to changes on the smtp server settings.
Decided to change Sendmail to Postfix within Webmin setup.
Used:
https://phoenixnap.com/kb/postfix-smtp
You need to run the config script for 1st good use.
There's also written how to setup smtp.
DG.