disable_functions in php.ini for webmail
- mikeshinn
- Atomicorp Staff - Site Admin
- Posts: 4155
- Joined: Thu Feb 07, 2008 7:49 pm
- Location: Chantilly, VA
Re: disable_functions in php.ini for webmail
SMTP doesnt need either of those functions, so it doesnt sound like your webmail program is set to use SMTP.
Michael Shinn
Atomicorp - Security For Everyone
Atomicorp - Security For Everyone
Re: disable_functions in php.ini for webmail
My webmail is Horde on Plesk and I made these changes, what else needs to be done to use SMTP so I can turn off popen and exec?mikeshinn wrote:SMTP doesnt need either of those functions, so it doesnt sound like your webmail program is set to use SMTP.
Code: Select all
$conf['mailer']['type'] = 'smtp';
$conf['mailer']['params']['host'] = 'localhost';
$conf['mailer']['params']['port'] = 587;
$conf['mailer']['params']['auth'] = true;
-
- Long Time Forum Regular
- Posts: 2813
- Joined: Sat Aug 20, 2005 9:30 am
- Location: The Netherlands
Re: disable_functions in php.ini for webmail
The point is that for security you'll likely want to disable PHP popen and exec because they can be used to execute arbitrary commands. SMTP doesn't need either of those, so reconfiguring your webmail clients to use SMTP instead of sendmail (which is used via popen/exec) allows you to disable popen and exec and have a more secure system.lfenison wrote:The emails send just fine as long as I enable popen and exec so the SMTP is working ok.
Lemonbit Internet Dedicated Server Management