Display More
We could check the sender for the mails that are sent through sendmail. We need only add an SMTP restriction (at the right place)... But by doing this, that would mean that any system user which must be able to send mail (such as the root user) should be listed as allowed sender (including the host domain name).
Another approach would be to only allow SASL authenticated users but this would make the PHP mail() function unworkable. Thus, the users would be forced to use a smtp library to be able to authenticate through SASL.
A lot of hosting companies are permitting only SASL authenticated users to send mail. The PHP mail() function is disabled...
Just chioces...