Get Mailcatcher working on Linux

To get Mailcatcher ( running under PuPHPet-based Vagrant ( I had to implement the following shell script in puphpet/files/startup-always/

sed -i "s/^sendmail_path=\/usr\/local\/rvm\/wrappers\/default\/catchmail -f$/sendmail_path=\/usr\/local\/rvm\/wrappers\/default\/catchmail -f" /etc/php.d/zzzz_custom.ini
echo "SET sendmail_path"

The script adds a value to the -f param and that fixes the issue, that no mails are collected by mailcatcher.


  • Vagrant: 1.6.2
  • Puppet: 3.4.3
  • OS: CentOS 6.5 (Final) / Debian 3.2.65-1 / Ubuntu 12.04

1 thoughts on “Get Mailcatcher working on Linux

Leave a Reply

Your email address will not be published. Required fields are marked *


This site uses Akismet to reduce spam. Learn how your comment data is processed.