• Our team is looking to connect with folks who use email services provided by Plesk, or a premium service. If you'd like to be part of the discovery process and share your experiences, we invite you to complete this short screening survey. If your responses match the persona we are looking for, you'll receive a link to schedule a call at your convenience. We look forward to hearing from you!
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.

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