• The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

Prevent use of local mailserver

Raphael_Michel

New Pleskian
Hello,
We set up a Plesk 12 server for web hosting purposes only.

All mail-related services, exception from "smtp server" and "Plesk milter" are disabled or uninstalled.

For specific domains, we want to prevent the useage of the php mail function with "localhost" to avoid problems with outgoing spam by unsecured scripts. Instead, we want to force webmasters to use external smtp servers.

Is there any directive or setting on domain-level that we allow for this limitation?
Thanks
 
This will only disable the mail services for this particular domain on Plesk, i.e. pop/imap/smtp mailboxes.

But it will not prevent using localhost sending mail by PHP.

Anyone?
 
Edit your php.ini, remember each domain can have its own php.ini configured.

ini_set('disable_functions','mail');
 
Hi,
Thank you, but I think this will disable the use of php mail() completely.
I only want to prevent php scripts the use of localhost for sending mails.

Any other suggestion?
Thank you
 
Back
Top