Plesk

Unsecured contact form on website built with PHP uses sendmail to send out spam

Symptoms

Cause

Outdated and unsecured contact form on a PHP-based website is abused by an outside party in an attempt to send spam messages via the sendmail service on the server.

Since the messages are initiated via the contact form, the attempts to deliver them begin with an attempt to deliver the message to the mailbox that the contact form is configured to work with.

Resolution

Update the contact form residing on the website script in order to make it secure enough to avoid being abused easily by an outside party.

Alternatively, you may disable the sendmail utility for the domain that is involved by following the steps in this article:

How to disable PHP mail() function for a spamming domain on Plesk for Linux server?

Exit mobile version