You can also configure a small php script, as described here , to write letters to var/log/mails :
#!/usr/bin/php <?php $input = file_get_contents('php://stdin'); preg_match('|^To: (.*)|', $input, $matches); $filename = tempnam('/var/log/mails', $matches[1] . '.'); file_put_contents($filename, $input);
Put the script in /usr/local/bin/sendmail , make it executable and put the line
sendmail_path = /usr/local/bin/sendmail
in php.ini
source share