Also adds a script that can be used as a sendmail executable for manual testing purposes.
Credits to @X-dark for reporting the issue and finding the root cause.