Dump emails send via php native function mail()
.
Download this simple script and place to your path.
curl -o /usr/local/bin/phpmailer https://raw.githubusercontent.com/dockette/phpmailer/master/phpmailer
Default path for storing emails is /var/log/mails, but you can change it by environment variable PHPMAILER_PATH
.
export PHPMAILER_PATH=/srv
; Mailer
sendmail_path = /usr/local/bin/phpmailer
php_admin_value[sendmail_path] = /usr/local/bin/phpmailer