Control Web Panel

WebPanel => E-Mail => Topic started by: Nexxterra on October 12, 2020, 05:44:32 PM

Title: turn off php mail require smtp/login for all mail server wide
Post by: Nexxterra on October 12, 2020, 05:44:32 PM
I want to turn off php mail require smtp/login for all mail server wide in my centos 7 server... Usually I would do this by editing php.ini but I can not see this anywhere on the CWP php.ini file... I do not want php mail at all as wordpress sites are horrible for sending tons of spam from non updated installs. I need all users to use smtp with authentication.
Where do I kill the php mail on a CWP server?
Title: Re: turn off php mail require smtp/login for all mail server wide
Post by: Sandeep on October 12, 2020, 06:18:15 PM
you need to disable mail function for php in php.ini
disable_functions = mail
Title: Re: turn off php mail require smtp/login for all mail server wide
Post by: changlee on January 03, 2024, 02:08:13 PM
Hello,
So with that setting at every PHP.ini version the accounts could not send through php-mail. Only with SMTP settings. Am I right?
Title: Re: turn off php mail require smtp/login for all mail server wide
Post by: overseer on January 04, 2024, 03:27:22 AM
http://wiki.centos-webpanel.com/how-to-disable-dangerous-php-functions (http://wiki.centos-webpanel.com/how-to-disable-dangerous-php-functions)
Title: Re: turn off php mail require smtp/login for all mail server wide
Post by: Starburst on January 07, 2024, 07:33:17 PM
Hello,
So with that setting at every PHP.ini version the accounts could not send through php-mail. Only with SMTP settings. Am I right?

Yes, they would be forced to use SMTP Authentication on their mail server.
Title: Re: turn off php mail require smtp/login for all mail server wide
Post by: changlee on January 10, 2024, 12:40:09 PM
So many thanks.