yum update (?php?) stopping Horde webmail sending
Posted: Mon Mar 30, 2009 11:18 am
Hi,
I did a yum upgrade, and since then, my Horde webmail is not sending. The error is
http://kb.parallels.com/en/2278 suggests removing exec and open. Mine says:
http://forum.parallels.com/showthread.p ... n+sendmail says
$conf['mailer']['type'] = 'sendmail';
to
$conf['mailer']['type'] = 'smtp';
that did not work, so I then added the line
$config['mailer']['params']['host'] = 'localhost';
which had not been there before.
I have re-started Apache and SMTP Server and IMAP/POP3 server, but still no joy.
Can anyone advise please? Should I remove "exec" from /etc/php.ini?
I did a yum upgrade, and since then, my Horde webmail is not sending. The error is
There appears to be a lot of conflicting info, and I hope that someone on this forum will be able to help.There was an error sending your message: Failed to open sendmail [/var/qmail/bin/sendmail] for execution.
http://kb.parallels.com/en/2278 suggests removing exec and open. Mine says:
so do I remove "exec" from that line and then save that file?[root@plesk2 ~]# grep -i disable_functions /etc/php.ini /etc/php.d/* /usr/local/etc/php.ini
/etc/php.ini:disable_functions = , dl , exec , escapeshellcmd , passthru , pfsockopen , popen , posix_kill , posix_mkfifo , posix_setuid , proc_close , proc_open , proc_terminate , shell_exec , system , leak , posix_setpgid , posix_setsid , proc_get_status , proc_nice , show_source
grep: /usr/local/etc/php.ini: No such file or directory
[root@plesk2 ~]#
http://forum.parallels.com/showthread.p ... n+sendmail says
So far, I have only amended /usr/share/psa-horde/config/conf.phpI found that horde will use 'popen' function to open /var/qmail/bin/sendmail.
And will use 'escapeshellcmd' function to send an e-mail.
After removed those two functions from 'disable_functions' parameter (/etc/php.ini), horde and mail system will be OK.
Try it.
Regards.
THEN LATER IN THAT FORUM
Dasmo suggestion is correct:
Quote:
edit /usr/share/psa-horde/config/conf.php.
Change the line that says:
$conf['mailer']['type'] = 'sendmail';
to
$conf['mailer']['type'] = 'smtp';
but you also need the line:
$config['mailer']['params']['host'] = 'localhost';
Restarted Apache and it all works great now!
$conf['mailer']['type'] = 'sendmail';
to
$conf['mailer']['type'] = 'smtp';
that did not work, so I then added the line
$config['mailer']['params']['host'] = 'localhost';
which had not been there before.
I have re-started Apache and SMTP Server and IMAP/POP3 server, but still no joy.
Can anyone advise please? Should I remove "exec" from /etc/php.ini?