Page 1 of 1

How to send mail via roundcube when I disable mail() function in php.ini

Posted: Tue Nov 08, 2016 5:15 am
by Di3g0BMT
Hello guy,

I had disabled mail() php function because of some security reasons, and roundcube cannot send mail via mail() function. But somehow VestaCP still send mail through mail() function. I want my webmail can send mail via mail() function like VestaCP when I still disable mail() function in /etc/php.ini. How can I do that?

Thanks!

Re: How to send mail via roundcube when I disable mail() function in php.ini

Posted: Wed Dec 07, 2016 1:25 pm
by skurudo
Yep, there is

in httpd/apache users config file (directory section)

Code: Select all

php_admin_value sendmail_path "tee mail.out > /dev/null"
viewtopic.php?f=10&t=13015&p=53963#p53963

Re: How to send mail via roundcube when I disable mail() function in php.ini

Posted: Wed Dec 07, 2016 1:33 pm
by mike08
Or you can just switch roundcube to use smtp instead of that mail function: viewtopic.php?f=41&t=12623&start=10#p50186